Closed makozort closed 3 weeks ago
There is already documentation for sending packets to the server in the sending payloads section. As for sending packets that don't contain anything, that's just an empty data object. The data about the sender can be found within the IPayloadContext
, which is somewhat explained.
Could you please be more specific about your request since I don't understand what you would like to be added.
I just meant an example of what it looks like to receive on the server side, but I suppose its very similar to what it looks like on the client
https://docs.neoforged.net/docs/1.20.6/networking/payload/
May be worth it having example for sending packets to the server as well as sending packets that don't actually containing anything apart from data about the sender