Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Angle ¶
type Angle Byte
Angle is a rotation angle in steps of 1/256 of a full turn (360°).
type Boolean ¶
type Boolean bool
Boolean type (true = 0x01, false = 0x00).
type Byte ¶
type Byte int8
Byte is signed 8-bit integer, two's complement.
type Double ¶
type Double float64
A Double is a double-precision 64-bit IEEE 754 floating point number.
type Float ¶
type Float float32
A Float is a single-precision 32-bit IEEE 754 floating point number.
type Int ¶
type Int int32
Int is signed 32-bit integer, two's complement.
type Long ¶
type Long int64
Long is signed 64-bit integer, two's complement.
type Packet ¶
type Packet struct { ID int32 // contains filtered or unexported fields }
Packet defines a Minecraft network data package +--------+-----------+------+ | Length | Packet ID | Data | +--------+-----------+------+
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
Player is a single player that is currently in the server.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a running Minecraft server.
func NewServer ¶
NewServer creates a new Server using default port. portNumber is an optional argument and you have to leave it empty to use default port (25565).
type Short ¶
type Short int16
Short is signed 16-bit integer, two's complement.
type String ¶
type String string
String is a sequence of Unicode values.
type UnsignedByte ¶
type UnsignedByte uint8
UnsignedByte is unsigned 8-bit integer.
type UnsignedShort ¶
type UnsignedShort uint16
UnsignedShort is unsigned 16-bit integer.
type VarInt ¶
type VarInt int32
VarInt is variable-length data encoding a two's complement signed 32-bit integer.