item

package module
v0.0.0-...-1fd57b1 Latest Latest
Warning

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

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

README

JungleMC Items

Item types for Minecraft

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() (err error)

Types

type Slot

type Slot struct {
	Present bool
	ID      int32       `type:"varint" optional:"Present"`
	Count   byte        `optional:"Present"`
	Data    interface{} `type:"nbt" optional:"Present"`
}

func DefaultSlot

func DefaultSlot() *Slot

type Tag

type Tag struct {
	Name    mc.Identifier
	Replace bool
	Values  []mc.Identifier
}

type Type

type Type struct {
	ID          int32         `json:"id"`
	Name        mc.Identifier `json:"name"`
	DisplayName string        `json:"displayName"`
	StackSize   byte          `json:"stackSize"`
}

func ByName

func ByName(ident mc.Identifier) (itemType *Type, ok bool)

func ByTag

func ByTag(tag mc.Identifier) []*Type

func (*Type) Empty

func (i *Type) Empty() bool

Jump to

Keyboard shortcuts

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