mctype

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 0 Imported by: 0

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 Block

type Block struct {
	Aux       int
	Id        string
	Namespace string
}

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 Enchantment

type Enchantment struct {
	Level int
	Name  string
	Type  int
}

type Player

type Player struct {
	Color     string
	Dimension int
	Id        int
	Name      string
	Position  Position
	Type      string
	Variant   string
	YRot      float64
}

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"
)

type Tool

type Tool struct {
	Aux           int
	Enchantments  []Enchantment
	FreeStackSize int
	Id            string
	MaxStackSize  int
	Namespace     string
	StackSize     int
}

Jump to

Keyboard shortcuts

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