Documentation
¶
Index ¶
- type Block
- type BlockRegistry
- func (b *BlockRegistry) BlockByRuntimeID(rid uint32) (world.Block, bool)
- func (b *BlockRegistry) BlockCount() int
- func (b *BlockRegistry) BlockRuntimeID(block world.Block) (rid uint32)
- func (b *BlockRegistry) FilteringBlock(rid uint32) uint8
- func (b *BlockRegistry) LightBlock(rid uint32) uint8
- func (b *BlockRegistry) LiquidBlock(rid uint32) bool
- func (b *BlockRegistry) LiquidDisplacingBlock(rid uint32) bool
- func (b *BlockRegistry) NBTBlock(rid uint32) bool
- func (b *BlockRegistry) RandomTickBlock(rid uint32) bool
- func (b *BlockRegistry) RuntimeIDToState(runtimeID uint32) (name string, properties map[string]any, found bool)
- func (b *BlockRegistry) StateToRuntimeID(name string, properties map[string]any) (runtimeID uint32, found bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockRegistry ¶
type BlockRegistry struct {
world.BlockRegistry
Rids map[uint32]Block
}
func (*BlockRegistry) BlockByRuntimeID ¶
func (b *BlockRegistry) BlockByRuntimeID(rid uint32) (world.Block, bool)
func (*BlockRegistry) BlockCount ¶
func (b *BlockRegistry) BlockCount() int
func (*BlockRegistry) BlockRuntimeID ¶
func (b *BlockRegistry) BlockRuntimeID(block world.Block) (rid uint32)
func (*BlockRegistry) FilteringBlock ¶
func (b *BlockRegistry) FilteringBlock(rid uint32) uint8
func (*BlockRegistry) LightBlock ¶
func (b *BlockRegistry) LightBlock(rid uint32) uint8
func (*BlockRegistry) LiquidBlock ¶
func (b *BlockRegistry) LiquidBlock(rid uint32) bool
func (*BlockRegistry) LiquidDisplacingBlock ¶
func (b *BlockRegistry) LiquidDisplacingBlock(rid uint32) bool
func (*BlockRegistry) NBTBlock ¶
func (b *BlockRegistry) NBTBlock(rid uint32) bool
func (*BlockRegistry) RandomTickBlock ¶
func (b *BlockRegistry) RandomTickBlock(rid uint32) bool
func (*BlockRegistry) RuntimeIDToState ¶
func (*BlockRegistry) StateToRuntimeID ¶
Click to show internal directories.
Click to hide internal directories.