Package-level declarations
Utilities for creating client-to-server and server-to-client packets
Types
Abstraction of server-to-client and client-to-server packets. See ServerToClientPacketDefinition and ClientToServerPacketDefinition. Additionally, this class is partially the basis of ClientToClientPacketDefinition.
See c2cPacket function, which constructs this packet definition class.
See c2sPacket function, which constructs this packet definition class.
Used by the ClientToClientPacketDefinition, which requires a server-side forwarder.
See s2cPacket function, which constructs this packet definition class.
Functions
Creates a new ClientToClientPacketDefinition. This packet can only be sent from the client to another client. The server will act as the middle man, it is responsible for forwarding this packet. The packet can only be sent in a typesafe way. The type is specified by T.
Creates a new ClientToServerPacketDefinition. This packet can only be sent from the client to the current server. The packet can only be sent in a typesafe way. The type is specified by T.
Creates a new ServerToClientPacketDefinition. This packet can only be sent from the server to one or multiple clients. The packet can only be sent in a typesafe way. The type is specified by T.