ClientToServerPacketDefinition
class ClientToServerPacketDefinition<T : Any>(id: ResourceLocation, binaryFormat: BinaryFormat, deserializer: KSerializer<T>) : AbstractPacketDefinition<T, ServerPacketContext> (source)
See c2sPacket function, which constructs this packet definition class.
Functions
Link copied to clipboard
Executes the given receiver as a callback when this packet is received on the server-side.