Documentation
¶
Overview ¶
Minecraft Protocol custom types.
Many thanks to #mcdevs from Freenode and it's great documentation: http://wiki.vg/Data_Types
Index ¶
Constants ¶
View Source
const ( TypeByte byte = iota // 0: 000 TypeShort // 1: 001 TypeInt // 2: 010 TypeFloat // 3: 011 TypeString // 4: 100 TypeSlot // 5: 101 TypeVector // 6: 110 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntryFloat ¶
func (EntryFloat) Type ¶
func (e EntryFloat) Type() byte
type EntryShort ¶
func (EntryShort) Type ¶
func (e EntryShort) Type() byte
type EntryString ¶
type EntryString struct{ String }
func (EntryString) Type ¶
func (e EntryString) Type() byte
type EntryVector ¶
func (EntryVector) Type ¶
func (e EntryVector) Type() byte
type ObjectData ¶
ObjectData is a special data type for packet 0x17.
Length and contents depend on the value of Data.
Meaning of Data: - Item Frame (id 71); Orientation, 0~3: South, West, North, East - Falling Block (id 70); BlockType, BlockID | (Metadata << 0xC) - Projectiles; EntityId of thrower. - Splash Potions; PotionValue
Click to show internal directories.
Click to hide internal directories.