you sending the Packet from client to sever, this means you can not do this in your handle method
Player player = (Player) Minecraft.getInstance().getCameraEntity();
you should use the player from the Context (Context#getSender)
why did you return a boolean from the handle method?
Use EntityRenderersEvent.AddLayers to add a RenderLayer to the renderer of the entity type(s) you want to change.
Then in your RenderLayer.render() draw your stuff. You get passed a reference to the entity so you can access whatever data you want.
1
point
Important Information
By using this site, you agree to our Terms of Use.