Posted April 21, 20178 yr 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 Edited April 21, 20178 yr by broutwurscht
April 25, 20178 yr Isin't there EntityPlayer ? Decompile and check classes of NEI, that might help... Apparently I'm addicted to these forums and can't help but read all the posts. So if I somehow help you, please click the "Like This" button, it helps.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.