neoforged / Documentation

The repository containing Neo's documentation
MIT License
28 stars 53 forks source link

make networking example more clear #188

Closed makozort closed 3 weeks ago

makozort commented 3 weeks ago

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

ChampionAsh5357 commented 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.

makozort commented 3 weeks ago

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