Skip to main content

PacketDirection

enum

Specifies the direction a packet travels in.

Declaration​

public enum PacketDirection : byte
NamespaceMcProtoNet.Protocol
AssemblyMcProtoNet.Protocol.dll
Sourcesrc/McProtoNet.Protocol/Flow/PacketIdentity.cs#L27 ↗

Fields​

SignatureDescription
Clientbound = 0The packet is sent by the server and received by the client.
Serverbound = 1The packet is sent by the client and received by the server.

Clientbound​

Clientbound = 0

The packet is sent by the server and received by the client.

Returns: PacketDirection

Serverbound​

Serverbound = 1

The packet is sent by the client and received by the server.

Returns: PacketDirection