Documentation ¶
Index ¶
- func Int32FromRGBA(x color.RGBA) int32
- func InvFromNBT(inv *inventory.Inventory, items []interface{})
- func InvToNBT(inv *inventory.Inventory) []map[string]interface{}
- func ItemFromNBT(data map[string]interface{}, s *item.Stack) item.Stack
- func ItemToNBT(s item.Stack, network bool) map[string]interface{}
- func MapBlock(x map[string]interface{}, k string) world.Block
- func MapByte(m map[string]interface{}, key string) byte
- func MapFloat32(m map[string]interface{}, key string) float32
- func MapInt16(m map[string]interface{}, key string) int16
- func MapInt32(m map[string]interface{}, key string) int32
- func MapInt64(m map[string]interface{}, key string) int64
- func MapItem(x map[string]interface{}, k string) item.Stack
- func MapSlice(m map[string]interface{}, key string) []interface{}
- func MapString(m map[string]interface{}, key string) string
- func MapVec3(x map[string]interface{}, k string) mgl64.Vec3
- func RGBAFromInt32(x int32) color.RGBA
- func Vec3ToFloat32Slice(x mgl64.Vec3) []float32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Int32FromRGBA ¶ added in v0.2.0
Int32FromRGBA converts a color.RGBA into an int32. These int32s are present in, for example, signs.
func InvFromNBT ¶
InvFromNBT decodes the data of an NBT slice into the inventory passed.
func ItemFromNBT ¶
ItemFromNBT decodes the data of an item into an item stack.
func MapBlock ¶ added in v0.2.0
MapBlock converts a block's name and properties in a map obtained by decoding NBT to a world.Block.
func MapByte ¶ added in v0.2.0
MapByte reads a byte from a map at the key passed. noinspection GoCommentLeadingSpace
func MapFloat32 ¶ added in v0.2.0
MapFloat32 reads an float32 from a map at the key passed. noinspection GoCommentLeadingSpace
func MapInt16 ¶ added in v0.2.0
MapInt16 reads an int16 from a map at the key passed. noinspection GoCommentLeadingSpace
func MapInt32 ¶ added in v0.2.0
MapInt32 reads an int32 from a map at the key passed. noinspection GoCommentLeadingSpace
func MapInt64 ¶ added in v0.2.0
MapInt64 reads an int64 from a map at the key passed. noinspection GoCommentLeadingSpace
func MapItem ¶ added in v0.2.0
MapItem converts an item's name, count, damage (and properties when it is a block) in a map obtained by decoding NBT to a world.Item.
func MapSlice ¶ added in v0.2.0
MapSlice reads an interface slice from a map at the key passed. noinspection GoCommentLeadingSpace
func MapString ¶ added in v0.2.0
MapString reads a string from a map at the key passed. noinspection GoCommentLeadingSpace
func RGBAFromInt32 ¶ added in v0.2.0
RGBAFromInt32 converts an int32 into a color.RGBA. These int32s are present in, for example, signs.
func Vec3ToFloat32Slice ¶ added in v0.2.0
Vec3ToFloat32Slice converts an mgl64.Vec3 to a []float32 with 3 elements.
Types ¶
This section is empty.