mctype

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: MIT Imports: 0 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArmourSlot

type ArmourSlot int

ArmourSlot is an inventory slot in which an armour item may be put.

const (
	SlotHelmet ArmourSlot = iota + 2
	SlotChestplate
	SlotLeggings
	SlotBoots
)

type BlockPosition

type BlockPosition struct {
	X int `json:"x"`
	Y int `json:"y"`
	Z int `json:"z"`
}

BlockPosition is the position of a block in a 3D world.

type Direction

type Direction string

Direction is a readable direction used in agent controlling commands.

const (
	Forward Direction = "forward"
	Back    Direction = "back"
	Right   Direction = "right"
	Left    Direction = "left"
	Up      Direction = "up"
	Down    Direction = "down"
)

type Position

type Position struct {
	X float64 `json:"x"`
	Y float64 `json:"y"`
	Z float64 `json:"z"`
}

Position is the position of an entity in a 3D world.

type Target

type Target string

Target is a target indicator in a command. The target may resolve to multiple entities rather than one.

const (
	AllPlayers    Target = "@a"
	AllEntities   Target = "@e"
	NearestPlayer Target = "@p"
	RandomPlayer  Target = "@r"
	Self          Target = "@s"
)

Jump to

Keyboard shortcuts

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