Table of Contents

Interface IPacketReceiver

Namespace
Shard.Network
Assembly
Shard.Network.dll
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

packet IToClientPacket

the 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

packet IToClientPacket

the packet to send.