Okay, so now its registered like this:
network.registerMessage(PacketHandler.class, SetPropertiesPackage.class, 0, Side.SERVER);
and it puts out the propper string, but it does not apply them to the IEEP.
Okay i made the constructor public and also added a print statement. Nothing chaned. Once i closed the gui, minecraft freezes and the error is shown. Also name+Surname still is null,null.
This is the error i get:
Okay wait, i think i ned a closer explanation for how i need to use those packets. Why send them to server and then to client? Why i cant do sendToAll,cuz that does not work too.
Im trying to change some IEEP from a GuiScreen that pops up as soon as the player is spawned in the world. In that Gui, he has to set his name and gender and now i wanna aplly these variables to the EntityProperties. Im trying to do this with packethandling, but it won't work properly.
In the ActionPerformed method i make this:
Im working on my VehicleEntity but i somehow are confused from the entityStructure.
I call the creation of some entitySeats, but they are not created. I have set what should happen when i righclick, but it doesn't happen. Can anybody help me?
See my file here:
I managed loading vehicles from file snow and now i created a List of EntitySeats for the different seats. What i need now is spawning the seats WITH the entity, but when i do it in the constructor the entities make really glitchy things.
I registered a custom Renderer, but it does not work properly which means, it tries to get a rendermanager, but there isn't one but i have on in the constructor. See here:
I think ill have to use EntityAdditionalspawndate fore thevehicleloading before entities are rendered, but still i can't render them out - why? here is my renderer:
So i know have fixed all possible bugs in th loading process and this error seems to appear at any other entity of mine too. Somehow Minecraft can't render the shadow/fire of the entity.Any suggestions?