PacketRegistry

public interface PacketRegistry

Functions

register
Link copied to clipboard
abstract void register(Identifier id, PacketConsumer consumer)
Register a packet.
toPacket
Link copied to clipboard
abstract Packet<? extends ObjecttoPacket(Identifier id, PacketByteBuf buf)
Turn a (identifier, byte buffer) pair into a "custom payload" packetsuitable for sending in the PacketRegistry's sending direction.
unregister
Link copied to clipboard
abstract void unregister(Identifier id)
Unregister a packet.

Inheritors

ClientSidePacketRegistry
Link copied to clipboard
ServerSidePacketRegistry
Link copied to clipboard
ClientSidePacketRegistryImpl
Link copied to clipboard
ServerSidePacketRegistryImpl
Link copied to clipboard

Sources

jvm source
Link copied to clipboard