item

package
v0.0.0-...-b8cd253 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AvailableItems = []int{
	1,
	2,
	3,
	4,
	5,
	6,
	7,
	8,
	9,
	10,
	11,
	12,
	13,
	14,
	15,
	16,
	17,
	18,
	19,
	20,
	21,
	22,
	23,
	32,
	33,
	34,
	35,
	36,
	37,
	38,
	39,
	40,
	41,
	42,
	43,
	44,
	45,
	46,
	47,
	48,
	49,
	50,
	51,
	52,
	53,
	54,
	55,
	56,
	57,
	58,
	59,
	60,
	61,
	62,
	63,
	64,
}
View Source
var (
	Tex = NewItemHub()
)

Functions

func LoadTextureDesc

func LoadTextureDesc() error

func MakeFaceTexture

func MakeFaceTexture(idx int) texture.FaceTexture

Types

type Hub

type Hub struct {
	// contains filtered or unexported fields
}

func NewItemHub

func NewItemHub() *Hub

func (*Hub) AddTexture

func (h *Hub) AddTexture(w string, l, r, u, d, f, b int)

func (*Hub) Tex

func (h *Hub) Tex() map[string]*texture.BlockTexture

func (*Hub) Texture

func (h *Hub) Texture(w string) *texture.BlockTexture

Jump to

Keyboard shortcuts

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