entity

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockEntity

type BlockEntity struct {
	ID string `nbt:"id"`

	// global co-ordinates
	X int `nbt:"x"`
	Y int `nbt:"y"`
	Z int `nbt:"z"`

	// sign-specific.
	Color string `nbt:"color"`
	Text1 string `nbt:"Text1"`
	Text2 string `nbt:"Text2"`
	Text3 string `nbt:"Text3"`
	Text4 string `nbt:"Text4"`
}

BlockEntity describes the representation of a tile entity at a position.

type Entity

type Entity struct {
	ID   int32
	Data int32
	Base *entity.Entity

	UUID uuid.UUID

	X, Y, Z          float64
	Pitch, Yaw       int8
	VelX, VelY, VelZ int16
	OnGround         bool

	IsLiving  bool
	HeadPitch int8
}

Entity represents an instance of an entity.

type Slot

type Slot struct {
	Present bool
	ItemID  item.ID
	Count   int8
	NBT     interface{}
}

The Slot data structure is how Minecraft represents an item and its associated data in the Minecraft Protocol

func (*Slot) Decode

func (s *Slot) Decode(r pk.DecodeReader) error

Decode implement packet.FieldDecoder interface

func (Slot) Encode

func (s Slot) Encode() []byte

func (Slot) String

func (s Slot) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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