Property | Type | Description | |
---|---|---|---|
Data | byte[] |
Method | Description | |
---|---|---|
GetSize ( OpCode opcode ) : int |
Returns packet size (in bytes) for a given opcode. Size includes the opcode byte itself.
|
|
MakeAddSelectionBox ( byte ID, string Label, short StartX, short StartY, short StartZ, short EndX, short EndY, short EndZ, short R, short G, short B, short A ) : |
||
Packet ( OpCode opcode ) : System |
Creates a packet of correct size for a given opcode, and sets the first (opcode) byte.
|
|
Packet ( [ data ) : System |
Method | Description | |
---|---|---|
MakeCustomBlockSupportLevel ( byte level ) : |
||
MakeExtEntry ( string name, int version ) : |
||
MakeExtInfo ( short extCount ) : |
||
MakeSetBlockPermission ( Block block, bool canPlace, bool canDelete ) : |
||
ToNetOrder ( int number, [ arr, int offset ) : void | ||
ToNetOrder ( short number, [ arr, int offset ) : void |
public static GetSize ( OpCode opcode ) : int | ||
opcode | OpCode | |
return | int |
public static MakeAddSelectionBox ( byte ID, string Label, short StartX, short StartY, short StartZ, short EndX, short EndY, short EndZ, short R, short G, short B, short A ) : |
||
ID | byte | |
Label | string | |
StartX | short | |
StartY | short | |
StartZ | short | |
EndX | short | |
EndY | short | |
EndZ | short | |
R | short | |
G | short | |
B | short | |
A | short | |
return |