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.

broutwurscht

Members
  • Joined

  • Last visited

Everything posted by broutwurscht

  1. Hi everyone, i am currently working on a custom main menu. I hooked into the GuiOpenEvent to display my modded version of the gui and it is working so far. After i finished the basics, I wanted to have a look at rendering the U/V maps of the current users' skin. I tried to use the Method public static void drawEntityOnScreen(int p_147046_0_, int p_147046_1_, int p_147046_2_, float p_147046_3_, float p_147046_4_, EntityLivingBase p_147046_5_) [...] provided by GuiInventory.class which requires an EntityLivingBase-object as parameter. I tried passing the field Minecraft.getMinecraft().thePlayer to the method, but it results in a NPE. I searched for a solution on the forums but I can't find working code for my project. I figured out that rendering an Entity would require a World object. That's why i tried to create a FakePlayer, but the Constructor requires a world as well. So finally my questions are: 1) Could i create a "virtual" world, if yes, how? ...or can i simply create an entity that doesn't need a world? Thank you in advance, broutwurscht If you should have problems understanding my english, feel free to ask me what i tried to say

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.