Documentation
¶
Overview ¶
This package provide packet types which used NBT And also the types changed between versions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEntityEncoder ¶
func RegisterEntityEncoder(p EntityPropEncoder) (ok bool)
func UnregisterEntityEncoder ¶
func UnregisterEntityEncoder(p EntityPropEncoder) (ok bool)
Types ¶
type EntityMetadata ¶
type EntityMetadata struct { /* Unique index key determining the meaning of the following value, see the table below. * If this is 0xff then the it is the end of the Entity Metadata array and no more is read. */ Index UByte /* Only if Index is not 0xff; the type of the index, see the table below */ Type Optional[VarInt] /* Only if Index is not 0xff: the value of the metadata field, see the table below */ Value any }
func (*EntityMetadata) DecodeFrom ¶
func (c *EntityMetadata) DecodeFrom(r *PacketReader) (err error)
func (EntityMetadata) Encode ¶
func (c EntityMetadata) Encode(b *PacketBuilder)
type EntityPropEncoder ¶
Click to show internal directories.
Click to hide internal directories.