Skip to content

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 : IMinecraftPacket

Parameters

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.