entity

package
v0.0.0-...-6f503ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Byte

type Byte struct{ pk.Byte }

func (*Byte) TypeID

func (b *Byte) TypeID() int32

type MetadataField

type MetadataField struct {
	Index byte
	MetadataValue
}

func (*MetadataField) WriteTo

func (m *MetadataField) WriteTo(w io.Writer) (n int64, err error)

type MetadataSet

type MetadataSet []MetadataField

func (MetadataSet) WriteTo

func (m MetadataSet) WriteTo(w io.Writer) (n int64, err error)

type MetadataValue

type MetadataValue interface {
	TypeID() int32
	pk.Field
}

type Pose

type Pose int32
const (
	Standing Pose = iota
	FallFlying
	Sleeping
	Swimming
	SpinAttack
	Crouching
	LongJumping
	Dying
	Croaking
	UsingTongue
	Roaring
	Sniffing
	Emerging
	Digging
)

func (*Pose) ReadFrom

func (p *Pose) ReadFrom(r io.Reader) (n int64, err error)

func (*Pose) TypeID

func (p *Pose) TypeID() int32

func (Pose) WriteTo

func (p Pose) WriteTo(w io.Writer) (n int64, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL