Documentation ¶
Index ¶
Constants ¶
View Source
const ( HandLeft = 0 HandRight = 1 )
Variables ¶
This section is empty.
Functions ¶
func GetEntityTypeByName ¶
func GetEntityTypeByName(name string)
Types ¶
type Entity ¶
type Entity struct { // the entity type info Type *Type // Identifiers // per-runtime EID int32 // persistent UUID uuid.UUID // the entity position Moved bool Rotated bool OnGroundChanged bool PrevPosition math.Point Position math.Point // TODO: PositionDelta Velocity math.Point Yaw, Pitch, HeadYaw minecraft.Angle OnGround bool // flags OnFire bool Sprinting bool Invisible bool Glowing bool Pose minecraft.Pose // The metadata of the entity // has changed MetadataChanged bool // The entity equipment Equipment [6]*play.Slot EquipmentChanged int // The animation to play Animation byte // contains filtered or unexported fields }
func (*Entity) UpdateBounds ¶
func (e *Entity) UpdateBounds()
func (*Entity) WriteMetadata ¶
func (e *Entity) WriteMetadata(writer *minecraft.EntityMetadataWriter)
type Living ¶
func (*Living) WriteMetadata ¶
func (p *Living) WriteMetadata(writer *minecraft.EntityMetadataWriter)
type Player ¶
type Player struct { Living // username of the player Username string // visual SkinMask byte MainHand byte // Action related Flying bool // The stats of the player Health float32 Food float32 }
func (*Player) WriteMetadata ¶
func (p *Player) WriteMetadata(writer *minecraft.EntityMetadataWriter)
Click to show internal directories.
Click to hide internal directories.