Delegate MinecraftPacketDecoder<TPacket>
Namespace: Void.Minecraft.Network.Registries.PacketId.Mappings
Assembly: Void.Minecraft.dll
Decodes a Minecraft packet payload for a protocol version.
public delegate TPacket MinecraftPacketDecoder<out TPacket>(ref MinecraftBuffer buffer, ProtocolVersion protocolVersion) where TPacket : IMinecraftPacketParameters
buffer MinecraftBuffer
The source payload buffer, advanced as fields are decoded.
protocolVersion ProtocolVersion
The protocol version whose field layout is used.
Returns
TPacket
The decoded packet.
Type Parameters
TPacket
The packet type returned by the decoder.