Packet struct, just a wrapper for a byte array.
More...
|
| | Packet ([NotNull] byte[] rawBytes) |
| | Creates a new packet from given raw bytes. Data not be null.
|
| |
| | Packet (OpCode opcode) |
| | Creates a packet of correct size for a given opcode, and sets the first (opcode) byte.
|
| |
|
| static Packet | MakeHandshake ([NotNull] Player player,[NotNull] string serverName,[NotNull] string motd) |
| |
| static Packet | MakeSetBlock (short x, short y, short z, Block type) |
| |
| static Packet | MakeSetBlock (Vector3I coords, Block type) |
| |
| static Packet | MakeAddEntity (sbyte id,[NotNull] string name, Position pos) |
| |
| static Packet | MakeTeleport (sbyte id, Position pos) |
| |
| static Packet | MakeSelfTeleport (Position pos) |
| |
| static Packet | MakeMoveRotate (sbyte id, Position pos) |
| |
| static Packet | MakeMove (sbyte id, Position pos) |
| |
| static Packet | MakeRotate (sbyte id, Position pos) |
| |
| static Packet | MakeRemoveEntity (sbyte id) |
| |
| static Packet | MakeKick ([NotNull] string reason) |
| |
| static Packet | MakeSetPermission ([NotNull] Player player) |
| |
| static int | GetSize (OpCode opcode) |
| | Returns packet size (in bytes) for a given opcode. Size includes the opcode byte itself.
|
| |
|
| const sbyte | SelfID = -1 |
| |
| readonly byte[] | Bytes |
| | Raw bytes of this packet.
|
| |
Packet struct, just a wrapper for a byte array.
| fCraft.Packet.Packet |
( |
[NotNull] byte[] |
rawBytes | ) |
|
Creates a new packet from given raw bytes. Data not be null.
| fCraft.Packet.Packet |
( |
OpCode |
opcode | ) |
|
Creates a packet of correct size for a given opcode, and sets the first (opcode) byte.
| static int fCraft.Packet.GetSize |
( |
OpCode |
opcode | ) |
|
|
static |
Returns packet size (in bytes) for a given opcode. Size includes the opcode byte itself.
| static Packet fCraft.Packet.MakeAddEntity |
( |
sbyte |
id, |
|
|
[NotNull] string |
name, |
|
|
Position |
pos |
|
) |
| |
|
static |
| static Packet fCraft.Packet.MakeHandshake |
( |
[NotNull] Player |
player, |
|
|
[NotNull] string |
serverName, |
|
|
[NotNull] string |
motd |
|
) |
| |
|
static |
| static Packet fCraft.Packet.MakeKick |
( |
[NotNull] string |
reason | ) |
|
|
static |
| static Packet fCraft.Packet.MakeRemoveEntity |
( |
sbyte |
id | ) |
|
|
static |
| static Packet fCraft.Packet.MakeSetBlock |
( |
short |
x, |
|
|
short |
y, |
|
|
short |
z, |
|
|
Block |
type |
|
) |
| |
|
static |
| static Packet fCraft.Packet.MakeSetPermission |
( |
[NotNull] Player |
player | ) |
|
|
static |
| readonly byte [] fCraft.Packet.Bytes |
Raw bytes of this packet.
| readonly int [] fCraft.Packet.PacketSizes |
|
static |
Initial value:= {
131,
1,
1,
1028,
7,
9,
8,
74,
10,
7,
5,
4,
2,
66,
65,
2
}
| const sbyte fCraft.Packet.SelfID = -1 |
Opcode (first byte) of this packet.
The documentation for this struct was generated from the following file: