ServerToClientPacketDefinition
class ServerToClientPacketDefinition<T : Any>(id: ResourceLocation, binaryFormat: BinaryFormat, deserializer: KSerializer<T>) : AbstractPacketDefinition<T, ClientPacketContext> (source)
See s2cPacket 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 client-side.