Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

tokuhausu

Members
  • Joined

  • Last visited

Everything posted by tokuhausu

  1. While working with the code, I noticed that when I upgraded, the color settings were incorrect. This was not because the texture was not drawn, but because the texture was painted black. After modifying the code, it was successfully drawn. Sorry for the trouble.
  2. 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?
  3. Umm MODID, in this case the default texture, so I tried both "minecraft" but couldn't draw correctly. TextureManager.getTexture () seems to return null.
  4. 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?
  5. Ok, I understand. Thank you for teaching.
  6. 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.
  7. 1.13.2 By upgrading FMLPreInitializationEvent. GetSuggestedConfigurationFile () I can not use it. Is there any other way to get the path of the config file?

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.