I have a car entity and i want to make it possible that more than one person mounts it. To do that i thought of creating a field of Type entitySeat and add new EntitySeats to it in the constructor of the Entity. But once i tried it it didn't even spawn the seats. I registered all the entities in the correct place and order with different id's, but it wouldn't work. Also i think ill need somebody to help me with the packetHandling for the driving mechanizm. Im thinking of a packet that takes in the id of the pressed key and sends it to the Server. On the server the entity in which the player of that message is sitting, should do the movement stuff, but i can't figure out how to excactly do it. So - here is the EntityClass and the ItemClass that spawns it:
EntityClass:
ItemClass(Its generated in code, thats why it is not public):