Networking
Class: UnifiedClientHelpers / NETWORKING
Used to send packets from the client to the server.
UnifiedHelpers.NETWORKING handles all other client-to-server & server-to-client behaviour.
There are a couple things to note with Unified API's networking payloads
- all payloads registries / handlers are combined
- all networking should be registered in common, not client (don't worry, this is server-safe!)
Methods
boolean canSend(CustomPacketPayload payload);
void send(CustomPacketPayload payload);Example
UnifiedClientHelpers.NETWORKING.send(new ExamplePacket("string"))