Skip to content

Interface IMinecraftPacket

Namespace: Void.Minecraft.Network.Messages.Packets
Assembly: Void.Minecraft.dll

Defines a Minecraft packet that can encode itself for a protocol version.

public interface IMinecraftPacket : IMinecraftMessage, INetworkMessage, IDisposable

Implements

IMinecraftMessage, INetworkMessage, IDisposable

Methods

Encode(ref MinecraftBuffer, ProtocolVersion)

Encodes the packet payload at the buffer’s current position.

void Encode(ref MinecraftBuffer buffer, ProtocolVersion protocolVersion)

Parameters

buffer MinecraftBuffer

The destination packet buffer.

protocolVersion ProtocolVersion

The protocol version whose wire layout is used.