tokuhausu
Members-
Posts
7 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
tokuhausu's Achievements
Tree Puncher (2/8)
0
Reputation
-
As you say, getTexture () after bind () did not return null. No exception is raised at runtime. I considered another drawing method. So, refer to net.minecraft.client.gui.screen.EditSignScreen TileEntityRendererDispatcher.instance.render (TileEntity, Double, Double, Double, Float); By using, the texture was successfully drawn. However, when text is written on the signboard, the texture is not drawn correctly and the text texture is displayed (see image). Is there a solution for this?
-
I am trying to draw the texture of the signboard on the screen using TextureManager.bindTexture () when hovering over the signboard. In 1.12.2 [1.12.2] public class SignReader extends HudBase { private static final ResourceLocation SIGN_TEXTURE = new ResourceLocation ("textures / entity / sign.png"); @Override public Rect render (Event event) { Minecraft.getInstance (). GetTextureManager (). BindTexture (SIGN_TEXTURE); / * ....... my code ....... * / } } And it was drawing normally. In 1.14.4, the texture of the signboard was divided for each wood SIGN_TEXTURE in the above code [1.14.4] new ResourceLocation ("textures / entity / signs / oak.png"); Changed to However, these codes do not work properly, and a black rectangle is drawn on the screen. Is the ResourceLocation of oak.png wrong? Or has bindTexture () changed its usage?
-
[1.13.2] An alternative way to getSuggestedConfigurationFile()
tokuhausu replied to tokuhausu's topic in Modder Support
Ok, I understand. Thank you for teaching. -
[1.13.2] An alternative way to getSuggestedConfigurationFile()
tokuhausu replied to tokuhausu's topic in Modder Support
This is because MOD designed for 1.12 uses the path to the config file and if we can acquire the path, we thought that we could minimize the work to support 1.13.