blocks

package
v0.0.0-...-16954dc Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() (err error)

Types

type Block

type Block struct {
	Id          uint   `json:"id"`
	Material    string `json:"material,omitempty"`
	Name        string `json:"name"`
	DisplayName string `json:"displayName"`

	MinStateId     uint         `json:"minStateId,omitempty"`
	MaxStateId     uint         `json:"maxStateId,omitempty"`
	States         []BlockState `json:"states"`
	DefaultStateId uint         `json:"defaultState,omitempty"`

	StackSize   uint `json:"stackSize"`
	CanDig      bool `json:"diggable"`
	Transparent bool `json:"transparent"`
	EmitLight   uint `json:"emitLight"`
	FilterLight uint `json:"filterLight"`

	Resistance   float32         `json:"resistance,omitempty"`
	HarvestTools map[string]bool `json:"harvestTools"`
	Drops        []uint          `json:"drops"`
	BoundingBox  string          `json:"boundingBox"`
}

func ByName

func ByName(name string) *Block

func Empty

func Empty() *Block

type BlockState

type BlockState struct {
	Name      string   `json:"name"`
	Type      string   `json:"type"`
	NumValues uint     `json:"num_values"`
	Values    []string `json:"values"`
}

Jump to

Keyboard shortcuts

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