net.minecraft.util.com.google.common.io.Files 的maven依赖
时间: 2023-08-31 19:06:12 浏览: 52
你可以在你的`pom.xml`文件中添加以下依赖,以使用`net.minecraft.util.com.google.common.io.Files`类:
```xml
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>30.1-jre</version>
</dependency>
```
这里使用了`com.google.guava`库,版本号为`30.1-jre`。需要注意的是,这个库可能会有其他的依赖项,你需要根据你的具体情况进行调整。
相关问题
package com.HudShow.hud.gui; import com.HudShow.hud.HudShow; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.Gui; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.util.ResourceLocation; import net.minecra查错
在代码中,最后一行的 "net.minecra查错" 应该是 "net.minecraft",因为该行代码被截断了,导致最后一个字符被省略了。正确的代码应该是:
```
package com.HudShow.hud.gui;
import com.HudShow.hud.HudShow;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.Gui;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft;
```
Critical problem: mixins.custommod.json:CreeperEntityMixin target net.minecraft.entity.monster.CreeperEntity was loaded too early.
这个问题通常是由于 mixin 混淆导致的。Mixin 混淆会改变代码的结构,从而可能导致一些问题。要解决这个问题,你可以尝试以下几个步骤:
1. 确保 mixin 的版本与 Minecraft 的版本匹配。如果 mixin 的版本过旧或过新,可能会导致加载错误。
2. 尝试将 mixin 的优先级调高。你可以在 mixin 的 json 文件中添加一个 "priority" 字段,并将其设置为一个较高的值,例如 1000。
3. 确保 mixin 的代码不会与其他 mod 或 mixin 冲突。你可以尝试禁用其他 mod,然后逐个启用以找出冲突的 mod。
4. 禁用混淆(Obfuscation)可能有助于解决此问题。你可以尝试在 gradle.build 文件中将 "obfuscation" 设置为 false,然后重新构建项目。
希望这些步骤能够帮助你解决问题。