Documentation ¶
Index ¶
- Constants
- func AddBlock(block *Block) error
- func BlockData(vertices []float32, show Side, block Vec3, tex *texture.BlockTexture) []float32
- func InitRegister()
- func LoadBlocks()
- func PlantData(vertices []float32, _ Side, block Vec3, tex *texture.BlockTexture) []float32
- func RangeBlocks(rangeFunc func(block *Block) bool)
- type Block
- type Side
Constants ¶
View Source
const ( AirID = "core:air" GrassBlockID = "core:grass_block" DirtID = "core:dirt" StoneID = "core:stone" SandID = "core:sand" WoodID = "core:wood" LeavesID = "core:leaves" GrassID = "core:grass" DandelionID = "core:dandelion" CloudID = "core:cloud" )
Variables ¶
This section is empty.
Functions ¶
func BlockData ¶
func BlockData(vertices []float32, show Side, block Vec3, tex *texture.BlockTexture) []float32
func InitRegister ¶
func InitRegister()
func LoadBlocks ¶
func LoadBlocks()
func PlantData ¶
func PlantData(vertices []float32, _ Side, block Vec3, tex *texture.BlockTexture) []float32
func RangeBlocks ¶
Types ¶
type Block ¶
type Block struct { ID string Breakable bool `json:"breakable,omitempty"` Durability float32 `json:"durability,omitempty"` Hardness float32 `json:"hardness,omitempty"` Liquid bool `json:"liquid,omitempty"` Material string `json:"material,omitempty"` Strength float32 `json:"strength,omitempty"` StepSound string `json:"stepSound,omitempty"` Transparent bool `json:"transparent,omitempty"` Visible bool `json:"visible,omitempty"` Obstacle bool `json:"obstacle,omitempty"` Plant bool `json:"plant,omitempty"` }
Click to show internal directories.
Click to hide internal directories.