-
Content Count
785 -
Joined
-
Last visited
Everything posted by ItsAMysteriousYT
-
This method closes the game with a nullpointerexception - why? public void actionPerformed(GuiButton b) { switch (b.id) { case 0: RLMPlayerProps props = RLMPlayerProps.get(FMLClientHandler.instance().getClientPlayerEntity()); if(props!=null){ props.name=namefield.getText(); props.surname=surnamefield.getText(); mc.displayGuiScreen(new GuiGamestart()); }else { RLMPlayerProps.register(Minecraft.getMinecraft().thePlayer); return; } break; } confirmClicked(true, 0); }
-
ExtendedEntityProperties not working properly[1.8]
ItsAMysteriousYT replied to ItsAMysteriousYT's topic in Modder Support
I figured it out now. Somehow the GuiOverlay method had some calculations wrong. -
ExtendedEntityProperties not working properly[1.8]
ItsAMysteriousYT replied to ItsAMysteriousYT's topic in Modder Support
Okay, i have a packethandler now and i know how packets work. But still the IEEP won't work -
ExtendedEntityProperties not working properly[1.8]
ItsAMysteriousYT replied to ItsAMysteriousYT's topic in Modder Support
I don't know. SInce i never learned packet handling and how it basicly works. It seems like everyone knows it just me not. Can you help me plz? -
How can i set an objmodel as model for an armour item?
-
ExtendedEntityProperties not working properly[1.8]
ItsAMysteriousYT replied to ItsAMysteriousYT's topic in Modder Support
Here is the IExtendedProperties class: and here the method call (in a GuiScreen) in the drawScreen Method: -
Acces the src directory from java code?
ItsAMysteriousYT replied to ItsAMysteriousYT's topic in Modder Support
No need to be sorry -
ExtendedEntityProperties not working properly[1.8]
ItsAMysteriousYT posted a topic in Modder Support
Im trying to bind some customprops to the player, but when i call the method that acts like public static final RLMPlayerProps get(EntityPlayer player){ return (RLMPlayerProps)player.getExtendedEntityProperties(EXT_PROPS_NAME); } and i get a field of it, it sometimes doesn't work. Any suggestions? -
Uhm, you don't need to create a new GuiSlider class. This is unnessecary! Just make a new GuiSlider variable and define it as new GuiSlider(); add it to the buttonList and don't forget to update it and add it to the onMouseClicked method. This is all you need.
-
Is there a possibility to change how vanilla blocks are rendered? For example glass_panes?
-
Hey, im trying to make some powerlines that are no blocks, but can be aplied to every block in the world. so i have to make a new savepart in the worldfile for my powerline blocks. How can i make that and also. When the player holds a detectoritem in hand i want that the blocks with cables show up(are highlited/the cables a rendered through the blocks). Hopefully somebody can help me.
-
Just hover over the new GuiSlider and it will show up a box with the needed arguments. And if not do ctrl and click on GuiSlider. It will bring up the class and you can read it.
-
Acces the src directory from java code?
ItsAMysteriousYT replied to ItsAMysteriousYT's topic in Modder Support
Wha i want is to automaticly generate JSon FIles -
Acces the src directory from java code?
ItsAMysteriousYT replied to ItsAMysteriousYT's topic in Modder Support
lol, thank you -
Acces the src directory from java code?
ItsAMysteriousYT replied to ItsAMysteriousYT's topic in Modder Support
Okay wait how? You mean i should create a 'virtual' resourcepack or so?