Interface IPacketReceiver
public interface IPacketReceiver
Methods
Write(IToClientPacket)
Writes the packet, caching it first to prevent race conditions between the world thread and netty writing the packet.
void Write(IToClientPacket packet)
Parameters
packetIToClientPacketthe packet to send.
WriteNoCache(IToClientPacket)
Writes the packet without first caching the packet. This method should only be used if you don't store the sent packet to be reused. eg. {@code packetHandler.writeNoCache(new Ping(...))}
void WriteNoCache(IToClientPacket packet)
Parameters
packetIToClientPacketthe packet to send.