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