data

package
v0.0.0-...-ca992e9 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrentProtocol = MC1_15_2

Functions

This section is empty.

Types

type Location

type Location struct {
	PositionF
	RotationF
}

type Material

type Material int32
const (
	AIR Material = iota

	STONE

	GRANITE
	POLISHED_GRANITE

	ANDESITE
	POLISHED_ANDESITE

	DIORITE
	POLISHED_DIORITE
)

type MinecraftVersion

type MinecraftVersion int
const (
	MC1_12_2 MinecraftVersion = iota
	MC1_13_2
	MC1_14_4
	MC1_15_2
)

func (MinecraftVersion) Protocol

func (m MinecraftVersion) Protocol() int

func (MinecraftVersion) String

func (m MinecraftVersion) String() string

type PositionF

type PositionF struct {
	X float64
	Y float64
	Z float64
}

type PositionI

type PositionI struct {
	X int64
	Y int64
	Z int64
}

type RotationF

type RotationF struct {
	AxisX float32 // 'yaw'
	AxisY float32 // 'pitch'
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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