PacketDirection
enum
Specifies the direction a packet travels in.
Declaration
public enum PacketDirection : byte
| Namespace | McProtoNet.Protocol |
| Assembly | McProtoNet.Protocol.dll |
| Source | src/McProtoNet.Protocol/Flow/PacketIdentity.cs#L27 ↗ |
Fields
| Signature | Description |
|---|---|
Clientbound = 0 | The packet is sent by the server and received by the client. |
Serverbound = 1 | The 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