Documentation ¶
Overview ¶
Package block exports implementations of the Block interface found in the server/world package. The blocks implemented in this package are automatically registered in the server/world package using the world.RegisterBlock and world.RegisterItem functions through an init function, so that methods in server/world that return blocks and items are able to return them by the respective types implemented here.
Index ¶
- func BreakDuration(b world.Block, i item.Stack) time.Duration
- func BreaksInstantly(b world.Block, i item.Stack) bool
- type Activatable
- type Air
- type Amethyst
- type AncientDebris
- type Andesite
- type Anvil
- func (Anvil) Activate(pos cube.Pos, _ cube.Face, _ *world.World, u item.User) bool
- func (a Anvil) Break() world.Block
- func (a Anvil) BreakInfo() BreakInfo
- func (Anvil) Damage() (damagePerBlock, maxDamage float64)
- func (a Anvil) EncodeBlock() (string, map[string]any)
- func (a Anvil) EncodeItem() (name string, meta int16)
- func (a Anvil) Hash() uint64
- func (Anvil) Landed(w *world.World, pos cube.Pos)
- func (Anvil) LightDiffusionLevel() uint8
- func (a Anvil) Model() world.BlockModel
- func (a Anvil) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (g Anvil) Solidifies(cube.Pos, *world.World) bool
- func (a Anvil) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- type AnvilType
- type Attachment
- type Barrel
- func (b Barrel) Activate(pos cube.Pos, _ cube.Face, _ *world.World, u item.User) bool
- func (b Barrel) AddViewer(v ContainerViewer, w *world.World, pos cube.Pos)
- func (b Barrel) BreakInfo() BreakInfo
- func (b Barrel) DecodeNBT(data map[string]any) any
- func (b Barrel) EncodeBlock() (string, map[string]any)
- func (b Barrel) EncodeItem() (name string, meta int16)
- func (b Barrel) EncodeNBT() map[string]any
- func (b Barrel) FlammabilityInfo() FlammabilityInfo
- func (b Barrel) Hash() uint64
- func (Barrel) Instrument() sound.Instrument
- func (b Barrel) Inventory() *inventory.Inventory
- func (Barrel) Model() world.BlockModel
- func (b Barrel) RemoveViewer(v ContainerViewer, w *world.World, pos cube.Pos)
- func (b Barrel) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- func (b Barrel) WithName(a ...any) world.Item
- type Barrier
- func (Barrier) CanDisplace(b world.Liquid) bool
- func (Barrier) EncodeBlock() (string, map[string]any)
- func (Barrier) EncodeItem() (name string, meta int16)
- func (Barrier) Hash() uint64
- func (Barrier) LightDiffusionLevel() uint8
- func (Barrier) Model() world.BlockModel
- func (Barrier) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- type Basalt
- func (b Basalt) BreakInfo() BreakInfo
- func (b Basalt) EncodeBlock() (name string, properties map[string]any)
- func (b Basalt) EncodeItem() (name string, meta int16)
- func (b Basalt) Hash() uint64
- func (Basalt) Instrument() sound.Instrument
- func (Basalt) Model() world.BlockModel
- func (b Basalt) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- type Beacon
- func (b Beacon) Activate(pos cube.Pos, _ cube.Face, _ *world.World, u item.User) bool
- func (b Beacon) BreakInfo() BreakInfo
- func (b Beacon) CanDisplace(l world.Liquid) bool
- func (b Beacon) DecodeNBT(data map[string]any) any
- func (Beacon) EncodeBlock() (string, map[string]any)
- func (Beacon) EncodeItem() (name string, meta int16)
- func (b Beacon) EncodeNBT() map[string]any
- func (Beacon) Hash() uint64
- func (Beacon) Instrument() sound.Instrument
- func (b Beacon) Level() int
- func (Beacon) LightDiffusionLevel() uint8
- func (Beacon) LightEmissionLevel() uint8
- func (Beacon) Model() world.BlockModel
- func (b Beacon) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- func (b Beacon) Tick(currentTick int64, pos cube.Pos, w *world.World)
- type BeaconSource
- type Bedrock
- type BeetrootSeeds
- func (b BeetrootSeeds) BoneMeal(pos cube.Pos, w *world.World) bool
- func (b BeetrootSeeds) BreakInfo() BreakInfo
- func (c BeetrootSeeds) CalculateGrowthChance(pos cube.Pos, w *world.World) float64
- func (b BeetrootSeeds) EncodeBlock() (name string, properties map[string]any)
- func (b BeetrootSeeds) EncodeItem() (name string, meta int16)
- func (c BeetrootSeeds) GrowthStage() int
- func (c BeetrootSeeds) HasLiquidDrops() bool
- func (b BeetrootSeeds) Hash() uint64
- func (c BeetrootSeeds) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (b BeetrootSeeds) RandomTick(pos cube.Pos, w *world.World, r *rand.Rand)
- func (BeetrootSeeds) SameCrop(c Crop) bool
- func (b BeetrootSeeds) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type BlueIce
- type Bone
- func (b Bone) BreakInfo() BreakInfo
- func (b Bone) EncodeBlock() (name string, properties map[string]any)
- func (b Bone) EncodeItem() (name string, meta int16)
- func (b Bone) Hash() uint64
- func (b Bone) Instrument() sound.Instrument
- func (Bone) Model() world.BlockModel
- func (b Bone) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- type Bookshelf
- type BreakInfo
- type Breakable
- type Bricks
- type Cactus
- func (c Cactus) BreakInfo() BreakInfo
- func (c Cactus) EncodeBlock() (name string, properties map[string]any)
- func (c Cactus) EncodeItem() (name string, meta int16)
- func (c Cactus) EntityInside(_ cube.Pos, _ *world.World, e world.Entity)
- func (c Cactus) Hash() uint64
- func (Cactus) LightDiffusionLevel() uint8
- func (c Cactus) Model() world.BlockModel
- func (c Cactus) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (c Cactus) RandomTick(pos cube.Pos, w *world.World, r *rand.Rand)
- func (c Cactus) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- type Cake
- func (c Cake) Activate(pos cube.Pos, _ cube.Face, w *world.World, u item.User) bool
- func (c Cake) BreakInfo() BreakInfo
- func (c Cake) CanDisplace(b world.Liquid) bool
- func (c Cake) EncodeBlock() (name string, properties map[string]any)
- func (c Cake) EncodeItem() (name string, meta int16)
- func (c Cake) Hash() uint64
- func (Cake) LightDiffusionLevel() uint8
- func (c Cake) Model() world.BlockModel
- func (c Cake) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (c Cake) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- func (c Cake) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type Calcite
- type Carpet
- func (c Carpet) BreakInfo() BreakInfo
- func (Carpet) CanDisplace(b world.Liquid) bool
- func (c Carpet) EncodeBlock() (name string, properties map[string]any)
- func (c Carpet) EncodeItem() (name string, meta int16)
- func (c Carpet) FlammabilityInfo() FlammabilityInfo
- func (Carpet) HasLiquidDrops() bool
- func (c Carpet) Hash() uint64
- func (Carpet) LightDiffusionLevel() uint8
- func (Carpet) Model() world.BlockModel
- func (Carpet) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (Carpet) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- func (c Carpet) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- type Carrot
- func (c Carrot) AlwaysConsumable() bool
- func (c Carrot) BoneMeal(pos cube.Pos, w *world.World) bool
- func (c Carrot) BreakInfo() BreakInfo
- func (c Carrot) CalculateGrowthChance(pos cube.Pos, w *world.World) float64
- func (c Carrot) Consume(_ *world.World, consumer item.Consumer) item.Stack
- func (c Carrot) ConsumeDuration() time.Duration
- func (c Carrot) EncodeBlock() (name string, properties map[string]any)
- func (c Carrot) EncodeItem() (name string, meta int16)
- func (c Carrot) GrowthStage() int
- func (c Carrot) HasLiquidDrops() bool
- func (c Carrot) Hash() uint64
- func (c Carrot) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (c Carrot) RandomTick(pos cube.Pos, w *world.World, r *rand.Rand)
- func (Carrot) SameCrop(c Crop) bool
- func (c Carrot) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type Chain
- func (c Chain) BreakInfo() BreakInfo
- func (Chain) CanDisplace(b world.Liquid) bool
- func (c Chain) EncodeBlock() (string, map[string]any)
- func (Chain) EncodeItem() (name string, meta int16)
- func (c Chain) Hash() uint64
- func (Chain) LightDiffusionLevel() uint8
- func (c Chain) Model() world.BlockModel
- func (Chain) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- func (c Chain) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- type Chest
- func (c Chest) Activate(pos cube.Pos, _ cube.Face, _ *world.World, u item.User) bool
- func (c Chest) AddViewer(v ContainerViewer, w *world.World, pos cube.Pos)
- func (c Chest) BreakInfo() BreakInfo
- func (Chest) CanDisplace(b world.Liquid) bool
- func (c Chest) DecodeNBT(data map[string]any) any
- func (c Chest) EncodeBlock() (name string, properties map[string]any)
- func (Chest) EncodeItem() (name string, meta int16)
- func (c Chest) EncodeNBT() map[string]any
- func (c Chest) FlammabilityInfo() FlammabilityInfo
- func (c Chest) Hash() uint64
- func (Chest) Instrument() sound.Instrument
- func (c Chest) Inventory() *inventory.Inventory
- func (Chest) LightDiffusionLevel() uint8
- func (Chest) Model() world.BlockModel
- func (c Chest) RemoveViewer(v ContainerViewer, w *world.World, pos cube.Pos)
- func (Chest) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- func (c Chest) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- func (c Chest) WithName(a ...any) world.Item
- type ChiseledQuartz
- func (c ChiseledQuartz) BreakInfo() BreakInfo
- func (ChiseledQuartz) EncodeBlock() (name string, properties map[string]any)
- func (c ChiseledQuartz) EncodeItem() (name string, meta int16)
- func (ChiseledQuartz) Hash() uint64
- func (ChiseledQuartz) Instrument() sound.Instrument
- func (ChiseledQuartz) Model() world.BlockModel
- type Clay
- type CloseAction
- type Coal
- func (c Coal) BreakInfo() BreakInfo
- func (Coal) EncodeBlock() (name string, properties map[string]any)
- func (Coal) EncodeItem() (name string, meta int16)
- func (c Coal) FlammabilityInfo() FlammabilityInfo
- func (Coal) Hash() uint64
- func (Coal) Instrument() sound.Instrument
- func (Coal) Model() world.BlockModel
- type CoalOre
- type Cobblestone
- func (c Cobblestone) BreakInfo() BreakInfo
- func (c Cobblestone) EncodeBlock() (string, map[string]any)
- func (c Cobblestone) EncodeItem() (name string, meta int16)
- func (c Cobblestone) Hash() uint64
- func (Cobblestone) Instrument() sound.Instrument
- func (Cobblestone) Model() world.BlockModel
- func (c Cobblestone) RepairsStoneTools() bool
- type CobblestoneStairs
- func (s CobblestoneStairs) BreakInfo() BreakInfo
- func (CobblestoneStairs) CanDisplace(b world.Liquid) bool
- func (s CobblestoneStairs) EncodeBlock() (name string, properties map[string]any)
- func (s CobblestoneStairs) EncodeItem() (name string, meta int16)
- func (s CobblestoneStairs) Hash() uint64
- func (CobblestoneStairs) LightDiffusionLevel() uint8
- func (s CobblestoneStairs) Model() world.BlockModel
- func (s CobblestoneStairs) SideClosed(pos, side cube.Pos, w *world.World) bool
- func (s CobblestoneStairs) UseOnBlock(pos cube.Pos, face cube.Face, clickPos mgl64.Vec3, w *world.World, ...) (used bool)
- type CocoaBean
- func (c CocoaBean) BoneMeal(pos cube.Pos, w *world.World) bool
- func (c CocoaBean) BreakInfo() BreakInfo
- func (c CocoaBean) EncodeBlock() (name string, properties map[string]any)
- func (c CocoaBean) EncodeItem() (name string, meta int16)
- func (c CocoaBean) HasLiquidDrops() bool
- func (c CocoaBean) Hash() uint64
- func (CocoaBean) LightDiffusionLevel() uint8
- func (c CocoaBean) Model() world.BlockModel
- func (c CocoaBean) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (c CocoaBean) RandomTick(pos cube.Pos, w *world.World, r *rand.Rand)
- func (c CocoaBean) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type Concrete
- type ConcretePowder
- func (c ConcretePowder) BreakInfo() BreakInfo
- func (c ConcretePowder) EncodeBlock() (name string, properties map[string]any)
- func (c ConcretePowder) EncodeItem() (name string, meta int16)
- func (c ConcretePowder) Hash() uint64
- func (ConcretePowder) Instrument() sound.Instrument
- func (ConcretePowder) Model() world.BlockModel
- func (c ConcretePowder) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (c ConcretePowder) Solidifies(pos cube.Pos, w *world.World) bool
- type Container
- type ContainerOpener
- type ContainerViewer
- type ContinueCrackAction
- type CopperOre
- type Coral
- func (c Coral) BreakInfo() BreakInfo
- func (c Coral) CanDisplace(b world.Liquid) bool
- func (c Coral) EncodeBlock() (name string, properties map[string]any)
- func (c Coral) EncodeItem() (name string, meta int16)
- func (c Coral) HasLiquidDrops() bool
- func (c Coral) Hash() uint64
- func (Coral) Instrument() sound.Instrument
- func (Coral) LightDiffusionLevel() uint8
- func (Coral) Model() world.BlockModel
- func (c Coral) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (c Coral) ScheduledTick(pos cube.Pos, w *world.World, _ *rand.Rand)
- func (c Coral) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- func (c Coral) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type CoralBlock
- func (c CoralBlock) BreakInfo() BreakInfo
- func (c CoralBlock) EncodeBlock() (name string, properties map[string]any)
- func (c CoralBlock) EncodeItem() (name string, meta int16)
- func (c CoralBlock) Hash() uint64
- func (CoralBlock) Instrument() sound.Instrument
- func (CoralBlock) Model() world.BlockModel
- func (c CoralBlock) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (c CoralBlock) ScheduledTick(pos cube.Pos, w *world.World, _ *rand.Rand)
- type CoralType
- type CraftingTable
- func (c CraftingTable) Activate(pos cube.Pos, _ cube.Face, _ *world.World, u item.User) bool
- func (c CraftingTable) BreakInfo() BreakInfo
- func (c CraftingTable) EncodeBlock() (name string, properties map[string]interface{})
- func (c CraftingTable) EncodeItem() (name string, meta int16)
- func (CraftingTable) Hash() uint64
- func (CraftingTable) Instrument() sound.Instrument
- func (CraftingTable) Model() world.BlockModel
- type Crop
- type DeadBush
- func (d DeadBush) BreakInfo() BreakInfo
- func (d DeadBush) CanDisplace(b world.Liquid) bool
- func (d DeadBush) EncodeBlock() (string, map[string]any)
- func (d DeadBush) EncodeItem() (name string, meta int16)
- func (d DeadBush) FlammabilityInfo() FlammabilityInfo
- func (d DeadBush) HasLiquidDrops() bool
- func (DeadBush) Hash() uint64
- func (DeadBush) LightDiffusionLevel() uint8
- func (DeadBush) Model() world.BlockModel
- func (d DeadBush) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (DeadBush) ReplaceableBy(world.Block) bool
- func (d DeadBush) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- func (d DeadBush) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type Diamond
- type DiamondOre
- type Diorite
- type Dirt
- func (d Dirt) BreakInfo() BreakInfo
- func (d Dirt) EncodeBlock() (string, map[string]any)
- func (d Dirt) EncodeItem() (name string, meta int16)
- func (d Dirt) Hash() uint64
- func (Dirt) Model() world.BlockModel
- func (d Dirt) Shovel() (world.Block, bool)
- func (d Dirt) SoilFor(block world.Block) bool
- func (d Dirt) Till() (world.Block, bool)
- type DirtPath
- func (p DirtPath) BreakInfo() BreakInfo
- func (DirtPath) EncodeBlock() (string, map[string]any)
- func (DirtPath) EncodeItem() (name string, meta int16)
- func (DirtPath) Hash() uint64
- func (DirtPath) LightDiffusionLevel() uint8
- func (DirtPath) Model() world.BlockModel
- func (p DirtPath) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (p DirtPath) Till() (world.Block, bool)
- type DoubleFlower
- func (d DoubleFlower) BoneMeal(pos cube.Pos, w *world.World) bool
- func (d DoubleFlower) BreakInfo() BreakInfo
- func (d DoubleFlower) EncodeBlock() (string, map[string]any)
- func (d DoubleFlower) EncodeItem() (name string, meta int16)
- func (d DoubleFlower) FlammabilityInfo() FlammabilityInfo
- func (d DoubleFlower) HasLiquidDrops() bool
- func (d DoubleFlower) Hash() uint64
- func (DoubleFlower) LightDiffusionLevel() uint8
- func (DoubleFlower) Model() world.BlockModel
- func (d DoubleFlower) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (d DoubleFlower) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type DoubleFlowerType
- type DoubleTallGrass
- func (d DoubleTallGrass) BreakInfo() BreakInfo
- func (d DoubleTallGrass) EncodeBlock() (string, map[string]any)
- func (d DoubleTallGrass) EncodeItem() (name string, meta int16)
- func (d DoubleTallGrass) FlammabilityInfo() FlammabilityInfo
- func (d DoubleTallGrass) HasLiquidDrops() bool
- func (d DoubleTallGrass) Hash() uint64
- func (DoubleTallGrass) LightDiffusionLevel() uint8
- func (DoubleTallGrass) Model() world.BlockModel
- func (d DoubleTallGrass) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (DoubleTallGrass) ReplaceableBy(world.Block) bool
- func (d DoubleTallGrass) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type DragonEgg
- func (d DragonEgg) Activate(pos cube.Pos, _ cube.Face, w *world.World, _ item.User) bool
- func (d DragonEgg) BreakInfo() BreakInfo
- func (d DragonEgg) CanDisplace(b world.Liquid) bool
- func (DragonEgg) EncodeBlock() (string, map[string]any)
- func (DragonEgg) EncodeItem() (name string, meta int16)
- func (DragonEgg) Hash() uint64
- func (DragonEgg) LightDiffusionLevel() uint8
- func (d DragonEgg) LightEmissionLevel() uint8
- func (DragonEgg) Model() world.BlockModel
- func (d DragonEgg) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (d DragonEgg) Punch(pos cube.Pos, _ cube.Face, w *world.World, u item.User)
- func (d DragonEgg) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- func (g DragonEgg) Solidifies(cube.Pos, *world.World) bool
- type DriedKelp
- type Dripstone
- type Emerald
- type EmeraldOre
- type EndBrickStairs
- func (s EndBrickStairs) BreakInfo() BreakInfo
- func (EndBrickStairs) CanDisplace(b world.Liquid) bool
- func (s EndBrickStairs) EncodeBlock() (name string, properties map[string]any)
- func (s EndBrickStairs) EncodeItem() (name string, meta int16)
- func (s EndBrickStairs) Hash() uint64
- func (EndBrickStairs) LightDiffusionLevel() uint8
- func (s EndBrickStairs) Model() world.BlockModel
- func (s EndBrickStairs) SideClosed(pos, side cube.Pos, w *world.World) bool
- func (s EndBrickStairs) UseOnBlock(pos cube.Pos, face cube.Face, clickPos mgl64.Vec3, w *world.World, ...) (used bool)
- type EndBricks
- type EndStone
- type EntityInsider
- type EntityLander
- type Farmland
- func (f Farmland) BreakInfo() BreakInfo
- func (f Farmland) EncodeBlock() (name string, properties map[string]any)
- func (f Farmland) EncodeItem() (name string, meta int16)
- func (f Farmland) EntityLand(pos cube.Pos, w *world.World, e world.Entity, distance *float64)
- func (f Farmland) Hash() uint64
- func (Farmland) Model() world.BlockModel
- func (f Farmland) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (f Farmland) RandomTick(pos cube.Pos, w *world.World, _ *rand.Rand)
- func (f Farmland) SoilFor(block world.Block) bool
- type Fire
- func (f Fire) EncodeBlock() (name string, properties map[string]any)
- func (f Fire) EntityInside(_ cube.Pos, _ *world.World, e world.Entity)
- func (f Fire) HasLiquidDrops() bool
- func (f Fire) Hash() uint64
- func (Fire) LightDiffusionLevel() uint8
- func (f Fire) LightEmissionLevel() uint8
- func (Fire) Model() world.BlockModel
- func (f Fire) NeighbourUpdateTick(pos, neighbour cube.Pos, w *world.World)
- func (f Fire) RandomTick(pos cube.Pos, w *world.World, r *rand.Rand)
- func (Fire) ReplaceableBy(world.Block) bool
- func (f Fire) ScheduledTick(pos cube.Pos, w *world.World, r *rand.Rand)
- func (f Fire) Start(w *world.World, pos cube.Pos)
- type FireType
- type FlammabilityInfo
- type Flammable
- type Flower
- func (f Flower) BoneMeal(pos cube.Pos, w *world.World) (success bool)
- func (f Flower) BreakInfo() BreakInfo
- func (f Flower) EncodeBlock() (string, map[string]any)
- func (f Flower) EncodeItem() (name string, meta int16)
- func (f Flower) EntityInside(_ cube.Pos, _ *world.World, e world.Entity)
- func (Flower) FlammabilityInfo() FlammabilityInfo
- func (Flower) HasLiquidDrops() bool
- func (f Flower) Hash() uint64
- func (Flower) LightDiffusionLevel() uint8
- func (Flower) Model() world.BlockModel
- func (f Flower) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (f Flower) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type FlowerType
- func Allium() FlowerType
- func AzureBluet() FlowerType
- func BlueOrchid() FlowerType
- func Cornflower() FlowerType
- func Dandelion() FlowerType
- func FlowerTypes() []FlowerType
- func LilyOfTheValley() FlowerType
- func OrangeTulip() FlowerType
- func OxeyeDaisy() FlowerType
- func PinkTulip() FlowerType
- func Poppy() FlowerType
- func RedTulip() FlowerType
- func WhiteTulip() FlowerType
- func WitherRose() FlowerType
- type Frictional
- type Froglight
- func (f Froglight) BreakInfo() BreakInfo
- func (f Froglight) EncodeBlock() (name string, properties map[string]any)
- func (f Froglight) EncodeItem() (name string, meta int16)
- func (f Froglight) Hash() uint64
- func (f Froglight) LightEmissionLevel() uint8
- func (Froglight) Model() world.BlockModel
- func (f Froglight) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- type FroglightType
- type GildedBlackstone
- type Glass
- type GlassPane
- func (p GlassPane) BreakInfo() BreakInfo
- func (p GlassPane) CanDisplace(b world.Liquid) bool
- func (GlassPane) EncodeBlock() (string, map[string]any)
- func (GlassPane) EncodeItem() (name string, meta int16)
- func (GlassPane) Hash() uint64
- func (GlassPane) Instrument() sound.Instrument
- func (GlassPane) LightDiffusionLevel() uint8
- func (GlassPane) Model() world.BlockModel
- func (p GlassPane) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- type GlazedTerracotta
- func (t GlazedTerracotta) BreakInfo() BreakInfo
- func (t GlazedTerracotta) EncodeBlock() (name string, properties map[string]any)
- func (t GlazedTerracotta) EncodeItem() (name string, meta int16)
- func (t GlazedTerracotta) Hash() uint64
- func (GlazedTerracotta) Instrument() sound.Instrument
- func (GlazedTerracotta) Model() world.BlockModel
- func (t GlazedTerracotta) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- type Glowstone
- func (g Glowstone) BreakInfo() BreakInfo
- func (Glowstone) EncodeBlock() (string, map[string]any)
- func (Glowstone) EncodeItem() (name string, meta int16)
- func (Glowstone) Hash() uint64
- func (g Glowstone) Instrument() sound.Instrument
- func (Glowstone) LightEmissionLevel() uint8
- func (Glowstone) Model() world.BlockModel
- type Gold
- type GoldOre
- type Granite
- type Grass
- func (g Grass) BoneMeal(pos cube.Pos, w *world.World) bool
- func (g Grass) BreakInfo() BreakInfo
- func (Grass) EncodeBlock() (string, map[string]any)
- func (Grass) EncodeItem() (name string, meta int16)
- func (Grass) Hash() uint64
- func (Grass) Model() world.BlockModel
- func (g Grass) RandomTick(pos cube.Pos, w *world.World, r *rand.Rand)
- func (g Grass) Shovel() (world.Block, bool)
- func (g Grass) SoilFor(block world.Block) bool
- func (g Grass) Till() (world.Block, bool)
- type GrassType
- type Gravel
- func (g Gravel) BreakInfo() BreakInfo
- func (Gravel) EncodeBlock() (string, map[string]any)
- func (Gravel) EncodeItem() (name string, meta int16)
- func (Gravel) Hash() uint64
- func (Gravel) Instrument() sound.Instrument
- func (Gravel) Model() world.BlockModel
- func (g Gravel) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (g Gravel) Solidifies(cube.Pos, *world.World) bool
- type HayBale
- func (h HayBale) BreakInfo() BreakInfo
- func (h HayBale) EncodeBlock() (name string, properties map[string]interface{})
- func (HayBale) EncodeItem() (name string, meta int16)
- func (h HayBale) EntityLand(_ cube.Pos, _ *world.World, e world.Entity, distance *float64)
- func (HayBale) FlammabilityInfo() FlammabilityInfo
- func (h HayBale) Hash() uint64
- func (HayBale) Instrument() sound.Instrument
- func (HayBale) Model() world.BlockModel
- func (h HayBale) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- type Honeycomb
- type InvisibleBedrock
- type Iron
- type IronBars
- func (i IronBars) BreakInfo() BreakInfo
- func (i IronBars) CanDisplace(b world.Liquid) bool
- func (IronBars) EncodeBlock() (string, map[string]any)
- func (IronBars) EncodeItem() (name string, meta int16)
- func (IronBars) Hash() uint64
- func (IronBars) LightDiffusionLevel() uint8
- func (IronBars) Model() world.BlockModel
- func (i IronBars) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- type IronOre
- type ItemFrame
- func (i ItemFrame) Activate(pos cube.Pos, _ cube.Face, w *world.World, u item.User) bool
- func (i ItemFrame) BreakInfo() BreakInfo
- func (ItemFrame) CanDisplace(b world.Liquid) bool
- func (i ItemFrame) DecodeNBT(data map[string]any) any
- func (i ItemFrame) EncodeBlock() (name string, properties map[string]any)
- func (i ItemFrame) EncodeItem() (name string, meta int16)
- func (i ItemFrame) EncodeNBT() map[string]any
- func (i ItemFrame) Hash() uint64
- func (ItemFrame) LightDiffusionLevel() uint8
- func (ItemFrame) Model() world.BlockModel
- func (i ItemFrame) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (i ItemFrame) Pick() item.Stack
- func (i ItemFrame) Punch(pos cube.Pos, _ cube.Face, w *world.World, u item.User)
- func (ItemFrame) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- func (i ItemFrame) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type Kelp
- func (k Kelp) BoneMeal(pos cube.Pos, w *world.World) bool
- func (k Kelp) BreakInfo() BreakInfo
- func (Kelp) CanDisplace(b world.Liquid) bool
- func (k Kelp) EncodeBlock() (name string, properties map[string]any)
- func (Kelp) EncodeItem() (name string, meta int16)
- func (k Kelp) Hash() uint64
- func (Kelp) LightDiffusionLevel() uint8
- func (Kelp) Model() world.BlockModel
- func (k Kelp) NeighbourUpdateTick(pos, changed cube.Pos, w *world.World)
- func (k Kelp) RandomTick(pos cube.Pos, w *world.World, r *rand.Rand)
- func (Kelp) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- func (k Kelp) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- type Ladder
- func (l Ladder) BreakInfo() BreakInfo
- func (l Ladder) CanDisplace(b world.Liquid) bool
- func (l Ladder) EncodeBlock() (string, map[string]any)
- func (l Ladder) EncodeItem() (name string, meta int16)
- func (l Ladder) EntityInside(_ cube.Pos, _ *world.World, e world.Entity)
- func (l Ladder) Hash() uint64
- func (Ladder) LightDiffusionLevel() uint8
- func (l Ladder) Model() world.BlockModel
- func (l Ladder) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (l Ladder) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- func (l Ladder) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type Lantern
- func (l Lantern) BreakInfo() BreakInfo
- func (l Lantern) CanDisplace(b world.Liquid) bool
- func (l Lantern) EncodeBlock() (name string, properties map[string]any)
- func (l Lantern) EncodeItem() (name string, meta int16)
- func (l Lantern) Hash() uint64
- func (Lantern) LightDiffusionLevel() uint8
- func (l Lantern) LightEmissionLevel() uint8
- func (l Lantern) Model() world.BlockModel
- func (l Lantern) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (l Lantern) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- func (l Lantern) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type Lapis
- type LapisOre
- type Lava
- func (l Lava) EncodeBlock() (name string, properties map[string]any)
- func (l Lava) EntityInside(_ cube.Pos, _ *world.World, e world.Entity)
- func (l Lava) Harden(pos cube.Pos, w *world.World, flownIntoBy *cube.Pos) bool
- func (Lava) HasLiquidDrops() bool
- func (l Lava) Hash() uint64
- func (Lava) LightDiffusionLevel() uint8
- func (Lava) LightEmissionLevel() uint8
- func (l Lava) LiquidDepth() int
- func (l Lava) LiquidFalling() bool
- func (Lava) LiquidType() string
- func (Lava) Model() world.BlockModel
- func (l Lava) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (l Lava) RandomTick(pos cube.Pos, w *world.World, r *rand.Rand)
- func (Lava) ReplaceableBy(world.Block) bool
- func (l Lava) ScheduledTick(pos cube.Pos, w *world.World, _ *rand.Rand)
- func (Lava) SpreadDecay() int
- func (l Lava) WithDepth(depth int, falling bool) world.Liquid
- type Leaves
- func (l Leaves) BreakInfo() BreakInfo
- func (Leaves) CanDisplace(b world.Liquid) bool
- func (l Leaves) EncodeBlock() (name string, properties map[string]any)
- func (l Leaves) EncodeItem() (name string, meta int16)
- func (l Leaves) FlammabilityInfo() FlammabilityInfo
- func (l Leaves) Hash() uint64
- func (Leaves) LightDiffusionLevel() uint8
- func (Leaves) Model() world.BlockModel
- func (l Leaves) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (l Leaves) RandomTick(pos cube.Pos, w *world.World, _ *rand.Rand)
- func (Leaves) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- func (l Leaves) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- type Light
- func (l Light) EncodeBlock() (name string, properties map[string]any)
- func (l Light) EncodeItem() (name string, meta int16)
- func (l Light) Hash() uint64
- func (Light) LightDiffusionLevel() uint8
- func (l Light) LightEmissionLevel() uint8
- func (Light) Model() world.BlockModel
- func (Light) ReplaceableBy(world.Block) bool
- type LightDiffuser
- type LightEmitter
- type LiquidRemovable
- type LitPumpkin
- func (l LitPumpkin) BreakInfo() BreakInfo
- func (l LitPumpkin) EncodeBlock() (name string, properties map[string]any)
- func (l LitPumpkin) EncodeItem() (name string, meta int16)
- func (l LitPumpkin) Hash() uint64
- func (l LitPumpkin) LightEmissionLevel() uint8
- func (LitPumpkin) Model() world.BlockModel
- func (l LitPumpkin) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- type Log
- func (l Log) BreakInfo() BreakInfo
- func (l Log) EncodeBlock() (name string, properties map[string]any)
- func (l Log) EncodeItem() (name string, meta int16)
- func (l Log) FlammabilityInfo() FlammabilityInfo
- func (l Log) Hash() uint64
- func (Log) Instrument() sound.Instrument
- func (Log) Model() world.BlockModel
- func (l Log) Strip() (world.Block, bool)
- func (l Log) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- type Melon
- type MelonSeeds
- func (m MelonSeeds) BoneMeal(pos cube.Pos, w *world.World) bool
- func (m MelonSeeds) BreakInfo() BreakInfo
- func (c MelonSeeds) CalculateGrowthChance(pos cube.Pos, w *world.World) float64
- func (m MelonSeeds) EncodeBlock() (name string, properties map[string]any)
- func (m MelonSeeds) EncodeItem() (name string, meta int16)
- func (c MelonSeeds) GrowthStage() int
- func (c MelonSeeds) HasLiquidDrops() bool
- func (m MelonSeeds) Hash() uint64
- func (m MelonSeeds) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (m MelonSeeds) RandomTick(pos cube.Pos, w *world.World, r *rand.Rand)
- func (MelonSeeds) SameCrop(c Crop) bool
- func (m MelonSeeds) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type MossCarpet
- func (m MossCarpet) BreakInfo() BreakInfo
- func (MossCarpet) CanDisplace(b world.Liquid) bool
- func (m MossCarpet) EncodeBlock() (string, map[string]any)
- func (m MossCarpet) EncodeItem() (name string, meta int16)
- func (MossCarpet) HasLiquidDrops() bool
- func (MossCarpet) Hash() uint64
- func (MossCarpet) LightDiffusionLevel() uint8
- func (MossCarpet) Model() world.BlockModel
- func (MossCarpet) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (MossCarpet) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- func (m MossCarpet) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- type Mud
- type MudBricks
- type MuddyMangroveRoots
- func (m MuddyMangroveRoots) BreakInfo() BreakInfo
- func (MuddyMangroveRoots) EncodeBlock() (string, map[string]any)
- func (MuddyMangroveRoots) EncodeItem() (name string, meta int16)
- func (MuddyMangroveRoots) Hash() uint64
- func (MuddyMangroveRoots) Model() world.BlockModel
- func (MuddyMangroveRoots) SoilFor(block world.Block) bool
- type NetherBrickFence
- func (n NetherBrickFence) BreakInfo() BreakInfo
- func (NetherBrickFence) CanDisplace(b world.Liquid) bool
- func (NetherBrickFence) EncodeBlock() (string, map[string]any)
- func (NetherBrickFence) EncodeItem() (name string, meta int16)
- func (NetherBrickFence) Hash() uint64
- func (NetherBrickFence) LightDiffusionLevel() uint8
- func (n NetherBrickFence) Model() world.BlockModel
- func (NetherBrickFence) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- type NetherBricks
- func (n NetherBricks) BreakInfo() BreakInfo
- func (n NetherBricks) EncodeBlock() (name string, properties map[string]any)
- func (n NetherBricks) EncodeItem() (id string, meta int16)
- func (n NetherBricks) Hash() uint64
- func (NetherBricks) Instrument() sound.Instrument
- func (NetherBricks) Model() world.BlockModel
- type NetherBricksType
- type NetherGoldOre
- type NetherQuartzOre
- func (q NetherQuartzOre) BreakInfo() BreakInfo
- func (NetherQuartzOre) EncodeBlock() (string, map[string]any)
- func (NetherQuartzOre) EncodeItem() (name string, meta int16)
- func (NetherQuartzOre) Hash() uint64
- func (NetherQuartzOre) Instrument() sound.Instrument
- func (NetherQuartzOre) Model() world.BlockModel
- type NetherSprouts
- func (n NetherSprouts) BreakInfo() BreakInfo
- func (n NetherSprouts) EncodeBlock() (string, map[string]any)
- func (n NetherSprouts) EncodeItem() (name string, meta int16)
- func (n NetherSprouts) FlammabilityInfo() FlammabilityInfo
- func (n NetherSprouts) HasLiquidDrops() bool
- func (NetherSprouts) Hash() uint64
- func (NetherSprouts) LightDiffusionLevel() uint8
- func (NetherSprouts) Model() world.BlockModel
- func (n NetherSprouts) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (NetherSprouts) ReplaceableBy(world.Block) bool
- func (n NetherSprouts) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type NetherWart
- func (n NetherWart) BreakInfo() BreakInfo
- func (n NetherWart) EncodeBlock() (name string, properties map[string]any)
- func (NetherWart) EncodeItem() (name string, meta int16)
- func (n NetherWart) HasLiquidDrops() bool
- func (n NetherWart) Hash() uint64
- func (NetherWart) LightDiffusionLevel() uint8
- func (NetherWart) Model() world.BlockModel
- func (n NetherWart) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (n NetherWart) RandomTick(pos cube.Pos, w *world.World, r *rand.Rand)
- func (n NetherWart) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type NetherWartBlock
- type Netherite
- func (n Netherite) BreakInfo() BreakInfo
- func (Netherite) EncodeBlock() (string, map[string]any)
- func (Netherite) EncodeItem() (name string, meta int16)
- func (Netherite) Hash() uint64
- func (Netherite) Instrument() sound.Instrument
- func (Netherite) Model() world.BlockModel
- func (Netherite) PowersBeacon() bool
- type Netherrack
- func (n Netherrack) BreakInfo() BreakInfo
- func (Netherrack) EncodeBlock() (string, map[string]any)
- func (Netherrack) EncodeItem() (name string, meta int16)
- func (Netherrack) Hash() uint64
- func (Netherrack) Instrument() sound.Instrument
- func (Netherrack) Model() world.BlockModel
- func (n Netherrack) SoilFor(block world.Block) bool
- type Note
- func (n Note) Activate(pos cube.Pos, _ cube.Face, w *world.World, _ item.User) bool
- func (n Note) BreakInfo() BreakInfo
- func (n Note) DecodeNBT(data map[string]any) any
- func (n Note) EncodeBlock() (name string, properties map[string]any)
- func (n Note) EncodeItem() (name string, meta int16)
- func (n Note) EncodeNBT() map[string]any
- func (Note) Hash() uint64
- func (Note) Instrument() sound.Instrument
- func (Note) Model() world.BlockModel
- func (n Note) Punch(pos cube.Pos, _ cube.Face, w *world.World, _ item.User)
- type Obsidian
- func (o Obsidian) BreakInfo() BreakInfo
- func (o Obsidian) EncodeBlock() (string, map[string]any)
- func (o Obsidian) EncodeItem() (name string, meta int16)
- func (o Obsidian) Hash() uint64
- func (Obsidian) Instrument() sound.Instrument
- func (o Obsidian) LightEmissionLevel() uint8
- func (Obsidian) Model() world.BlockModel
- type OpenAction
- type OreType
- type PackedIce
- func (p PackedIce) BreakInfo() BreakInfo
- func (PackedIce) EncodeBlock() (string, map[string]any)
- func (PackedIce) EncodeItem() (name string, meta int16)
- func (p PackedIce) Friction() float64
- func (PackedIce) Hash() uint64
- func (PackedIce) Instrument() sound.Instrument
- func (PackedIce) Model() world.BlockModel
- type PackedMud
- type Pickable
- type Placer
- type Planks
- func (p Planks) BreakInfo() BreakInfo
- func (p Planks) EncodeBlock() (name string, properties map[string]any)
- func (p Planks) EncodeItem() (name string, meta int16)
- func (p Planks) FlammabilityInfo() FlammabilityInfo
- func (p Planks) Hash() uint64
- func (Planks) Instrument() sound.Instrument
- func (Planks) Model() world.BlockModel
- func (p Planks) RepairsWoodTools() bool
- type Podzol
- func (p Podzol) BreakInfo() BreakInfo
- func (Podzol) EncodeBlock() (string, map[string]any)
- func (Podzol) EncodeItem() (name string, meta int16)
- func (Podzol) Hash() uint64
- func (Podzol) Model() world.BlockModel
- func (Podzol) Shovel() (world.Block, bool)
- func (p Podzol) SoilFor(block world.Block) bool
- type Potato
- func (p Potato) AlwaysConsumable() bool
- func (p Potato) BoneMeal(pos cube.Pos, w *world.World) bool
- func (p Potato) BreakInfo() BreakInfo
- func (c Potato) CalculateGrowthChance(pos cube.Pos, w *world.World) float64
- func (p Potato) Consume(_ *world.World, c item.Consumer) item.Stack
- func (p Potato) ConsumeDuration() time.Duration
- func (p Potato) EncodeBlock() (name string, properties map[string]any)
- func (p Potato) EncodeItem() (name string, meta int16)
- func (c Potato) GrowthStage() int
- func (c Potato) HasLiquidDrops() bool
- func (p Potato) Hash() uint64
- func (c Potato) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (p Potato) RandomTick(pos cube.Pos, w *world.World, r *rand.Rand)
- func (Potato) SameCrop(c Crop) bool
- func (p Potato) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type Prismarine
- type PrismarineType
- type Pumpkin
- func (p Pumpkin) BreakInfo() BreakInfo
- func (p Pumpkin) Carve(f cube.Face) (world.Block, bool)
- func (p Pumpkin) DefencePoints() float64
- func (p Pumpkin) EncodeBlock() (name string, properties map[string]any)
- func (p Pumpkin) EncodeItem() (name string, meta int16)
- func (p Pumpkin) Hash() uint64
- func (p Pumpkin) Helmet() bool
- func (p Pumpkin) Instrument() sound.Instrument
- func (p Pumpkin) KnockBackResistance() float64
- func (Pumpkin) Model() world.BlockModel
- func (p Pumpkin) Toughness() float64
- func (p Pumpkin) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- type PumpkinSeeds
- func (p PumpkinSeeds) BoneMeal(pos cube.Pos, w *world.World) bool
- func (p PumpkinSeeds) BreakInfo() BreakInfo
- func (c PumpkinSeeds) CalculateGrowthChance(pos cube.Pos, w *world.World) float64
- func (p PumpkinSeeds) EncodeBlock() (name string, properties map[string]any)
- func (p PumpkinSeeds) EncodeItem() (name string, meta int16)
- func (c PumpkinSeeds) GrowthStage() int
- func (c PumpkinSeeds) HasLiquidDrops() bool
- func (p PumpkinSeeds) Hash() uint64
- func (p PumpkinSeeds) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (p PumpkinSeeds) RandomTick(pos cube.Pos, w *world.World, r *rand.Rand)
- func (PumpkinSeeds) SameCrop(c Crop) bool
- func (p PumpkinSeeds) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type Punchable
- type Purpur
- type PurpurPillar
- func (p PurpurPillar) BreakInfo() BreakInfo
- func (p PurpurPillar) EncodeBlock() (name string, properties map[string]interface{})
- func (p PurpurPillar) EncodeItem() (name string, meta int16)
- func (p PurpurPillar) Hash() uint64
- func (PurpurPillar) Instrument() sound.Instrument
- func (PurpurPillar) Model() world.BlockModel
- func (p PurpurPillar) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- type Quartz
- type QuartzBricks
- type QuartzPillar
- func (q QuartzPillar) BreakInfo() BreakInfo
- func (q QuartzPillar) EncodeBlock() (name string, properties map[string]any)
- func (q QuartzPillar) EncodeItem() (name string, meta int16)
- func (q QuartzPillar) Hash() uint64
- func (QuartzPillar) Instrument() sound.Instrument
- func (QuartzPillar) Model() world.BlockModel
- func (q QuartzPillar) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- type QuartzStairs
- func (s QuartzStairs) BreakInfo() BreakInfo
- func (QuartzStairs) CanDisplace(b world.Liquid) bool
- func (s QuartzStairs) EncodeBlock() (name string, properties map[string]any)
- func (s QuartzStairs) EncodeItem() (name string, meta int16)
- func (s QuartzStairs) Hash() uint64
- func (QuartzStairs) LightDiffusionLevel() uint8
- func (s QuartzStairs) Model() world.BlockModel
- func (s QuartzStairs) SideClosed(pos, side cube.Pos, w *world.World) bool
- func (s QuartzStairs) UseOnBlock(pos cube.Pos, face cube.Face, clickPos mgl64.Vec3, w *world.World, ...) (used bool)
- type RawCopper
- type RawGold
- type RawIron
- type ReinforcedDeepslate
- func (r ReinforcedDeepslate) BreakInfo() BreakInfo
- func (ReinforcedDeepslate) EncodeBlock() (string, map[string]interface{})
- func (ReinforcedDeepslate) EncodeItem() (name string, meta int16)
- func (ReinforcedDeepslate) Hash() uint64
- func (ReinforcedDeepslate) Instrument() sound.Instrument
- func (ReinforcedDeepslate) Model() world.BlockModel
- type Replaceable
- type Sand
- func (s Sand) BreakInfo() BreakInfo
- func (s Sand) EncodeBlock() (string, map[string]any)
- func (s Sand) EncodeItem() (name string, meta int16)
- func (s Sand) Hash() uint64
- func (Sand) Instrument() sound.Instrument
- func (Sand) Model() world.BlockModel
- func (s Sand) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (s Sand) SoilFor(block world.Block) bool
- func (g Sand) Solidifies(cube.Pos, *world.World) bool
- type Sandstone
- type SandstoneSlab
- func (s SandstoneSlab) BreakInfo() BreakInfo
- func (s SandstoneSlab) CanDisplace(b world.Liquid) bool
- func (s SandstoneSlab) EncodeBlock() (name string, properties map[string]any)
- func (s SandstoneSlab) EncodeItem() (name string, meta int16)
- func (s SandstoneSlab) Hash() uint64
- func (SandstoneSlab) LightDiffusionLevel() uint8
- func (s SandstoneSlab) Model() world.BlockModel
- func (s SandstoneSlab) SideClosed(pos, side cube.Pos, w *world.World) bool
- func (s SandstoneSlab) UseOnBlock(pos cube.Pos, face cube.Face, clickPos mgl64.Vec3, w *world.World, ...) (used bool)
- type SandstoneStairs
- func (s SandstoneStairs) BreakInfo() BreakInfo
- func (SandstoneStairs) CanDisplace(b world.Liquid) bool
- func (s SandstoneStairs) EncodeBlock() (name string, properties map[string]any)
- func (s SandstoneStairs) EncodeItem() (name string, meta int16)
- func (s SandstoneStairs) Hash() uint64
- func (SandstoneStairs) LightDiffusionLevel() uint8
- func (s SandstoneStairs) Model() world.BlockModel
- func (s SandstoneStairs) SideClosed(pos, side cube.Pos, w *world.World) bool
- func (s SandstoneStairs) UseOnBlock(pos cube.Pos, face cube.Face, clickPos mgl64.Vec3, w *world.World, ...) (used bool)
- type SandstoneType
- type SeaLantern
- func (s SeaLantern) BreakInfo() BreakInfo
- func (SeaLantern) EncodeBlock() (string, map[string]any)
- func (SeaLantern) EncodeItem() (name string, meta int16)
- func (SeaLantern) Hash() uint64
- func (SeaLantern) Instrument() sound.Instrument
- func (SeaLantern) LightDiffusionLevel() uint8
- func (SeaLantern) LightEmissionLevel() uint8
- func (SeaLantern) Model() world.BlockModel
- type SeaPickle
- func (s SeaPickle) BoneMeal(pos cube.Pos, w *world.World) bool
- func (s SeaPickle) BreakInfo() BreakInfo
- func (SeaPickle) CanDisplace(b world.Liquid) bool
- func (s SeaPickle) EncodeBlock() (string, map[string]any)
- func (SeaPickle) EncodeItem() (name string, meta int16)
- func (SeaPickle) HasLiquidDrops() bool
- func (s SeaPickle) Hash() uint64
- func (SeaPickle) LightDiffusionLevel() uint8
- func (s SeaPickle) LightEmissionLevel() uint8
- func (SeaPickle) Model() world.BlockModel
- func (s SeaPickle) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (SeaPickle) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- func (s SeaPickle) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type Shroomlight
- type Sign
- func (s Sign) BreakInfo() BreakInfo
- func (s Sign) CanDisplace(l world.Liquid) bool
- func (s Sign) DecodeNBT(data map[string]any) any
- func (s Sign) Dye(c item.Colour) (world.Block, bool)
- func (s Sign) EditableBy(editor SignEditor) bool
- func (s Sign) EncodeBlock() (name string, properties map[string]any)
- func (s Sign) EncodeItem() (name string, meta int16)
- func (s Sign) EncodeNBT() map[string]any
- func (s Sign) FlammabilityInfo() FlammabilityInfo
- func (s Sign) Hash() uint64
- func (s Sign) Ink(glowing bool) (world.Block, bool)
- func (Sign) Instrument() sound.Instrument
- func (Sign) LightDiffusionLevel() uint8
- func (s Sign) MaxCount() int
- func (Sign) Model() world.BlockModel
- func (s Sign) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (s Sign) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- func (s Sign) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- type SignEditor
- type Snow
- type Soil
- type SoulSand
- func (s SoulSand) BreakInfo() BreakInfo
- func (SoulSand) EncodeBlock() (string, map[string]any)
- func (SoulSand) EncodeItem() (name string, meta int16)
- func (SoulSand) Hash() uint64
- func (s SoulSand) Instrument() sound.Instrument
- func (SoulSand) Model() world.BlockModel
- func (s SoulSand) SoilFor(block world.Block) bool
- type SoulSoil
- type Sponge
- func (s Sponge) BreakInfo() BreakInfo
- func (s Sponge) EncodeBlock() (string, map[string]any)
- func (s Sponge) EncodeItem() (name string, meta int16)
- func (s Sponge) Hash() uint64
- func (Sponge) Model() world.BlockModel
- func (s Sponge) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (s Sponge) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- type SporeBlossom
- func (s SporeBlossom) BreakInfo() BreakInfo
- func (s SporeBlossom) EncodeBlock() (string, map[string]any)
- func (s SporeBlossom) EncodeItem() (name string, meta int16)
- func (s SporeBlossom) HasLiquidDrops() bool
- func (SporeBlossom) Hash() uint64
- func (SporeBlossom) LightDiffusionLevel() uint8
- func (SporeBlossom) Model() world.BlockModel
- func (s SporeBlossom) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (s SporeBlossom) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) (used bool)
- type StainedGlass
- func (g StainedGlass) BreakInfo() BreakInfo
- func (g StainedGlass) EncodeBlock() (name string, properties map[string]any)
- func (g StainedGlass) EncodeItem() (name string, meta int16)
- func (g StainedGlass) Hash() uint64
- func (StainedGlass) Instrument() sound.Instrument
- func (StainedGlass) LightDiffusionLevel() uint8
- func (StainedGlass) Model() world.BlockModel
- type StainedGlassPane
- func (p StainedGlassPane) BreakInfo() BreakInfo
- func (p StainedGlassPane) CanDisplace(b world.Liquid) bool
- func (p StainedGlassPane) EncodeBlock() (name string, properties map[string]any)
- func (p StainedGlassPane) EncodeItem() (name string, meta int16)
- func (p StainedGlassPane) Hash() uint64
- func (StainedGlassPane) Instrument() sound.Instrument
- func (StainedGlassPane) LightDiffusionLevel() uint8
- func (StainedGlassPane) Model() world.BlockModel
- func (p StainedGlassPane) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- type StainedTerracotta
- func (t StainedTerracotta) BreakInfo() BreakInfo
- func (t StainedTerracotta) EncodeBlock() (name string, properties map[string]any)
- func (t StainedTerracotta) EncodeItem() (name string, meta int16)
- func (t StainedTerracotta) Hash() uint64
- func (StainedTerracotta) Instrument() sound.Instrument
- func (StainedTerracotta) Model() world.BlockModel
- func (t StainedTerracotta) SoilFor(block world.Block) bool
- type StartCrackAction
- type Stone
- type StoneBrickStairs
- func (s StoneBrickStairs) BreakInfo() BreakInfo
- func (StoneBrickStairs) CanDisplace(b world.Liquid) bool
- func (s StoneBrickStairs) EncodeBlock() (name string, properties map[string]any)
- func (s StoneBrickStairs) EncodeItem() (name string, meta int16)
- func (s StoneBrickStairs) Hash() uint64
- func (StoneBrickStairs) LightDiffusionLevel() uint8
- func (s StoneBrickStairs) Model() world.BlockModel
- func (s StoneBrickStairs) SideClosed(pos, side cube.Pos, w *world.World) bool
- func (s StoneBrickStairs) UseOnBlock(pos cube.Pos, face cube.Face, clickPos mgl64.Vec3, w *world.World, ...) (used bool)
- type StoneBricks
- type StoneBricksType
- type StopCrackAction
- type TallGrass
- func (g TallGrass) BoneMeal(pos cube.Pos, w *world.World) bool
- func (g TallGrass) BreakInfo() BreakInfo
- func (g TallGrass) EncodeBlock() (name string, properties map[string]any)
- func (g TallGrass) EncodeItem() (name string, meta int16)
- func (g TallGrass) FlammabilityInfo() FlammabilityInfo
- func (g TallGrass) HasLiquidDrops() bool
- func (g TallGrass) Hash() uint64
- func (TallGrass) LightDiffusionLevel() uint8
- func (TallGrass) Model() world.BlockModel
- func (g TallGrass) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (TallGrass) ReplaceableBy(world.Block) bool
- func (g TallGrass) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type Terracotta
- func (t Terracotta) BreakInfo() BreakInfo
- func (Terracotta) EncodeBlock() (string, map[string]any)
- func (Terracotta) EncodeItem() (name string, meta int16)
- func (Terracotta) Hash() uint64
- func (Terracotta) Instrument() sound.Instrument
- func (Terracotta) Model() world.BlockModel
- func (Terracotta) SoilFor(block world.Block) bool
- type Torch
- func (t Torch) BreakInfo() BreakInfo
- func (t Torch) EncodeBlock() (name string, properties map[string]any)
- func (t Torch) EncodeItem() (name string, meta int16)
- func (t Torch) HasLiquidDrops() bool
- func (t Torch) Hash() uint64
- func (Torch) LightDiffusionLevel() uint8
- func (t Torch) LightEmissionLevel() uint8
- func (Torch) Model() world.BlockModel
- func (t Torch) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (t Torch) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type Tuff
- type Water
- func (w Water) EncodeBlock() (name string, properties map[string]any)
- func (w Water) EntityInside(_ cube.Pos, _ *world.World, e world.Entity)
- func (w Water) FillBottle() (world.Block, item.Stack, bool)
- func (w Water) Harden(pos cube.Pos, wo *world.World, flownIntoBy *cube.Pos) bool
- func (Water) HasLiquidDrops() bool
- func (w Water) Hash() uint64
- func (Water) LightDiffusionLevel() uint8
- func (w Water) LiquidDepth() int
- func (w Water) LiquidFalling() bool
- func (Water) LiquidType() string
- func (Water) Model() world.BlockModel
- func (Water) NeighbourUpdateTick(pos, _ cube.Pos, wo *world.World)
- func (Water) ReplaceableBy(world.Block) bool
- func (w Water) ScheduledTick(pos cube.Pos, wo *world.World, _ *rand.Rand)
- func (Water) SpreadDecay() int
- func (w Water) WithDepth(depth int, falling bool) world.Liquid
- type WheatSeeds
- func (s WheatSeeds) BoneMeal(pos cube.Pos, w *world.World) bool
- func (s WheatSeeds) BreakInfo() BreakInfo
- func (c WheatSeeds) CalculateGrowthChance(pos cube.Pos, w *world.World) float64
- func (s WheatSeeds) EncodeBlock() (name string, properties map[string]any)
- func (s WheatSeeds) EncodeItem() (name string, meta int16)
- func (c WheatSeeds) GrowthStage() int
- func (c WheatSeeds) HasLiquidDrops() bool
- func (s WheatSeeds) Hash() uint64
- func (c WheatSeeds) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (s WheatSeeds) RandomTick(pos cube.Pos, w *world.World, r *rand.Rand)
- func (WheatSeeds) SameCrop(c Crop) bool
- func (s WheatSeeds) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type Wood
- func (w Wood) BreakInfo() BreakInfo
- func (w Wood) EncodeBlock() (name string, properties map[string]any)
- func (w Wood) EncodeItem() (name string, meta int16)
- func (w Wood) FlammabilityInfo() FlammabilityInfo
- func (w Wood) Hash() uint64
- func (Wood) Instrument() sound.Instrument
- func (Wood) Model() world.BlockModel
- func (w Wood) Strip() (world.Block, bool)
- func (w Wood) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, wo *world.World, user item.User, ...) (used bool)
- type WoodDoor
- func (d WoodDoor) Activate(pos cube.Pos, _ cube.Face, w *world.World, _ item.User) bool
- func (d WoodDoor) BreakInfo() BreakInfo
- func (d WoodDoor) CanDisplace(l world.Liquid) bool
- func (d WoodDoor) EncodeBlock() (name string, properties map[string]any)
- func (d WoodDoor) EncodeItem() (name string, meta int16)
- func (d WoodDoor) FlammabilityInfo() FlammabilityInfo
- func (d WoodDoor) Hash() uint64
- func (WoodDoor) Instrument() sound.Instrument
- func (WoodDoor) LightDiffusionLevel() uint8
- func (d WoodDoor) Model() world.BlockModel
- func (d WoodDoor) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
- func (d WoodDoor) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- func (d WoodDoor) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type WoodFence
- func (w WoodFence) BreakInfo() BreakInfo
- func (WoodFence) CanDisplace(b world.Liquid) bool
- func (w WoodFence) EncodeBlock() (name string, properties map[string]any)
- func (w WoodFence) EncodeItem() (name string, meta int16)
- func (w WoodFence) FlammabilityInfo() FlammabilityInfo
- func (w WoodFence) Hash() uint64
- func (WoodFence) Instrument() sound.Instrument
- func (WoodFence) LightDiffusionLevel() uint8
- func (w WoodFence) Model() world.BlockModel
- func (WoodFence) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- type WoodFenceGate
- func (f WoodFenceGate) Activate(pos cube.Pos, _ cube.Face, w *world.World, u item.User) bool
- func (f WoodFenceGate) BreakInfo() BreakInfo
- func (f WoodFenceGate) CanDisplace(b world.Liquid) bool
- func (f WoodFenceGate) EncodeBlock() (name string, properties map[string]any)
- func (f WoodFenceGate) EncodeItem() (name string, meta int16)
- func (f WoodFenceGate) FlammabilityInfo() FlammabilityInfo
- func (f WoodFenceGate) Hash() uint64
- func (WoodFenceGate) Instrument() sound.Instrument
- func (WoodFenceGate) LightDiffusionLevel() uint8
- func (f WoodFenceGate) Model() world.BlockModel
- func (f WoodFenceGate) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- func (f WoodFenceGate) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ...) bool
- type WoodSlab
- func (s WoodSlab) BreakInfo() BreakInfo
- func (s WoodSlab) CanDisplace(b world.Liquid) bool
- func (s WoodSlab) EncodeBlock() (name string, properties map[string]any)
- func (s WoodSlab) EncodeItem() (name string, meta int16)
- func (s WoodSlab) FlammabilityInfo() FlammabilityInfo
- func (s WoodSlab) Hash() uint64
- func (WoodSlab) Instrument() sound.Instrument
- func (s WoodSlab) LightDiffusionLevel() uint8
- func (s WoodSlab) Model() world.BlockModel
- func (s WoodSlab) SideClosed(pos, side cube.Pos, _ *world.World) bool
- func (s WoodSlab) UseOnBlock(pos cube.Pos, face cube.Face, clickPos mgl64.Vec3, w *world.World, ...) (used bool)
- type WoodStairs
- func (s WoodStairs) BreakInfo() BreakInfo
- func (WoodStairs) CanDisplace(b world.Liquid) bool
- func (s WoodStairs) EncodeBlock() (name string, properties map[string]any)
- func (s WoodStairs) EncodeItem() (name string, meta int16)
- func (s WoodStairs) FlammabilityInfo() FlammabilityInfo
- func (s WoodStairs) Hash() uint64
- func (WoodStairs) Instrument() sound.Instrument
- func (WoodStairs) LightDiffusionLevel() uint8
- func (s WoodStairs) Model() world.BlockModel
- func (s WoodStairs) SideClosed(pos, side cube.Pos, w *world.World) bool
- func (s WoodStairs) UseOnBlock(pos cube.Pos, face cube.Face, clickPos mgl64.Vec3, w *world.World, ...) (used bool)
- type WoodTrapdoor
- func (t WoodTrapdoor) Activate(pos cube.Pos, _ cube.Face, w *world.World, _ item.User) bool
- func (t WoodTrapdoor) BreakInfo() BreakInfo
- func (t WoodTrapdoor) CanDisplace(l world.Liquid) bool
- func (t WoodTrapdoor) EncodeBlock() (name string, properties map[string]any)
- func (t WoodTrapdoor) EncodeItem() (name string, meta int16)
- func (t WoodTrapdoor) FlammabilityInfo() FlammabilityInfo
- func (t WoodTrapdoor) Hash() uint64
- func (WoodTrapdoor) Instrument() sound.Instrument
- func (WoodTrapdoor) LightDiffusionLevel() uint8
- func (t WoodTrapdoor) Model() world.BlockModel
- func (t WoodTrapdoor) SideClosed(cube.Pos, cube.Pos, *world.World) bool
- func (t WoodTrapdoor) UseOnBlock(pos cube.Pos, face cube.Face, clickPos mgl64.Vec3, w *world.World, ...) bool
- type WoodType
- type Wool
- func (w Wool) BreakInfo() BreakInfo
- func (w Wool) EncodeBlock() (name string, properties map[string]any)
- func (w Wool) EncodeItem() (name string, meta int16)
- func (w Wool) FlammabilityInfo() FlammabilityInfo
- func (w Wool) Hash() uint64
- func (w Wool) Instrument() sound.Instrument
- func (Wool) Model() world.BlockModel
- type XPDropRange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BreakDuration ¶
BreakDuration returns the base duration that breaking the block passed takes when being broken using the item passed.
Types ¶
type Activatable ¶
type Activatable interface { // Activate activates the block at a specific block position. The face clicked is passed, as well as the // world in which the block was activated and the viewer that activated it. // Activate returns a bool indicating if activating the block was used successfully. Activate(pos cube.Pos, clickedFace cube.Face, w *world.World, u item.User) bool }
Activatable represents a block that may be activated by a viewer of the world. When activated, the block will execute some specific logic.
type Air ¶
type Air struct {
// contains filtered or unexported fields
}
Air is the block present in otherwise empty space.
type Amethyst ¶ added in v0.7.3
type Amethyst struct {
// contains filtered or unexported fields
}
Amethyst is a decorative block crafted from four amethyst shards.
func (Amethyst) EncodeBlock ¶ added in v0.7.3
EncodeBlock ...
func (Amethyst) EncodeItem ¶ added in v0.7.3
EncodeItem ...
type AncientDebris ¶
type AncientDebris struct {
// contains filtered or unexported fields
}
AncientDebris is a rare ore found within The Nether.
func (AncientDebris) EncodeBlock ¶
func (AncientDebris) EncodeBlock() (string, map[string]any)
EncodeBlock ...
func (AncientDebris) EncodeItem ¶
func (AncientDebris) EncodeItem() (name string, meta int16)
EncodeItem ...
func (AncientDebris) Hash ¶
func (AncientDebris) Hash() uint64
type Andesite ¶
type Andesite polishable
Andesite is a type of igneous rock.
func (Andesite) EncodeBlock ¶
EncodeBlock ...
func (Andesite) EncodeItem ¶
EncodeItem ...
type Anvil ¶ added in v0.7.3
type Anvil struct { // Type is the type of anvil. Type AnvilType // Facing is the direction that the anvil is facing. Facing cube.Direction // contains filtered or unexported fields }
Anvil is a block that allows players to repair items, rename items, and combine enchantments.
func (Anvil) Break ¶ added in v0.7.3
Break breaks the anvil and moves it to the next damage stage. If the anvil is at the last damage stage, it will be destroyed.
func (Anvil) Damage ¶ added in v0.7.3
Damage returns the damage per block fallen of the anvil and the maximum damage the anvil can deal.
func (Anvil) EncodeBlock ¶ added in v0.7.3
EncodeBlock ...
func (Anvil) EncodeItem ¶ added in v0.7.3
EncodeItem ...
func (Anvil) Landed ¶ added in v0.7.3
Landed is called when a falling anvil hits the ground, used to, for example, play a sound.
func (Anvil) LightDiffusionLevel ¶ added in v0.7.3
func (Anvil) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (Anvil) NeighbourUpdateTick ¶ added in v0.7.3
NeighbourUpdateTick ...
func (Anvil) Solidifies ¶ added in v0.7.3
Solidifies ...
type AnvilType ¶ added in v0.7.3
type AnvilType struct {
// contains filtered or unexported fields
}
AnvilType represents a type of anvil, such as undamaged, slightly damaged, or very damaged.
func SlightlyDamagedAnvil ¶ added in v0.7.3
func SlightlyDamagedAnvil() AnvilType
SlightlyDamagedAnvil returns the slightly damaged anvil type.
func UndamagedAnvil ¶ added in v0.7.3
func UndamagedAnvil() AnvilType
UndamagedAnvil returns the undamaged anvil type.
func VeryDamagedAnvil ¶ added in v0.7.3
func VeryDamagedAnvil() AnvilType
VeryDamagedAnvil returns the very damaged anvil type.
type Attachment ¶ added in v0.2.0
type Attachment struct {
// contains filtered or unexported fields
}
Attachment describes the attachment of a block to another block. It is either of the type WallAttachment, which can only have 90 degree facing values, or StandingAttachment, which has more freedom using a cube.Orientation.
func StandingAttachment ¶ added in v0.2.0
func StandingAttachment(o cube.Orientation) Attachment
StandingAttachment returns an Attachment to the ground with an orientation.
func WallAttachment ¶ added in v0.2.0
func WallAttachment(facing cube.Direction) Attachment
WallAttachment returns an Attachment to a wall with a facing direction.
func (Attachment) FaceUint8 ¶ added in v0.6.0
func (a Attachment) FaceUint8() uint8
FaceUint8 returns the facing of the Attachment as a uint8.
func (Attachment) RotateLeft ¶ added in v0.2.0
func (a Attachment) RotateLeft() Attachment
RotateLeft rotates the Attachment the left way around by 90 degrees.
func (Attachment) RotateRight ¶ added in v0.2.0
func (a Attachment) RotateRight() Attachment
RotateRight rotates the Attachment the right way around by 90 degrees.
func (Attachment) Uint8 ¶ added in v0.2.0
func (a Attachment) Uint8() uint8
Uint8 returns the Attachment as a uint8.
type Barrel ¶ added in v0.1.0
type Barrel struct { // Facing is the direction that the barrel is facing. Facing cube.Face // Open is whether the barrel is open or not. Open bool // CustomName is the custom name of the barrel. This name is displayed when the barrel is opened, and may // include colour codes. CustomName string // contains filtered or unexported fields }
Barrel is a fisherman's job site block, used to store items. It functions like a single chest, although it requires no airspace above it to be opened.
func NewBarrel ¶ added in v0.1.0
func NewBarrel() Barrel
NewBarrel creates a new initialised barrel. The inventory is properly initialised.
func (Barrel) AddViewer ¶ added in v0.1.0
AddViewer adds a viewer to the barrel, so that it is updated whenever the inventory of the barrel is changed.
func (Barrel) EncodeBlock ¶ added in v0.1.0
EncodeBlock ...
func (Barrel) EncodeItem ¶ added in v0.1.0
EncodeItem ...
func (Barrel) FlammabilityInfo ¶ added in v0.1.0
func (b Barrel) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
func (Barrel) Instrument ¶ added in v0.1.0
func (Barrel) Instrument() sound.Instrument
Instrument ...
func (Barrel) Inventory ¶ added in v0.1.0
Inventory returns the inventory of the barrel. The size of the inventory will be 27.
func (Barrel) RemoveViewer ¶ added in v0.1.0
RemoveViewer removes a viewer from the barrel, so that slot updates in the inventory are no longer sent to it.
type Barrier ¶
type Barrier struct {
// contains filtered or unexported fields
}
Barrier is a transparent solid block used to create invisible boundaries.
func (Barrier) LightDiffusionLevel ¶
func (Barrier) LightDiffusionLevel() uint8
LightDiffusionLevel ...
type Basalt ¶
type Basalt struct { // Polished specifies if the basalt is its polished variant. Polished bool // Axis is the axis which the basalt faces. Axis cube.Axis // contains filtered or unexported fields }
Basalt is a type of igneous rock found in the Nether.
func (Basalt) EncodeBlock ¶
EncodeBlock ...
type Beacon ¶
type Beacon struct {
// Primary and Secondary are the primary and secondary effects broadcast to nearby entities by the
// beacon.
Primary, Secondary effect.LastingType
// contains filtered or unexported fields
}
Beacon is a block that projects a light beam skyward, and can provide status effects such as Speed, Jump Boost, Haste, Regeneration, Resistance, or Strength to nearby players.
func (Beacon) Level ¶
Level returns an integer 0-4 which defines the current pyramid level of the beacon.
func (Beacon) LightDiffusionLevel ¶
func (Beacon) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (Beacon) SideClosed ¶
SideClosed ...
type BeaconSource ¶
type BeaconSource interface { // PowersBeacon returns a bool which indicates whether this block can contribute to powering up a // beacon pyramid. PowersBeacon() bool }
BeaconSource represents a block which is capable of contributing to powering a beacon pyramid.
type Bedrock ¶
type Bedrock struct { // InfiniteBurning specifies if the bedrock block is set aflame and will burn forever. This is the case // for bedrock found under end crystals on top of the end pillars. InfiniteBurning bool // contains filtered or unexported fields }
Bedrock is a block that is indestructible in survival.
func (Bedrock) EncodeBlock ¶
EncodeBlock ...
func (Bedrock) LightDiffusionLevel ¶
func (Bedrock) LightDiffusionLevel() uint8
LightDiffusionLevel ...
type BeetrootSeeds ¶
type BeetrootSeeds struct {
// contains filtered or unexported fields
}
BeetrootSeeds are a crop that can be harvested to craft soup or red dye.
func (BeetrootSeeds) CalculateGrowthChance ¶
CalculateGrowthChance calculates the chance the crop will grow during a random tick.
func (BeetrootSeeds) EncodeBlock ¶
func (b BeetrootSeeds) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (BeetrootSeeds) EncodeItem ¶
func (b BeetrootSeeds) EncodeItem() (name string, meta int16)
EncodeItem ...
func (BeetrootSeeds) GrowthStage ¶
func (c BeetrootSeeds) GrowthStage() int
GrowthStage returns the current stage of growth.
func (BeetrootSeeds) HasLiquidDrops ¶
func (c BeetrootSeeds) HasLiquidDrops() bool
HasLiquidDrops ...
func (BeetrootSeeds) Hash ¶
func (b BeetrootSeeds) Hash() uint64
func (BeetrootSeeds) NeighbourUpdateTick ¶
NeighbourUpdateTick ...
func (BeetrootSeeds) RandomTick ¶
RandomTick ...
type BlueIce ¶
type BlueIce struct {
// contains filtered or unexported fields
}
BlueIce is a solid block similar to packed ice.
type Bone ¶ added in v0.7.3
type Bone struct { // Axis is the axis which the bone block faces. Axis cube.Axis // contains filtered or unexported fields }
Bone is a decorative block that can face different directions.
func (Bone) EncodeBlock ¶ added in v0.7.3
EncodeBlock ...
func (Bone) EncodeItem ¶ added in v0.7.3
EncodeItem ...
type Bookshelf ¶ added in v0.5.0
type Bookshelf struct {
// contains filtered or unexported fields
}
Bookshelf is a decorative block that primarily serves to enhance enchanting with an enchanting table.
func (Bookshelf) EncodeBlock ¶ added in v0.5.0
EncodeBlock ...
func (Bookshelf) EncodeItem ¶ added in v0.5.0
EncodeItem ...
func (Bookshelf) Instrument ¶ added in v0.5.0
func (Bookshelf) Instrument() sound.Instrument
Instrument ...
type BreakInfo ¶
type BreakInfo struct { // Hardness is the hardness of the block, which influences the speed with which the block may be mined. Hardness float64 // Harvestable is a function called to check if the block is harvestable using the tool passed. If the // item used to break the block is not a tool, a tool.ToolNone is passed. Harvestable func(t item.Tool) bool // Effective is a function called to check if the block can be mined more effectively with the tool passed // than with an empty hand. Effective func(t item.Tool) bool // Drops is a function called to get the drops of the block if it is broken using the item passed. Drops func(t item.Tool, enchantments []item.Enchantment) []item.Stack // XPDrops is the range of XP a block can drop when broken. XPDrops XPDropRange }
BreakInfo is a struct returned by every block. It holds information on block breaking related data, such as the tool type and tier required to break it.
type Breakable ¶
type Breakable interface { // BreakInfo returns information of the block related to the breaking of it. BreakInfo() BreakInfo }
Breakable represents a block that may be broken by a player in survival mode. Blocks not include are blocks such as bedrock.
type Bricks ¶
type Bricks struct {
// contains filtered or unexported fields
}
Bricks are decorative building blocks.
type Cactus ¶ added in v0.7.0
type Cactus struct { // Age is the growth state of cactus. Values range from 0 to 15. Age int // contains filtered or unexported fields }
Cactus is a plant block that generates naturally in dry areas and causes damage.
func (Cactus) EncodeBlock ¶ added in v0.7.0
EncodeBlock ...
func (Cactus) EncodeItem ¶ added in v0.7.0
EncodeItem ...
func (Cactus) EntityInside ¶ added in v0.7.0
EntityInside ...
func (Cactus) LightDiffusionLevel ¶ added in v0.7.0
func (Cactus) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (Cactus) NeighbourUpdateTick ¶ added in v0.7.0
NeighbourUpdateTick ...
func (Cactus) RandomTick ¶ added in v0.7.0
RandomTick ...
type Cake ¶
type Cake struct { // Bites is the amount of bites taken out of the cake. Bites int // contains filtered or unexported fields }
Cake is an edible block.
func (Cake) EncodeBlock ¶
EncodeBlock ...
func (Cake) NeighbourUpdateTick ¶
NeighbourUpdateTick ...
func (Cake) SideClosed ¶
SideClosed ...
type Calcite ¶ added in v0.1.0
type Calcite struct {
// contains filtered or unexported fields
}
Calcite is a carbonate mineral found as part of amethyst geodes.
func (Calcite) EncodeBlock ¶ added in v0.1.0
EncodeBlock ...
func (Calcite) EncodeItem ¶ added in v0.1.0
EncodeItem ...
func (Calcite) Instrument ¶ added in v0.1.0
func (Calcite) Instrument() sound.Instrument
Instrument ...
type Carpet ¶
type Carpet struct { // Colour is the colour of the carpet. Colour item.Colour // contains filtered or unexported fields }
Carpet is a colourful block that can be obtained by killing/shearing sheep, or crafted using four string.
func (Carpet) EncodeBlock ¶
EncodeBlock ...
func (Carpet) FlammabilityInfo ¶
func (c Carpet) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
func (Carpet) LightDiffusionLevel ¶
func (Carpet) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (Carpet) NeighbourUpdateTick ¶
NeighbourUpdateTick ...
func (Carpet) SideClosed ¶
SideClosed ...
type Carrot ¶
type Carrot struct {
// contains filtered or unexported fields
}
Carrot is a crop that can be consumed raw.
func (Carrot) CalculateGrowthChance ¶
CalculateGrowthChance calculates the chance the crop will grow during a random tick.
func (Carrot) EncodeBlock ¶
EncodeBlock ...
func (Carrot) GrowthStage ¶
func (c Carrot) GrowthStage() int
GrowthStage returns the current stage of growth.
func (Carrot) NeighbourUpdateTick ¶
NeighbourUpdateTick ...
func (Carrot) RandomTick ¶
RandomTick ...
type Chain ¶ added in v0.5.0
type Chain struct { // Axis is the axis which the chain faces. Axis cube.Axis // contains filtered or unexported fields }
Chain is a metallic decoration block.
func (Chain) CanDisplace ¶ added in v0.5.0
CanDisplace ...
func (Chain) EncodeBlock ¶ added in v0.5.0
EncodeBlock ...
func (Chain) EncodeItem ¶ added in v0.5.0
EncodeItem ...
func (Chain) LightDiffusionLevel ¶ added in v0.5.0
func (Chain) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (Chain) SideClosed ¶ added in v0.5.0
SideClosed ...
type Chest ¶
type Chest struct { // Facing is the direction that the chest is facing. Facing cube.Direction // CustomName is the custom name of the chest. This name is displayed when the chest is opened, and may // include colour codes. CustomName string // contains filtered or unexported fields }
Chest is a container block which may be used to store items. Chests may also be paired to create a bigger single container. The empty value of Chest is not valid. It must be created using block.NewChest().
func NewChest ¶
func NewChest() Chest
NewChest creates a new initialised chest. The inventory is properly initialised.
func (Chest) AddViewer ¶
AddViewer adds a viewer to the chest, so that it is updated whenever the inventory of the chest is changed.
func (Chest) EncodeBlock ¶
EncodeBlock ...
func (Chest) FlammabilityInfo ¶
func (c Chest) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
func (Chest) Inventory ¶
Inventory returns the inventory of the chest. The size of the inventory will be 27 or 54, depending on whether the chest is single or double.
func (Chest) RemoveViewer ¶
RemoveViewer removes a viewer from the chest, so that slot updates in the inventory are no longer sent to it.
func (Chest) SideClosed ¶
SideClosed ...
type ChiseledQuartz ¶
type ChiseledQuartz struct {
// contains filtered or unexported fields
}
ChiseledQuartz is a mineral block used only for decoration.
func (ChiseledQuartz) EncodeBlock ¶
func (ChiseledQuartz) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (ChiseledQuartz) EncodeItem ¶
func (c ChiseledQuartz) EncodeItem() (name string, meta int16)
EncodeItem ...
func (ChiseledQuartz) Hash ¶
func (ChiseledQuartz) Hash() uint64
func (ChiseledQuartz) Instrument ¶
func (ChiseledQuartz) Instrument() sound.Instrument
Instrument ...
type Clay ¶
type Clay struct {
// contains filtered or unexported fields
}
Clay is a block that can be found underwater.
func (Clay) EncodeBlock ¶
EncodeBlock ...
type CloseAction ¶ added in v0.6.0
type CloseAction struct {
// contains filtered or unexported fields
}
CloseAction is a world.BlockAction to close a block at a position, complementary to the OpenAction action.
func (CloseAction) BlockAction ¶ added in v0.6.0
func (CloseAction) BlockAction()
BlockAction serves to implement the world.BlockAction interface.
type Coal ¶ added in v0.7.3
type Coal struct {
// contains filtered or unexported fields
}
Coal is a precious mineral block made from 9 coal.
func (Coal) EncodeBlock ¶ added in v0.7.3
EncodeBlock ...
func (Coal) EncodeItem ¶ added in v0.7.3
EncodeItem ...
func (Coal) FlammabilityInfo ¶ added in v0.7.3
func (c Coal) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
type CoalOre ¶
type CoalOre struct { // Type is the type of coal ore. Type OreType // contains filtered or unexported fields }
CoalOre is a common ore.
func (CoalOre) EncodeBlock ¶
EncodeBlock ...
type Cobblestone ¶
type Cobblestone struct { // Mossy specifies if the cobblestone is mossy. This variant of cobblestone is typically found in // dungeons or in small clusters in the giant tree taiga biome. Mossy bool // contains filtered or unexported fields }
Cobblestone is a common block, obtained from mining stone.
func (Cobblestone) EncodeBlock ¶
func (c Cobblestone) EncodeBlock() (string, map[string]any)
EncodeBlock ...
func (Cobblestone) EncodeItem ¶
func (c Cobblestone) EncodeItem() (name string, meta int16)
EncodeItem ...
func (Cobblestone) Hash ¶
func (c Cobblestone) Hash() uint64
func (Cobblestone) RepairsStoneTools ¶ added in v0.7.3
func (c Cobblestone) RepairsStoneTools() bool
RepairsStoneTools ...
type CobblestoneStairs ¶ added in v0.7.0
type CobblestoneStairs struct { // Mossy specifies if the cobblestone is mossy. This variant of cobblestone is typically found in // dungeons or in small clusters in the giant tree taiga biome. Mossy bool // UpsideDown specifies if the stairs are upside down. If set to true, the full side is at the top part // of the block. UpsideDown bool // Facing is the direction that the full side of the stairs is facing. Facing cube.Direction // contains filtered or unexported fields }
CobblestoneStairs are blocks that allow entities to walk up blocks without jumping. They are crafted using Cobblestone.
func (CobblestoneStairs) BreakInfo ¶ added in v0.7.0
func (s CobblestoneStairs) BreakInfo() BreakInfo
BreakInfo ...
func (CobblestoneStairs) CanDisplace ¶ added in v0.7.0
func (CobblestoneStairs) CanDisplace(b world.Liquid) bool
CanDisplace ...
func (CobblestoneStairs) EncodeBlock ¶ added in v0.7.0
func (s CobblestoneStairs) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (CobblestoneStairs) EncodeItem ¶ added in v0.7.0
func (s CobblestoneStairs) EncodeItem() (name string, meta int16)
EncodeItem ...
func (CobblestoneStairs) Hash ¶ added in v0.7.0
func (s CobblestoneStairs) Hash() uint64
func (CobblestoneStairs) LightDiffusionLevel ¶ added in v0.7.0
func (CobblestoneStairs) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (CobblestoneStairs) Model ¶ added in v0.7.0
func (s CobblestoneStairs) Model() world.BlockModel
Model ...
func (CobblestoneStairs) SideClosed ¶ added in v0.7.0
SideClosed ...
func (CobblestoneStairs) UseOnBlock ¶ added in v0.7.0
func (s CobblestoneStairs) UseOnBlock(pos cube.Pos, face cube.Face, clickPos mgl64.Vec3, w *world.World, user item.User, ctx *item.UseContext) (used bool)
UseOnBlock handles the directional placing of stairs and makes sure they are properly placed upside down when needed.
type CocoaBean ¶
type CocoaBean struct { // Facing is the direction from the cocoa bean to the log. Facing cube.Direction // Age is the stage of the cocoa bean's growth. 2 is fully grown. Age int // contains filtered or unexported fields }
CocoaBean is a crop block found in jungle biomes.
func (CocoaBean) EncodeBlock ¶
EncodeBlock ...
func (CocoaBean) EncodeItem ¶
EncodeItem ...
func (CocoaBean) LightDiffusionLevel ¶
func (CocoaBean) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (CocoaBean) NeighbourUpdateTick ¶
NeighbourUpdateTick ...
func (CocoaBean) RandomTick ¶
RandomTick ...
type Concrete ¶
type Concrete struct { // Colour is the colour of the concrete block. Colour item.Colour // contains filtered or unexported fields }
Concrete is a solid block which comes in the 16 regular dye colors, created by placing concrete powder adjacent to water.
func (Concrete) EncodeBlock ¶
EncodeBlock ...
func (Concrete) EncodeItem ¶
EncodeItem ...
type ConcretePowder ¶
type ConcretePowder struct { // Colour is the colour of the concrete powder. Colour item.Colour // contains filtered or unexported fields }
ConcretePowder is a gravity affected block that comes in 16 different colours. When interacting with water, it becomes concrete.
func (ConcretePowder) EncodeBlock ¶
func (c ConcretePowder) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (ConcretePowder) EncodeItem ¶
func (c ConcretePowder) EncodeItem() (name string, meta int16)
EncodeItem ...
func (ConcretePowder) Hash ¶
func (c ConcretePowder) Hash() uint64
func (ConcretePowder) Instrument ¶
func (ConcretePowder) Instrument() sound.Instrument
Instrument ...
func (ConcretePowder) NeighbourUpdateTick ¶
func (c ConcretePowder) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
NeighbourUpdateTick ...
func (ConcretePowder) Solidifies ¶
Solidifies ...
type Container ¶
type Container interface { AddViewer(v ContainerViewer, w *world.World, pos cube.Pos) RemoveViewer(v ContainerViewer, w *world.World, pos cube.Pos) Inventory() *inventory.Inventory }
Container represents a container of items, typically a block such as a chest. Containers may have their inventory opened by viewers.
type ContainerOpener ¶
type ContainerOpener interface { // OpenBlockContainer opens a block container at the position passed. OpenBlockContainer(pos cube.Pos) }
ContainerOpener represents an entity that is able to open a container.
type ContainerViewer ¶
type ContainerViewer interface { // ViewSlotChange views a change of a single slot in the inventory, in which the item was changed to the // new item passed. ViewSlotChange(slot int, newItem item.Stack) }
ContainerViewer represents a viewer that is able to view a container and its inventory.
type ContinueCrackAction ¶ added in v0.6.0
type ContinueCrackAction struct { BreakTime time.Duration // contains filtered or unexported fields }
ContinueCrackAction is a world.BlockAction sent every so often to continue the cracking process of the block. It is only ever sent after a StartCrackAction action, and may have an altered break time if the player is not on the ground, submerged or is using a different item than at first.
func (ContinueCrackAction) BlockAction ¶ added in v0.6.0
func (ContinueCrackAction) BlockAction()
BlockAction serves to implement the world.BlockAction interface.
type CopperOre ¶ added in v0.1.0
type CopperOre struct { // Type is the type of copper ore. Type OreType // contains filtered or unexported fields }
CopperOre is a rare mineral block found underground.
func (CopperOre) EncodeBlock ¶ added in v0.1.0
EncodeBlock ...
func (CopperOre) EncodeItem ¶ added in v0.1.0
EncodeItem ...
func (CopperOre) Instrument ¶ added in v0.1.0
func (CopperOre) Instrument() sound.Instrument
Instrument ...
type Coral ¶
type Coral struct { // Type is the type of coral of the block. Type CoralType // Dead is whether the coral is dead. Dead bool // contains filtered or unexported fields }
Coral is a non-solid block that comes in 5 variants.
func (Coral) EncodeBlock ¶
EncodeBlock ...
func (Coral) NeighbourUpdateTick ¶
NeighbourUpdateTick ...
func (Coral) ScheduledTick ¶
ScheduledTick ...
func (Coral) SideClosed ¶
SideClosed ...
type CoralBlock ¶
type CoralBlock struct { // Type is the type of coral of the block. Type CoralType // Dead is whether the coral block is dead. Dead bool // contains filtered or unexported fields }
CoralBlock is a solid block that comes in 5 variants.
func (CoralBlock) EncodeBlock ¶
func (c CoralBlock) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (CoralBlock) EncodeItem ¶
func (c CoralBlock) EncodeItem() (name string, meta int16)
EncodeItem ...
func (CoralBlock) Hash ¶
func (c CoralBlock) Hash() uint64
func (CoralBlock) NeighbourUpdateTick ¶
func (c CoralBlock) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
NeighbourUpdateTick ...
func (CoralBlock) ScheduledTick ¶
ScheduledTick ...
type CoralType ¶
type CoralType struct {
// contains filtered or unexported fields
}
CoralType represents a type of coral of a block. CoralType, coral fans, and coral blocks carry one of these types.
type CraftingTable ¶ added in v0.7.0
type CraftingTable struct {
// contains filtered or unexported fields
}
CraftingTable is a utility block that allows the player to craft a variety of blocks and items.
func (CraftingTable) BreakInfo ¶ added in v0.7.0
func (c CraftingTable) BreakInfo() BreakInfo
BreakInfo ...
func (CraftingTable) EncodeBlock ¶ added in v0.7.0
func (c CraftingTable) EncodeBlock() (name string, properties map[string]interface{})
EncodeBlock ...
func (CraftingTable) EncodeItem ¶ added in v0.7.0
func (c CraftingTable) EncodeItem() (name string, meta int16)
EncodeItem ...
func (CraftingTable) Hash ¶ added in v0.7.0
func (CraftingTable) Hash() uint64
func (CraftingTable) Instrument ¶ added in v0.7.0
func (CraftingTable) Instrument() sound.Instrument
Instrument ...
func (CraftingTable) Model ¶ added in v0.7.0
func (CraftingTable) Model() world.BlockModel
Model ...
type Crop ¶
type Crop interface { // GrowthStage returns the crop's current stage of growth. The max value is 7. GrowthStage() int // SameCrop checks if two crops are of the same type. SameCrop(c Crop) bool }
Crop is an interface for all crops that are grown on farmland. A crop has a random chance to grow during random ticks.
type DeadBush ¶ added in v0.4.0
type DeadBush struct {
// contains filtered or unexported fields
}
DeadBush is a transparent block in the form of an aesthetic plant.
func (DeadBush) CanDisplace ¶ added in v0.4.0
CanDisplace ...
func (DeadBush) EncodeBlock ¶ added in v0.4.0
EncodeBlock ...
func (DeadBush) EncodeItem ¶ added in v0.4.0
EncodeItem ...
func (DeadBush) FlammabilityInfo ¶ added in v0.4.0
func (d DeadBush) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
func (DeadBush) HasLiquidDrops ¶ added in v0.4.0
HasLiquidDrops ...
func (DeadBush) LightDiffusionLevel ¶ added in v0.4.0
func (DeadBush) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (DeadBush) NeighbourUpdateTick ¶ added in v0.4.0
NeighbourUpdateTick ...
func (DeadBush) ReplaceableBy ¶ added in v0.4.0
ReplaceableBy ...
func (DeadBush) SideClosed ¶ added in v0.4.0
SideClosed ...
type Diamond ¶ added in v0.7.3
type Diamond struct {
// contains filtered or unexported fields
}
Diamond is a block which can only be gained by crafting it.
func (Diamond) EncodeBlock ¶ added in v0.7.3
EncodeBlock ...
func (Diamond) EncodeItem ¶ added in v0.7.3
EncodeItem ...
type DiamondOre ¶
type DiamondOre struct { // Type is the type of diamond ore. Type OreType // contains filtered or unexported fields }
DiamondOre is a rare ore that generates underground.
func (DiamondOre) EncodeBlock ¶
func (d DiamondOre) EncodeBlock() (string, map[string]any)
EncodeBlock ...
func (DiamondOre) EncodeItem ¶
func (d DiamondOre) EncodeItem() (name string, meta int16)
EncodeItem ...
func (DiamondOre) Hash ¶
func (d DiamondOre) Hash() uint64
type Diorite ¶
type Diorite polishable
Diorite is a type of igneous rock.
func (Diorite) EncodeBlock ¶
EncodeBlock ...
type Dirt ¶
type Dirt struct { // Coarse specifies if the dirt should be off the coarse dirt variant. Grass blocks won't spread on // the block if set to true. Coarse bool // contains filtered or unexported fields }
Dirt is a block found abundantly in most biomes under a layer of grass blocks at the top of the normal world.
type DirtPath ¶
type DirtPath struct {
// contains filtered or unexported fields
}
DirtPath is a decorative block that can be created by using a shovel on a dirt or grass block.
func (DirtPath) EncodeBlock ¶
EncodeBlock ...
func (DirtPath) LightDiffusionLevel ¶
func (DirtPath) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (DirtPath) NeighbourUpdateTick ¶
NeighbourUpdateTick handles the turning from dirt path into dirt if a block is placed on top of it.
type DoubleFlower ¶ added in v0.1.0
type DoubleFlower struct { // UpperPart is set if the plant is the upper part. UpperPart bool // Type is the type of the double plant. Type DoubleFlowerType // contains filtered or unexported fields }
DoubleFlower is a two block high flower consisting of an upper and lower part.
func (DoubleFlower) BreakInfo ¶ added in v0.1.0
func (d DoubleFlower) BreakInfo() BreakInfo
BreakInfo ...
func (DoubleFlower) EncodeBlock ¶ added in v0.1.0
func (d DoubleFlower) EncodeBlock() (string, map[string]any)
EncodeBlock ...
func (DoubleFlower) EncodeItem ¶ added in v0.1.0
func (d DoubleFlower) EncodeItem() (name string, meta int16)
EncodeItem ...
func (DoubleFlower) FlammabilityInfo ¶ added in v0.1.0
func (d DoubleFlower) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
func (DoubleFlower) HasLiquidDrops ¶ added in v0.1.0
func (d DoubleFlower) HasLiquidDrops() bool
HasLiquidDrops ...
func (DoubleFlower) Hash ¶ added in v0.1.0
func (d DoubleFlower) Hash() uint64
func (DoubleFlower) LightDiffusionLevel ¶ added in v0.1.0
func (DoubleFlower) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (DoubleFlower) NeighbourUpdateTick ¶ added in v0.1.0
func (d DoubleFlower) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
NeighbourUpdateTick ...
type DoubleFlowerType ¶ added in v0.1.0
type DoubleFlowerType struct {
// contains filtered or unexported fields
}
DoubleFlowerType represents a type of double flower.
func DoubleFlowerTypes ¶ added in v0.1.0
func DoubleFlowerTypes() []DoubleFlowerType
DoubleFlowerTypes ...
type DoubleTallGrass ¶ added in v0.1.0
type DoubleTallGrass struct { // UpperPart is set if the plant is the upper part. UpperPart bool // Type is the type of grass Type GrassType // contains filtered or unexported fields }
DoubleTallGrass is a two-block high variety of grass.
func (DoubleTallGrass) BreakInfo ¶ added in v0.1.0
func (d DoubleTallGrass) BreakInfo() BreakInfo
BreakInfo ...
func (DoubleTallGrass) EncodeBlock ¶ added in v0.1.0
func (d DoubleTallGrass) EncodeBlock() (string, map[string]any)
EncodeBlock ...
func (DoubleTallGrass) EncodeItem ¶ added in v0.1.0
func (d DoubleTallGrass) EncodeItem() (name string, meta int16)
EncodeItem ...
func (DoubleTallGrass) FlammabilityInfo ¶ added in v0.1.0
func (d DoubleTallGrass) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
func (DoubleTallGrass) HasLiquidDrops ¶ added in v0.1.0
func (d DoubleTallGrass) HasLiquidDrops() bool
HasLiquidDrops ...
func (DoubleTallGrass) Hash ¶ added in v0.1.0
func (d DoubleTallGrass) Hash() uint64
func (DoubleTallGrass) LightDiffusionLevel ¶ added in v0.1.0
func (DoubleTallGrass) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (DoubleTallGrass) Model ¶ added in v0.1.0
func (DoubleTallGrass) Model() world.BlockModel
Model ...
func (DoubleTallGrass) NeighbourUpdateTick ¶ added in v0.1.0
func (d DoubleTallGrass) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
NeighbourUpdateTick ...
func (DoubleTallGrass) ReplaceableBy ¶ added in v0.1.0
ReplaceableBy ...
type DragonEgg ¶
type DragonEgg struct {
// contains filtered or unexported fields
}
DragonEgg is a decorative block or a "trophy item", and the rarest item in the game.
func (DragonEgg) EncodeBlock ¶
EncodeBlock ...
func (DragonEgg) EncodeItem ¶
EncodeItem ...
func (DragonEgg) LightDiffusionLevel ¶
func (DragonEgg) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (DragonEgg) LightEmissionLevel ¶
LightEmissionLevel ...
func (DragonEgg) NeighbourUpdateTick ¶
NeighbourUpdateTick ...
func (DragonEgg) SideClosed ¶
SideClosed ...
type DriedKelp ¶ added in v0.7.3
type DriedKelp struct {
// contains filtered or unexported fields
}
DriedKelp is a block primarily used as fuel in furnaces.
func (DriedKelp) EncodeBlock ¶ added in v0.7.3
EncodeBlock ...
func (DriedKelp) EncodeItem ¶ added in v0.7.3
EncodeItem ...
func (DriedKelp) FlammabilityInfo ¶ added in v0.7.3
func (DriedKelp) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
type Dripstone ¶ added in v0.1.0
type Dripstone struct {
// contains filtered or unexported fields
}
Dripstone is a rock block that allows pointed dripstone to grow beneath it.
func (Dripstone) EncodeBlock ¶ added in v0.1.0
EncodeBlock ...
func (Dripstone) EncodeItem ¶ added in v0.1.0
EncodeItem ...
func (Dripstone) Instrument ¶ added in v0.1.0
func (Dripstone) Instrument() sound.Instrument
Instrument ...
type Emerald ¶ added in v0.7.3
type Emerald struct {
// contains filtered or unexported fields
}
Emerald is a precious mineral block crafted using 9 emeralds.
func (Emerald) EncodeBlock ¶ added in v0.7.3
EncodeBlock ...
func (Emerald) EncodeItem ¶ added in v0.7.3
EncodeItem ...
func (Emerald) Instrument ¶ added in v0.7.3
func (e Emerald) Instrument() sound.Instrument
Instrument ...
type EmeraldOre ¶
type EmeraldOre struct { // Type is the type of emerald ore. Type OreType // contains filtered or unexported fields }
EmeraldOre is an ore generating exclusively under mountain biomes.
func (EmeraldOre) EncodeBlock ¶
func (e EmeraldOre) EncodeBlock() (string, map[string]any)
EncodeBlock ...
func (EmeraldOre) EncodeItem ¶
func (e EmeraldOre) EncodeItem() (name string, meta int16)
EncodeItem ...
func (EmeraldOre) Hash ¶
func (e EmeraldOre) Hash() uint64
type EndBrickStairs ¶
type EndBrickStairs struct { // UpsideDown specifies if the stairs are upside down. If set to true, the full side is at the top part // of the block. UpsideDown bool // Facing is the direction that the full side of the stairs is facing. Facing cube.Direction // contains filtered or unexported fields }
EndBrickStairs are blocks that allow entities to walk up blocks without jumping. They are crafted using end bricks.
func (EndBrickStairs) CanDisplace ¶
func (EndBrickStairs) CanDisplace(b world.Liquid) bool
CanDisplace ...
func (EndBrickStairs) EncodeBlock ¶
func (s EndBrickStairs) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (EndBrickStairs) EncodeItem ¶
func (s EndBrickStairs) EncodeItem() (name string, meta int16)
EncodeItem ...
func (EndBrickStairs) Hash ¶
func (s EndBrickStairs) Hash() uint64
func (EndBrickStairs) LightDiffusionLevel ¶
func (EndBrickStairs) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (EndBrickStairs) SideClosed ¶
SideClosed ...
func (EndBrickStairs) UseOnBlock ¶
func (s EndBrickStairs) UseOnBlock(pos cube.Pos, face cube.Face, clickPos mgl64.Vec3, w *world.World, user item.User, ctx *item.UseContext) (used bool)
UseOnBlock handles the directional placing of stairs and makes sure they are properly placed upside down when needed.
type EndBricks ¶
type EndBricks struct {
// contains filtered or unexported fields
}
EndBricks is a block made from combining four endstone blocks together.
func (EndBricks) EncodeBlock ¶
EncodeBlock ...
func (EndBricks) EncodeItem ¶
EncodeItem ...
type EndStone ¶
type EndStone struct {
// contains filtered or unexported fields
}
EndStone is a block found in The End.
func (EndStone) EncodeBlock ¶
EncodeBlock ...
type EntityInsider ¶ added in v0.4.0
type EntityInsider interface { // EntityInside is called when an entity goes inside the block's 1x1x1 axis aligned bounding box. EntityInside(pos cube.Pos, w *world.World, e world.Entity) }
EntityInsider represents a block that reacts to an entity going inside its 1x1x1 axis aligned bounding box.
type EntityLander ¶ added in v0.4.0
type EntityLander interface { // EntityLand is called when an entity lands on the block. EntityLand(pos cube.Pos, w *world.World, e world.Entity, distance *float64) }
EntityLander represents a block that reacts to an entity landing on it after falling.
type Farmland ¶
type Farmland struct { // Hydration is how much moisture the farmland block has. Hydration starts at 0 & caps at 7. During a random tick // update, if there is water within 4 blocks from the farmland block, hydration is set to 7. Otherwise, it // decrements until it turns into dirt. Hydration int // contains filtered or unexported fields }
Farmland is a block that crops are grown on. Farmland is created by interacting with a grass or dirt block using a hoe. Farmland can be hydrated by nearby water, with no hydration resulting in it turning into a dirt block.
func (Farmland) EncodeBlock ¶
EncodeBlock ...
func (Farmland) EncodeItem ¶
EncodeItem ...
func (Farmland) EntityLand ¶ added in v0.4.0
EntityLand ...
func (Farmland) NeighbourUpdateTick ¶
NeighbourUpdateTick ...
func (Farmland) RandomTick ¶
RandomTick ...
type Fire ¶
type Fire struct { // Type is the type of fire. Type FireType // Age affects how fire extinguishes. Newly placed fire starts at 0 and the value has a 1/3 chance of incrementing // each block tick. Age int // contains filtered or unexported fields }
Fire is a non-solid block that can spread to nearby flammable blocks.
func (Fire) EncodeBlock ¶
EncodeBlock ...
func (Fire) EntityInside ¶ added in v0.4.0
EntityInside ...
func (Fire) NeighbourUpdateTick ¶
NeighbourUpdateTick ...
func (Fire) RandomTick ¶
RandomTick ...
func (Fire) ScheduledTick ¶
ScheduledTick ...
type FireType ¶
type FireType struct {
// contains filtered or unexported fields
}
FireType represents a type of fire. Used by flaming blocks such as torches, lanterns, fire, and campfires.
func (FireType) Damage ¶ added in v0.7.3
func (f FireType) Damage() float64
Damage returns the amount of damage taken by entities inside the fire.
func (FireType) LightLevel ¶
func (f FireType) LightLevel() uint8
LightLevel returns the light level of the fire.
type FlammabilityInfo ¶
type FlammabilityInfo struct { // Encouragement is the chance a block will catch on fire during attempted fire spread. Encouragement int // Flammability is the chance a block will burn away during a fire block tick. Flammability int // LavaFlammable returns whether it can catch on fire from lava. LavaFlammable bool }
FlammabilityInfo contains values related to block behaviors involving fire.
type Flammable ¶
type Flammable interface { // FlammabilityInfo returns information about a block's behavior involving fire. FlammabilityInfo() FlammabilityInfo }
Flammable is an interface for blocks that can catch on fire.
type Flower ¶ added in v0.1.0
type Flower struct { // Type is the type of flower. Type FlowerType // contains filtered or unexported fields }
Flower is a non-solid plant that occur in a variety of shapes and colours. They are primarily used for decoration and crafted into dyes.
func (Flower) EncodeBlock ¶ added in v0.1.0
EncodeBlock ...
func (Flower) EncodeItem ¶ added in v0.1.0
EncodeItem ...
func (Flower) EntityInside ¶ added in v0.4.0
EntityInside ...
func (Flower) FlammabilityInfo ¶ added in v0.1.0
func (Flower) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
func (Flower) HasLiquidDrops ¶ added in v0.1.0
HasLiquidDrops ...
func (Flower) LightDiffusionLevel ¶ added in v0.1.0
func (Flower) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (Flower) NeighbourUpdateTick ¶ added in v0.1.0
NeighbourUpdateTick ...
type FlowerType ¶ added in v0.1.0
type FlowerType struct {
// contains filtered or unexported fields
}
FlowerType represents a type of flower.
func LilyOfTheValley ¶ added in v0.1.0
func LilyOfTheValley() FlowerType
LilyOfTheValley is a lily of the valley flower.
func OrangeTulip ¶ added in v0.1.0
func OrangeTulip() FlowerType
OrangeTulip is an orange tulip flower.
type Frictional ¶ added in v0.4.0
type Frictional interface { // Friction returns the block's friction value. Friction() float64 }
Frictional represents a block that may have a custom friction value, friction is used for entity drag when the entity is on ground. If a block does not implement this interface, it should be assumed that its friction is 0.6.
type Froglight ¶ added in v0.7.0
type Froglight struct { // Type is the type of froglight. Type FroglightType // Axis is the axis which the froglight block faces. Axis cube.Axis // contains filtered or unexported fields }
Froglight is a luminous natural block that can be obtained if a frog eats a tiny magma cube.
func (Froglight) EncodeBlock ¶ added in v0.7.0
EncodeBlock ...
func (Froglight) EncodeItem ¶ added in v0.7.0
EncodeItem ...
func (Froglight) LightEmissionLevel ¶ added in v0.7.0
LightEmissionLevel ...
type FroglightType ¶ added in v0.7.0
type FroglightType struct {
// contains filtered or unexported fields
}
FroglightType represents a type of froglight.
func Pearlescent ¶ added in v0.7.0
func Pearlescent() FroglightType
Pearlescent is the purple variant of froglight.
func Verdant ¶ added in v0.7.0
func Verdant() FroglightType
Verdant is the green variant of froglight.
type GildedBlackstone ¶
type GildedBlackstone struct {
// contains filtered or unexported fields
}
GildedBlackstone is a variant of blackstone that can drop itself or gold nuggets when mined.
func (GildedBlackstone) EncodeBlock ¶
func (GildedBlackstone) EncodeBlock() (string, map[string]any)
EncodeBlock ...
func (GildedBlackstone) EncodeItem ¶
func (GildedBlackstone) EncodeItem() (name string, meta int16)
EncodeItem ...
func (GildedBlackstone) Hash ¶
func (GildedBlackstone) Hash() uint64
type Glass ¶
type Glass struct {
// contains filtered or unexported fields
}
Glass is a decorative, fully transparent solid block that can be dyed into stained-glass.
type GlassPane ¶
type GlassPane struct {
// contains filtered or unexported fields
}
GlassPane is a transparent block that can be used as a more efficient alternative to glass blocks.
func (GlassPane) EncodeBlock ¶
EncodeBlock ...
func (GlassPane) EncodeItem ¶
EncodeItem ...
func (GlassPane) LightDiffusionLevel ¶
func (GlassPane) LightDiffusionLevel() uint8
LightDiffusionLevel ...
type GlazedTerracotta ¶
type GlazedTerracotta struct { // Colour specifies the colour of the block. Colour item.Colour // Facing specifies the face of the block. Facing cube.Direction // contains filtered or unexported fields }
GlazedTerracotta is a vibrant solid block that comes in the 16 regular dye colours.
func (GlazedTerracotta) EncodeBlock ¶
func (t GlazedTerracotta) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (GlazedTerracotta) EncodeItem ¶
func (t GlazedTerracotta) EncodeItem() (name string, meta int16)
EncodeItem ...
func (GlazedTerracotta) Hash ¶
func (t GlazedTerracotta) Hash() uint64
func (GlazedTerracotta) Instrument ¶
func (GlazedTerracotta) Instrument() sound.Instrument
Instrument ...
func (GlazedTerracotta) UseOnBlock ¶
func (t GlazedTerracotta) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, w *world.World, user item.User, ctx *item.UseContext) (used bool)
UseOnBlock ensures the proper facing is used when placing a glazed terracotta block, by using the opposite of the player.
type Glowstone ¶
type Glowstone struct {
// contains filtered or unexported fields
}
Glowstone is commonly found on the ceiling of the nether dimension.
func (Glowstone) EncodeBlock ¶
EncodeBlock ...
func (Glowstone) EncodeItem ¶
EncodeItem ...
func (Glowstone) LightEmissionLevel ¶
LightEmissionLevel returns 15.
type Gold ¶ added in v0.7.3
type Gold struct {
// contains filtered or unexported fields
}
Gold is a precious metal block crafted from 9 gold ingots.
func (Gold) EncodeBlock ¶ added in v0.7.3
EncodeBlock ...
func (Gold) EncodeItem ¶ added in v0.7.3
EncodeItem ...
type GoldOre ¶
type GoldOre struct { // Type is the type of gold ore. Type OreType // contains filtered or unexported fields }
GoldOre is a rare mineral block found underground.
func (GoldOre) EncodeBlock ¶
EncodeBlock ...
type Granite ¶
type Granite polishable
Granite is a type of igneous rock.
func (Granite) EncodeBlock ¶
EncodeBlock ...
type Grass ¶
type Grass struct {
// contains filtered or unexported fields
}
Grass blocks generate abundantly across the surface of the world.
func (Grass) RandomTick ¶
RandomTick handles the ticking of grass, which may or may not result in the spreading of grass onto dirt.
type GrassType ¶ added in v0.1.0
type GrassType struct {
// contains filtered or unexported fields
}
GrassType represents a grass plant, which can be placed on top of grass blocks.
func GrassTypes ¶ added in v0.1.0
func GrassTypes() []GrassType
GrassTypes returns all variants of grass.
func NormalGrass ¶ added in v0.1.0
func NormalGrass() GrassType
NormalGrass returns the grass variant of grass.
type Gravel ¶
type Gravel struct {
// contains filtered or unexported fields
}
Gravel is a block affected by gravity. It has a 10% chance of dropping flint instead of itself on break.
func (Gravel) NeighbourUpdateTick ¶
NeighbourUpdateTick ...
type HayBale ¶ added in v0.7.3
type HayBale struct { // Axis is the axis which the hay bale block faces. Axis cube.Axis // contains filtered or unexported fields }
HayBale is a decorative, flammable block that can also be used to feed horses, breed llamas, reduce fall damage, and extend campfire smokes.
func (HayBale) EncodeBlock ¶ added in v0.7.3
EncodeBlock ...
func (HayBale) EncodeItem ¶ added in v0.7.3
EncodeItem ...
func (HayBale) EntityLand ¶ added in v0.7.3
EntityLand ...
func (HayBale) FlammabilityInfo ¶ added in v0.7.3
func (HayBale) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
func (HayBale) Instrument ¶ added in v0.7.3
func (HayBale) Instrument() sound.Instrument
Instrument ...
type Honeycomb ¶ added in v0.7.3
type Honeycomb struct {
// contains filtered or unexported fields
}
Honeycomb is a decorative blocks crafted from honeycombs.
func (Honeycomb) EncodeBlock ¶ added in v0.7.3
EncodeBlock ...
func (Honeycomb) EncodeItem ¶ added in v0.7.3
EncodeItem ...
func (Honeycomb) Instrument ¶ added in v0.7.3
func (h Honeycomb) Instrument() sound.Instrument
Instrument ...
type InvisibleBedrock ¶
type InvisibleBedrock struct {
// contains filtered or unexported fields
}
InvisibleBedrock is an indestructible, solid block, similar to bedrock and has the appearance of air. It shares many of its properties with barriers.
func (InvisibleBedrock) EncodeBlock ¶
func (InvisibleBedrock) EncodeBlock() (string, map[string]any)
EncodeBlock ...
func (InvisibleBedrock) EncodeItem ¶
func (InvisibleBedrock) EncodeItem() (name string, meta int16)
EncodeItem ...
func (InvisibleBedrock) Hash ¶
func (InvisibleBedrock) Hash() uint64
func (InvisibleBedrock) LightDiffusionLevel ¶
func (InvisibleBedrock) LightDiffusionLevel() uint8
LightDiffusionLevel ...
type Iron ¶ added in v0.7.3
type Iron struct {
// contains filtered or unexported fields
}
Iron is a precious metal block made from 9 iron ingots.
func (Iron) EncodeBlock ¶ added in v0.7.3
EncodeBlock ...
func (Iron) EncodeItem ¶ added in v0.7.3
EncodeItem ...
type IronBars ¶
type IronBars struct {
// contains filtered or unexported fields
}
IronBars are blocks that serve a similar purpose to glass panes, but made of iron instead of glass.
func (IronBars) EncodeBlock ¶
EncodeBlock ...
func (IronBars) LightDiffusionLevel ¶
func (IronBars) LightDiffusionLevel() uint8
LightDiffusionLevel ...
type IronOre ¶
type IronOre struct { // Type is the type of iron ore. Type OreType // contains filtered or unexported fields }
IronOre is a mineral block found underground.
func (IronOre) EncodeBlock ¶
EncodeBlock ...
type ItemFrame ¶ added in v0.5.0
type ItemFrame struct { // Facing is the direction from the frame to the block. Facing cube.Face // Item is the item that is displayed inside the frame. Item item.Stack // Rotations is the number of rotations for the item in the frame. Each rotation is 45 degrees, with the exception // being maps having 90 degree rotations. Rotations int // DropChance is the chance of the item dropping when the frame is broken. In vanilla, this is always 1.0. DropChance float64 // Glowing makes the frame the glowing variant. Glowing bool // contains filtered or unexported fields }
ItemFrame is a block entity that displays the item or block that is inside it.
func (ItemFrame) CanDisplace ¶ added in v0.5.0
CanDisplace ...
func (ItemFrame) EncodeBlock ¶ added in v0.5.0
EncodeBlock ...
func (ItemFrame) EncodeItem ¶ added in v0.5.0
EncodeItem ...
func (ItemFrame) LightDiffusionLevel ¶ added in v0.5.0
func (ItemFrame) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (ItemFrame) NeighbourUpdateTick ¶ added in v0.5.0
NeighbourUpdateTick ...
func (ItemFrame) Pick ¶ added in v0.5.0
Pick returns the item that is picked when the block is picked.
func (ItemFrame) SideClosed ¶ added in v0.5.0
SideClosed ...
type Kelp ¶
type Kelp struct { // Age is the age of the kelp block which can be 0-25. If age is 25, kelp won't grow any further. Age int // contains filtered or unexported fields }
Kelp is an underwater block which can grow on top of solids underwater.
func (Kelp) CanDisplace ¶
CanDisplace will return true if the liquid is Water, since kelp can waterlog.
func (Kelp) EncodeBlock ¶
EncodeBlock ...
func (Kelp) NeighbourUpdateTick ¶
NeighbourUpdateTick ...
func (Kelp) RandomTick ¶
RandomTick ...
func (Kelp) SideClosed ¶
SideClosed will always return false since kelp doesn't close any side.
type Ladder ¶ added in v0.2.0
type Ladder struct { // Facing is the side of the block the ladder is currently attached to. Facing cube.Direction // contains filtered or unexported fields }
Ladder is a wooden block used for climbing walls either vertically or horizontally. They can be placed only on the sides of other blocks.
func (Ladder) CanDisplace ¶ added in v0.2.0
CanDisplace ...
func (Ladder) EncodeBlock ¶ added in v0.2.0
EncodeBlock ...
func (Ladder) EncodeItem ¶ added in v0.2.0
EncodeItem ...
func (Ladder) EntityInside ¶ added in v0.4.0
EntityInside ...
func (Ladder) LightDiffusionLevel ¶ added in v0.2.0
func (Ladder) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (Ladder) NeighbourUpdateTick ¶ added in v0.2.0
NeighbourUpdateTick ...
func (Ladder) SideClosed ¶ added in v0.2.0
SideClosed ...
type Lantern ¶
type Lantern struct { // Hanging determines if a lantern is hanging off a block. Hanging bool // Type of fire lighting the lantern. Type FireType // contains filtered or unexported fields }
Lantern is a light emitting block.
func (Lantern) EncodeBlock ¶
EncodeBlock ...
func (Lantern) LightDiffusionLevel ¶
func (Lantern) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (Lantern) LightEmissionLevel ¶
LightEmissionLevel ...
func (Lantern) NeighbourUpdateTick ¶
NeighbourUpdateTick ...
func (Lantern) SideClosed ¶
SideClosed ...
type Lapis ¶ added in v0.7.3
type Lapis struct {
// contains filtered or unexported fields
}
Lapis is a decorative mineral block that is crafted from lapis lazuli.
func (Lapis) EncodeBlock ¶ added in v0.7.3
EncodeBlock ...
func (Lapis) EncodeItem ¶ added in v0.7.3
EncodeItem ...
type LapisOre ¶
type LapisOre struct { // Type is the type of lapis ore. Type OreType // contains filtered or unexported fields }
LapisOre is an ore block from which lapis lazuli is obtained.
func (LapisOre) EncodeBlock ¶
EncodeBlock ...
func (LapisOre) EncodeItem ¶
EncodeItem ...
type Lava ¶
type Lava struct { // Still makes the lava not spread whenever it is updated. Still lava cannot be acquired in the game // without world editing. Still bool // Depth is the depth of the water. This is a number from 1-8, where 8 is a source block and 1 is the // smallest possible lava block. Depth int // Falling specifies if the lava is falling. Falling lava will always appear as a source block, but its // behaviour differs when it starts spreading. Falling bool // contains filtered or unexported fields }
Lava is a light-emitting fluid block that causes fire damage.
func (Lava) EncodeBlock ¶
EncodeBlock ...
func (Lava) EntityInside ¶ added in v0.4.0
EntityInside ...
func (Lava) LightDiffusionLevel ¶
LightDiffusionLevel always returns 2.
func (Lava) LightEmissionLevel ¶
LightEmissionLevel returns 15.
func (Lava) LiquidDepth ¶
LiquidDepth returns the depth of the lava.
func (Lava) LiquidFalling ¶
LiquidFalling checks if the lava is falling.
func (Lava) LiquidType ¶
LiquidType returns 10 as a unique identifier for the lava liquid.
func (Lava) NeighbourUpdateTick ¶
NeighbourUpdateTick ...
func (Lava) RandomTick ¶
RandomTick ...
func (Lava) ScheduledTick ¶
ScheduledTick ...
type Leaves ¶
type Leaves struct { // Wood is the type of wood of the leaves. This field must have one of the values found in the material // package. Wood WoodType // Persistent specifies if the leaves are persistent, meaning they will not decay as a result of no wood // being nearby. Persistent bool ShouldUpdate bool // contains filtered or unexported fields }
Leaves are blocks that grow as part of trees which mainly drop saplings and sticks.
func (Leaves) EncodeBlock ¶
EncodeBlock ...
func (Leaves) FlammabilityInfo ¶
func (l Leaves) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
func (Leaves) LightDiffusionLevel ¶
LightDiffusionLevel ...
func (Leaves) NeighbourUpdateTick ¶
NeighbourUpdateTick ...
func (Leaves) RandomTick ¶
RandomTick ...
func (Leaves) SideClosed ¶
SideClosed ...
type Light ¶
type Light struct { // Level is the light level that the light block produces. It is a number from 0-15, where 15 is the // brightest and 0 is no light at all. Level int // contains filtered or unexported fields }
Light is an invisible block that can produce any light level.
func (Light) EncodeBlock ¶
EncodeBlock ...
type LightDiffuser ¶
type LightDiffuser interface { // LightDiffusionLevel returns the amount of light levels that is subtracted when light passes through // this block. Some blocks, such as leaves, have this behaviour. A diffusion level of 15 means that all // light will be completely blocked when it passes through the block. LightDiffusionLevel() uint8 }
LightDiffuser represents a block that diffuses light. This means that a specific amount of light levels will be subtracted when light passes through the block. Blocks that do not implement LightDiffuser will be assumed to be solid: Light will not be able to pass through these blocks.
type LightEmitter ¶
type LightEmitter interface { // LightEmissionLevel returns the light emission level of the block, a number from 0-15 where 15 is the // brightest and 0 means it doesn't emit light at all. LightEmissionLevel() uint8 }
LightEmitter represents a block that emits light when placed. Blocks such as torches or lanterns implement this interface.
type LiquidRemovable ¶
type LiquidRemovable interface {
HasLiquidDrops() bool
}
LiquidRemovable represents a block that may be removed by a liquid flowing into it. When this happens, the block's drops are dropped at the position if HasLiquidDrops returns true.
type LitPumpkin ¶
type LitPumpkin struct { // Facing is the direction the pumpkin is facing. Facing cube.Direction // contains filtered or unexported fields }
LitPumpkin is a decorative light emitting block crafted with a Carved Pumpkin & Torch
func (LitPumpkin) EncodeBlock ¶
func (l LitPumpkin) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (LitPumpkin) EncodeItem ¶
func (l LitPumpkin) EncodeItem() (name string, meta int16)
EncodeItem ...
func (LitPumpkin) Hash ¶
func (l LitPumpkin) Hash() uint64
func (LitPumpkin) LightEmissionLevel ¶
func (l LitPumpkin) LightEmissionLevel() uint8
LightEmissionLevel ...
type Log ¶
type Log struct { // Wood is the type of wood of the log. This field must have one of the values found in the material // package. Wood WoodType // Stripped specifies if the log is stripped or not. Stripped bool // Axis is the axis which the log block faces. Axis cube.Axis // contains filtered or unexported fields }
Log is a naturally occurring block found in trees, primarily used to create planks. It comes in six species: oak, spruce, birch, jungle, acacia, and dark oak. Stripped log is a variant obtained by using an axe on a log.
func (Log) EncodeBlock ¶
EncodeBlock ...
type Melon ¶
type Melon struct {
// contains filtered or unexported fields
}
Melon is a fruit block that grows from melon stems.
type MelonSeeds ¶
type MelonSeeds struct { // direction is the direction from the stem to the melon. Direction cube.Face // contains filtered or unexported fields }
MelonSeeds grow melon blocks.
func (MelonSeeds) CalculateGrowthChance ¶
CalculateGrowthChance calculates the chance the crop will grow during a random tick.
func (MelonSeeds) EncodeBlock ¶
func (m MelonSeeds) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (MelonSeeds) EncodeItem ¶
func (m MelonSeeds) EncodeItem() (name string, meta int16)
EncodeItem ...
func (MelonSeeds) GrowthStage ¶
func (c MelonSeeds) GrowthStage() int
GrowthStage returns the current stage of growth.
func (MelonSeeds) Hash ¶
func (m MelonSeeds) Hash() uint64
func (MelonSeeds) NeighbourUpdateTick ¶
func (m MelonSeeds) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
NeighbourUpdateTick ...
func (MelonSeeds) RandomTick ¶
RandomTick ...
type MossCarpet ¶ added in v0.1.0
type MossCarpet struct {
// contains filtered or unexported fields
}
MossCarpet is a thin decorative variant of the moss block.
func (MossCarpet) BreakInfo ¶ added in v0.1.0
func (m MossCarpet) BreakInfo() BreakInfo
BreakInfo ...
func (MossCarpet) CanDisplace ¶ added in v0.1.0
func (MossCarpet) CanDisplace(b world.Liquid) bool
CanDisplace ...
func (MossCarpet) EncodeBlock ¶ added in v0.1.0
func (m MossCarpet) EncodeBlock() (string, map[string]any)
EncodeBlock ...
func (MossCarpet) EncodeItem ¶ added in v0.1.0
func (m MossCarpet) EncodeItem() (name string, meta int16)
EncodeItem ...
func (MossCarpet) HasLiquidDrops ¶ added in v0.1.0
func (MossCarpet) HasLiquidDrops() bool
HasLiquidDrops ...
func (MossCarpet) Hash ¶ added in v0.1.0
func (MossCarpet) Hash() uint64
func (MossCarpet) LightDiffusionLevel ¶ added in v0.1.0
func (MossCarpet) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (MossCarpet) NeighbourUpdateTick ¶ added in v0.1.0
func (MossCarpet) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
NeighbourUpdateTick ...
func (MossCarpet) SideClosed ¶ added in v0.1.0
SideClosed ...
type Mud ¶ added in v0.7.0
type Mud struct {
// contains filtered or unexported fields
}
Mud is a decorative block obtained by using a water bottle on a dirt block.
func (Mud) EncodeBlock ¶ added in v0.7.0
EncodeBlock ...
func (Mud) EncodeItem ¶ added in v0.7.0
EncodeItem ...
type MudBricks ¶ added in v0.7.0
type MudBricks struct {
// contains filtered or unexported fields
}
MudBricks are a decorative block obtained by crafting 4 packed mud.
func (MudBricks) EncodeBlock ¶ added in v0.7.0
EncodeBlock ...
func (MudBricks) EncodeItem ¶ added in v0.7.0
EncodeItem ...
func (MudBricks) Instrument ¶ added in v0.7.0
func (MudBricks) Instrument() sound.Instrument
Instrument ...
type MuddyMangroveRoots ¶ added in v0.7.0
type MuddyMangroveRoots struct {
// contains filtered or unexported fields
}
MuddyMangroveRoots are a decorative variant of mangrove roots.
func (MuddyMangroveRoots) BreakInfo ¶ added in v0.7.0
func (m MuddyMangroveRoots) BreakInfo() BreakInfo
BreakInfo ...
func (MuddyMangroveRoots) EncodeBlock ¶ added in v0.7.0
func (MuddyMangroveRoots) EncodeBlock() (string, map[string]any)
EncodeBlock ...
func (MuddyMangroveRoots) EncodeItem ¶ added in v0.7.0
func (MuddyMangroveRoots) EncodeItem() (name string, meta int16)
EncodeItem ...
func (MuddyMangroveRoots) Hash ¶ added in v0.7.0
func (MuddyMangroveRoots) Hash() uint64
func (MuddyMangroveRoots) Model ¶ added in v0.7.0
func (MuddyMangroveRoots) Model() world.BlockModel
Model ...
type NetherBrickFence ¶
type NetherBrickFence struct {
// contains filtered or unexported fields
}
NetherBrickFence is the nether brick variant of the fence block.
func (NetherBrickFence) CanDisplace ¶
func (NetherBrickFence) CanDisplace(b world.Liquid) bool
CanDisplace ...
func (NetherBrickFence) EncodeBlock ¶
func (NetherBrickFence) EncodeBlock() (string, map[string]any)
EncodeBlock ...
func (NetherBrickFence) EncodeItem ¶
func (NetherBrickFence) EncodeItem() (name string, meta int16)
EncodeItem ...
func (NetherBrickFence) Hash ¶
func (NetherBrickFence) Hash() uint64
func (NetherBrickFence) LightDiffusionLevel ¶
func (NetherBrickFence) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (NetherBrickFence) SideClosed ¶
SideClosed ...
type NetherBricks ¶ added in v0.6.0
type NetherBricks struct { // NetherBricksType is the type of nether bricks of the block. Type NetherBricksType // contains filtered or unexported fields }
NetherBricks are blocks used to form nether fortresses in the Nether. Red Nether bricks, Cracked Nether bricks and Chiseled Nether bricks are decorative variants that do not naturally generate.
func (NetherBricks) BreakInfo ¶ added in v0.6.0
func (n NetherBricks) BreakInfo() BreakInfo
BreakInfo ...
func (NetherBricks) EncodeBlock ¶ added in v0.6.0
func (n NetherBricks) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (NetherBricks) EncodeItem ¶ added in v0.6.0
func (n NetherBricks) EncodeItem() (id string, meta int16)
EncodeItem ...
func (NetherBricks) Hash ¶ added in v0.6.0
func (n NetherBricks) Hash() uint64
func (NetherBricks) Instrument ¶ added in v0.6.0
func (NetherBricks) Instrument() sound.Instrument
Instrument ...
type NetherBricksType ¶ added in v0.6.0
type NetherBricksType struct {
// contains filtered or unexported fields
}
NetherBricksType represents a type of nether bricks.
func ChiseledNetherBricks ¶ added in v0.6.0
func ChiseledNetherBricks() NetherBricksType
ChiseledNetherBricks is the chiseled variant of the nether bricks.
func CrackedNetherBricks ¶ added in v0.6.0
func CrackedNetherBricks() NetherBricksType
CrackedNetherBricks is the cracked variant of the nether bricks.
func NetherBricksTypes ¶ added in v0.6.0
func NetherBricksTypes() []NetherBricksType
NetherBricksTypes returns all nether bricks types.
func NormalNetherBricks ¶ added in v0.6.0
func NormalNetherBricks() NetherBricksType
NormalNetherBricks is the normal variant of the nether bricks.
func RedNetherBricks ¶ added in v0.6.0
func RedNetherBricks() NetherBricksType
RedNetherBricks is the red variant of the nether bricks.
type NetherGoldOre ¶
type NetherGoldOre struct {
// contains filtered or unexported fields
}
NetherGoldOre is a variant of gold ore found exclusively in The Nether.
func (NetherGoldOre) EncodeBlock ¶
func (NetherGoldOre) EncodeBlock() (string, map[string]any)
EncodeBlock ...
func (NetherGoldOre) EncodeItem ¶
func (NetherGoldOre) EncodeItem() (name string, meta int16)
EncodeItem ...
func (NetherGoldOre) Hash ¶
func (NetherGoldOre) Hash() uint64
type NetherQuartzOre ¶
type NetherQuartzOre struct {
// contains filtered or unexported fields
}
NetherQuartzOre is ore found in the Nether.
func (NetherQuartzOre) EncodeBlock ¶
func (NetherQuartzOre) EncodeBlock() (string, map[string]any)
EncodeBlock ...
func (NetherQuartzOre) EncodeItem ¶
func (NetherQuartzOre) EncodeItem() (name string, meta int16)
EncodeItem ...
func (NetherQuartzOre) Hash ¶
func (NetherQuartzOre) Hash() uint64
func (NetherQuartzOre) Instrument ¶
func (NetherQuartzOre) Instrument() sound.Instrument
Instrument ...
type NetherSprouts ¶ added in v0.1.0
type NetherSprouts struct {
// contains filtered or unexported fields
}
NetherSprouts are a non-solid plant block that generate in warped forests.
func (NetherSprouts) BreakInfo ¶ added in v0.1.0
func (n NetherSprouts) BreakInfo() BreakInfo
BreakInfo ...
func (NetherSprouts) EncodeBlock ¶ added in v0.1.0
func (n NetherSprouts) EncodeBlock() (string, map[string]any)
EncodeBlock ...
func (NetherSprouts) EncodeItem ¶ added in v0.1.0
func (n NetherSprouts) EncodeItem() (name string, meta int16)
EncodeItem ...
func (NetherSprouts) FlammabilityInfo ¶ added in v0.1.0
func (n NetherSprouts) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
func (NetherSprouts) HasLiquidDrops ¶ added in v0.1.0
func (n NetherSprouts) HasLiquidDrops() bool
HasLiquidDrops ...
func (NetherSprouts) Hash ¶ added in v0.1.0
func (NetherSprouts) Hash() uint64
func (NetherSprouts) LightDiffusionLevel ¶ added in v0.1.0
func (NetherSprouts) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (NetherSprouts) Model ¶ added in v0.1.0
func (NetherSprouts) Model() world.BlockModel
Model ...
func (NetherSprouts) NeighbourUpdateTick ¶ added in v0.1.0
func (n NetherSprouts) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
NeighbourUpdateTick ...
func (NetherSprouts) ReplaceableBy ¶ added in v0.1.0
ReplaceableBy ...
type NetherWart ¶
type NetherWart struct { // Age is the age of the nether wart block. 3 is fully grown. Age int // contains filtered or unexported fields }
NetherWart is a fungus found in the Nether that is vital in the creation of potions.
func (NetherWart) EncodeBlock ¶
func (n NetherWart) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (NetherWart) EncodeItem ¶
func (NetherWart) EncodeItem() (name string, meta int16)
EncodeItem ...
func (NetherWart) Hash ¶
func (n NetherWart) Hash() uint64
func (NetherWart) LightDiffusionLevel ¶
func (NetherWart) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (NetherWart) NeighbourUpdateTick ¶
func (n NetherWart) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
NeighbourUpdateTick ...
func (NetherWart) RandomTick ¶
RandomTick ...
type NetherWartBlock ¶ added in v0.7.3
type NetherWartBlock struct { // Warped is the turquoise variant found in warped forests, but cannot be crafted unlike Nether wart block. Warped bool // contains filtered or unexported fields }
NetherWartBlock is a decorative block found in crimson forests and crafted using Nether wart.
func (NetherWartBlock) BreakInfo ¶ added in v0.7.3
func (n NetherWartBlock) BreakInfo() BreakInfo
BreakInfo ...
func (NetherWartBlock) EncodeBlock ¶ added in v0.7.3
func (n NetherWartBlock) EncodeBlock() (name string, properties map[string]interface{})
EncodeBlock ...
func (NetherWartBlock) EncodeItem ¶ added in v0.7.3
func (n NetherWartBlock) EncodeItem() (name string, meta int16)
EncodeItem ...
func (NetherWartBlock) Hash ¶ added in v0.7.3
func (n NetherWartBlock) Hash() uint64
func (NetherWartBlock) Model ¶ added in v0.7.3
func (NetherWartBlock) Model() world.BlockModel
Model ...
type Netherite ¶ added in v0.7.3
type Netherite struct {
// contains filtered or unexported fields
}
Netherite is a precious mineral block made from 9 netherite ingots.
func (Netherite) EncodeBlock ¶ added in v0.7.3
EncodeBlock ...
func (Netherite) EncodeItem ¶ added in v0.7.3
EncodeItem ...
func (Netherite) Instrument ¶ added in v0.7.3
func (Netherite) Instrument() sound.Instrument
Instrument ...
func (Netherite) PowersBeacon ¶ added in v0.7.3
PowersBeacon ...
type Netherrack ¶
type Netherrack struct {
// contains filtered or unexported fields
}
Netherrack is a block found in The Nether.
func (Netherrack) EncodeBlock ¶
func (Netherrack) EncodeBlock() (string, map[string]any)
EncodeBlock ...
func (Netherrack) EncodeItem ¶
func (Netherrack) EncodeItem() (name string, meta int16)
EncodeItem ...
func (Netherrack) Hash ¶
func (Netherrack) Hash() uint64
type Note ¶ added in v0.7.3
type Note struct { // Pitch is the current pitch the note block is set to. Value ranges from 0-24. Pitch int // contains filtered or unexported fields }
Note is a musical block that emits sounds when powered with redstone.
func (Note) EncodeBlock ¶ added in v0.7.3
EncodeBlock ...
func (Note) EncodeItem ¶ added in v0.7.3
EncodeItem ...
type Obsidian ¶
type Obsidian struct { // Crying specifies if the block is a crying obsidian block. If true, the block is blue and emits light. Crying bool // contains filtered or unexported fields }
Obsidian is a dark purple block known for its high blast resistance and strength, most commonly found when water flows over lava.
func (Obsidian) EncodeBlock ¶
EncodeBlock ...
func (Obsidian) EncodeItem ¶
EncodeItem ...
func (Obsidian) LightEmissionLevel ¶
LightEmissionLevel ...
type OpenAction ¶ added in v0.6.0
type OpenAction struct {
// contains filtered or unexported fields
}
OpenAction is a world.BlockAction to open a block at a position. It is sent for blocks such as chests.
func (OpenAction) BlockAction ¶ added in v0.6.0
func (OpenAction) BlockAction()
BlockAction serves to implement the world.BlockAction interface.
type OreType ¶ added in v0.1.0
type OreType struct {
// contains filtered or unexported fields
}
OreType represents a variant of ore blocks.
func DeepslateOre ¶ added in v0.1.0
func DeepslateOre() OreType
DeepslateOre returns the deepslate ore variant.
type PackedIce ¶ added in v0.4.0
type PackedIce struct {
// contains filtered or unexported fields
}
PackedIce is an opaque solid block variant of ice. Unlike regular ice, it does not melt near bright light sources.
func (PackedIce) EncodeBlock ¶ added in v0.4.0
EncodeBlock ...
func (PackedIce) EncodeItem ¶ added in v0.4.0
EncodeItem ...
func (PackedIce) Instrument ¶ added in v0.4.0
func (PackedIce) Instrument() sound.Instrument
Instrument ...
type PackedMud ¶ added in v0.7.0
type PackedMud struct {
// contains filtered or unexported fields
}
PackedMud is a block crafted from mud and wheat. It is used to create mud bricks.
func (PackedMud) EncodeBlock ¶ added in v0.7.0
EncodeBlock ...
func (PackedMud) EncodeItem ¶ added in v0.7.0
EncodeItem ...
type Pickable ¶ added in v0.5.0
type Pickable interface { // Pick returns the item that is picked when the block is picked. Pick() item.Stack }
Pickable represents a block that may give a different item then the block itself when picked.
type Placer ¶
Placer represents an entity that is able to place a block at a specific position in the world.
type Planks ¶
type Planks struct { // Wood is the type of wood of the planks. This field must have one of the values found in the material // package. Wood WoodType // contains filtered or unexported fields }
Planks are common blocks used in crafting recipes. They are made by crafting logs into planks.
func (Planks) EncodeBlock ¶
EncodeBlock ...
func (Planks) FlammabilityInfo ¶
func (p Planks) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
func (Planks) RepairsWoodTools ¶ added in v0.7.3
RepairsWoodTools ...
type Podzol ¶ added in v0.1.0
type Podzol struct {
// contains filtered or unexported fields
}
Podzol is a dirt-type block that naturally blankets the surface of the giant tree taiga and bamboo jungles, along with their respective variants.
func (Podzol) EncodeBlock ¶ added in v0.1.0
EncodeBlock ...
func (Podzol) EncodeItem ¶ added in v0.1.0
EncodeItem ...
type Potato ¶
type Potato struct {
// contains filtered or unexported fields
}
Potato is a crop that can be consumed raw or cooked to make baked potatoes.
func (Potato) CalculateGrowthChance ¶
CalculateGrowthChance calculates the chance the crop will grow during a random tick.
func (Potato) EncodeBlock ¶
EncodeBlock ...
func (Potato) GrowthStage ¶
func (c Potato) GrowthStage() int
GrowthStage returns the current stage of growth.
func (Potato) NeighbourUpdateTick ¶
NeighbourUpdateTick ...
func (Potato) RandomTick ¶
RandomTick ...
type Prismarine ¶ added in v0.1.0
type Prismarine struct { // Type is the type of prismarine of the block. Type PrismarineType // contains filtered or unexported fields }
Prismarine is a type of stone that appears underwater in ruins and ocean monuments.
func (Prismarine) BreakInfo ¶ added in v0.1.0
func (p Prismarine) BreakInfo() BreakInfo
BreakInfo ...
func (Prismarine) EncodeBlock ¶ added in v0.1.0
func (p Prismarine) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (Prismarine) EncodeItem ¶ added in v0.1.0
func (p Prismarine) EncodeItem() (id string, meta int16)
EncodeItem ...
func (Prismarine) Hash ¶ added in v0.1.0
func (p Prismarine) Hash() uint64
func (Prismarine) Instrument ¶ added in v0.1.0
func (Prismarine) Instrument() sound.Instrument
Instrument ...
type PrismarineType ¶ added in v0.1.0
type PrismarineType struct {
// contains filtered or unexported fields
}
PrismarineType represents a type of prismarine.
func BrickPrismarine ¶ added in v0.1.0
func BrickPrismarine() PrismarineType
BrickPrismarine is the brick variant of prismarine.
func DarkPrismarine ¶ added in v0.1.0
func DarkPrismarine() PrismarineType
DarkPrismarine is the dark variant of prismarine.
func NormalPrismarine ¶ added in v0.1.0
func NormalPrismarine() PrismarineType
NormalPrismarine is the normal variant of prismarine.
type Pumpkin ¶
type Pumpkin struct { // Carved is whether the pumpkin is carved. Carved bool // Facing is the direction the pumpkin is facing. Facing cube.Direction // contains filtered or unexported fields }
Pumpkin is a crop block. Interacting with shears results in the carved variant.
func (Pumpkin) EncodeBlock ¶
EncodeBlock ...
func (Pumpkin) KnockBackResistance ¶
KnockBackResistance ...
type PumpkinSeeds ¶
type PumpkinSeeds struct { // Direction is the direction from the stem to the pumpkin. Direction cube.Face // contains filtered or unexported fields }
PumpkinSeeds grow pumpkin blocks.
func (PumpkinSeeds) CalculateGrowthChance ¶
CalculateGrowthChance calculates the chance the crop will grow during a random tick.
func (PumpkinSeeds) EncodeBlock ¶
func (p PumpkinSeeds) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (PumpkinSeeds) EncodeItem ¶
func (p PumpkinSeeds) EncodeItem() (name string, meta int16)
EncodeItem ...
func (PumpkinSeeds) GrowthStage ¶
func (c PumpkinSeeds) GrowthStage() int
GrowthStage returns the current stage of growth.
func (PumpkinSeeds) Hash ¶
func (p PumpkinSeeds) Hash() uint64
func (PumpkinSeeds) NeighbourUpdateTick ¶
func (p PumpkinSeeds) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
NeighbourUpdateTick ...
func (PumpkinSeeds) RandomTick ¶
RandomTick ...
type Punchable ¶
type Punchable interface { // Punch punches the block at a specific block position. The face clicked is passed, as well as the // world in which the block was punched and the viewer that punched it. Punch(pos cube.Pos, clickedFace cube.Face, w *world.World, u item.User) }
Punchable represents a block that may be punched by a viewer of the world. When punched, the block will execute some specific logic.
type Purpur ¶ added in v0.7.3
type Purpur struct {
// contains filtered or unexported fields
}
Purpur is a decorative block that is naturally generated in End cities and End ships.
func (Purpur) EncodeBlock ¶ added in v0.7.3
EncodeBlock ...
func (Purpur) EncodeItem ¶ added in v0.7.3
EncodeItem ...
func (Purpur) Instrument ¶ added in v0.7.3
func (Purpur) Instrument() sound.Instrument
Instrument ...
type PurpurPillar ¶ added in v0.7.3
type PurpurPillar struct { // Axis is the axis which the purpur pillar block faces. Axis cube.Axis // contains filtered or unexported fields }
PurpurPillar is a variant of Purpur that can be rotated.
func (PurpurPillar) BreakInfo ¶ added in v0.7.3
func (p PurpurPillar) BreakInfo() BreakInfo
BreakInfo ...
func (PurpurPillar) EncodeBlock ¶ added in v0.7.3
func (p PurpurPillar) EncodeBlock() (name string, properties map[string]interface{})
EncodeBlock ...
func (PurpurPillar) EncodeItem ¶ added in v0.7.3
func (p PurpurPillar) EncodeItem() (name string, meta int16)
EncodeItem ...
func (PurpurPillar) Hash ¶ added in v0.7.3
func (p PurpurPillar) Hash() uint64
func (PurpurPillar) Instrument ¶ added in v0.7.3
func (PurpurPillar) Instrument() sound.Instrument
Instrument ...
type Quartz ¶
type Quartz struct { // Smooth specifies if the quartz block is smooth or not. Smooth bool // contains filtered or unexported fields }
Quartz is a mineral block used only for decoration.
func (Quartz) EncodeBlock ¶
EncodeBlock ...
type QuartzBricks ¶
type QuartzBricks struct {
// contains filtered or unexported fields
}
QuartzBricks is a mineral block used only for decoration.
func (QuartzBricks) EncodeBlock ¶
func (QuartzBricks) EncodeBlock() (string, map[string]any)
EncodeBlock ...
func (QuartzBricks) EncodeItem ¶
func (QuartzBricks) EncodeItem() (name string, meta int16)
EncodeItem ...
func (QuartzBricks) Hash ¶
func (QuartzBricks) Hash() uint64
type QuartzPillar ¶
type QuartzPillar struct { // Axis is the axis which the quartz pillar block faces. Axis cube.Axis // contains filtered or unexported fields }
QuartzPillar is a mineral block used only for decoration.
func (QuartzPillar) EncodeBlock ¶
func (q QuartzPillar) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (QuartzPillar) EncodeItem ¶
func (q QuartzPillar) EncodeItem() (name string, meta int16)
EncodeItem ...
func (QuartzPillar) Hash ¶
func (q QuartzPillar) Hash() uint64
type QuartzStairs ¶ added in v0.7.0
type QuartzStairs struct { // UpsideDown specifies if the stairs are upside down. If set to true, the full side is at the top part // of the block. UpsideDown bool // Facing is the direction that the full side of the stairs is facing. Facing cube.Direction // Smooth indicates if it's smooth or not. Smooth bool // contains filtered or unexported fields }
QuartzStairs are blocks that allow entities to walk up blocks without jumping. They are crafted using end bricks.
func (QuartzStairs) BreakInfo ¶ added in v0.7.0
func (s QuartzStairs) BreakInfo() BreakInfo
BreakInfo ...
func (QuartzStairs) CanDisplace ¶ added in v0.7.0
func (QuartzStairs) CanDisplace(b world.Liquid) bool
CanDisplace ...
func (QuartzStairs) EncodeBlock ¶ added in v0.7.0
func (s QuartzStairs) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (QuartzStairs) EncodeItem ¶ added in v0.7.0
func (s QuartzStairs) EncodeItem() (name string, meta int16)
EncodeItem ...
func (QuartzStairs) Hash ¶ added in v0.7.0
func (s QuartzStairs) Hash() uint64
func (QuartzStairs) LightDiffusionLevel ¶ added in v0.7.0
func (QuartzStairs) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (QuartzStairs) Model ¶ added in v0.7.0
func (s QuartzStairs) Model() world.BlockModel
Model ...
func (QuartzStairs) SideClosed ¶ added in v0.7.0
SideClosed ...
func (QuartzStairs) UseOnBlock ¶ added in v0.7.0
func (s QuartzStairs) UseOnBlock(pos cube.Pos, face cube.Face, clickPos mgl64.Vec3, w *world.World, user item.User, ctx *item.UseContext) (used bool)
UseOnBlock handles the directional placing of stairs and makes sure they are properly placed upside down when needed.
type RawCopper ¶ added in v0.7.3
type RawCopper struct {
// contains filtered or unexported fields
}
RawCopper is a raw metal block equivalent to nine raw copper.
func (RawCopper) EncodeBlock ¶ added in v0.7.3
EncodeBlock ...
func (RawCopper) EncodeItem ¶ added in v0.7.3
EncodeItem ...
func (RawCopper) Instrument ¶ added in v0.7.3
func (RawCopper) Instrument() sound.Instrument
Instrument ...
type RawGold ¶ added in v0.7.3
type RawGold struct {
// contains filtered or unexported fields
}
RawGold is a raw metal block equivalent to nine raw gold.
func (RawGold) EncodeBlock ¶ added in v0.7.3
EncodeBlock ...
func (RawGold) EncodeItem ¶ added in v0.7.3
EncodeItem ...
func (RawGold) Instrument ¶ added in v0.7.3
func (RawGold) Instrument() sound.Instrument
Instrument ...
type RawIron ¶ added in v0.7.3
type RawIron struct {
// contains filtered or unexported fields
}
RawIron is a raw metal block equivalent to nine raw iron.
func (RawIron) EncodeBlock ¶ added in v0.7.3
EncodeBlock ...
func (RawIron) EncodeItem ¶ added in v0.7.3
EncodeItem ...
func (RawIron) Instrument ¶ added in v0.7.3
func (RawIron) Instrument() sound.Instrument
Instrument ...
type ReinforcedDeepslate ¶ added in v0.7.0
type ReinforcedDeepslate struct {
// contains filtered or unexported fields
}
ReinforcedDeepslate is a tough decorative block that spawns in ancient cities.
func (ReinforcedDeepslate) BreakInfo ¶ added in v0.7.0
func (r ReinforcedDeepslate) BreakInfo() BreakInfo
BreakInfo ...
func (ReinforcedDeepslate) EncodeBlock ¶ added in v0.7.0
func (ReinforcedDeepslate) EncodeBlock() (string, map[string]interface{})
EncodeBlock ...
func (ReinforcedDeepslate) EncodeItem ¶ added in v0.7.0
func (ReinforcedDeepslate) EncodeItem() (name string, meta int16)
EncodeItem ...
func (ReinforcedDeepslate) Hash ¶ added in v0.7.0
func (ReinforcedDeepslate) Hash() uint64
func (ReinforcedDeepslate) Instrument ¶ added in v0.7.0
func (ReinforcedDeepslate) Instrument() sound.Instrument
Instrument ...
func (ReinforcedDeepslate) Model ¶ added in v0.7.0
func (ReinforcedDeepslate) Model() world.BlockModel
Model ...
type Replaceable ¶
type Replaceable interface { // ReplaceableBy returns a bool which indicates if the block is replaceableWith by another block. ReplaceableBy(b world.Block) bool }
Replaceable represents a block that may be replaced by another block automatically. An example is grass, which may be replaced by clicking it with another block.
type Sand ¶
type Sand struct { // Red toggles the red sand variant. Red bool // contains filtered or unexported fields }
Sand is a block affected by gravity. It can come in a red variant.
func (Sand) NeighbourUpdateTick ¶
NeighbourUpdateTick ...
type Sandstone ¶ added in v0.1.0
type Sandstone struct { // Type is the type of sandstone of the block. Type SandstoneType // Red specifies if the sandstone type is red or not. When set to true, the sandstone type will represent its // red variant, for example red sandstone. Red bool // contains filtered or unexported fields }
Sandstone is a solid block commonly found in deserts and beaches underneath sand.
func (Sandstone) EncodeBlock ¶ added in v0.1.0
EncodeBlock ...
func (Sandstone) EncodeItem ¶ added in v0.1.0
EncodeItem ...
func (Sandstone) Instrument ¶ added in v0.1.0
func (Sandstone) Instrument() sound.Instrument
Instrument ...
type SandstoneSlab ¶ added in v0.7.3
type SandstoneSlab struct { // Type is the type of sandstone of the block. Type SandstoneType // Red specifies if the sandstone type is red or not. When set to true, the sandstone slab type will represent its // red variant, for example red sandstone slab. Red bool // Top specifies if the slab is in the top part of the block. Top bool // Double specifies if the slab is a double slab. These double slabs can be made by placing another slab // on an existing slab. Double bool // contains filtered or unexported fields }
SandstoneSlab are blocks that allow entities to walk up blocks without jumping. They are crafted using sandstone.
func (SandstoneSlab) BreakInfo ¶ added in v0.7.3
func (s SandstoneSlab) BreakInfo() BreakInfo
BreakInfo ...
func (SandstoneSlab) CanDisplace ¶ added in v0.7.3
func (s SandstoneSlab) CanDisplace(b world.Liquid) bool
CanDisplace ...
func (SandstoneSlab) EncodeBlock ¶ added in v0.7.3
func (s SandstoneSlab) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (SandstoneSlab) EncodeItem ¶ added in v0.7.3
func (s SandstoneSlab) EncodeItem() (name string, meta int16)
EncodeItem ...
func (SandstoneSlab) Hash ¶ added in v0.7.3
func (s SandstoneSlab) Hash() uint64
func (SandstoneSlab) LightDiffusionLevel ¶ added in v0.7.3
func (SandstoneSlab) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (SandstoneSlab) Model ¶ added in v0.7.3
func (s SandstoneSlab) Model() world.BlockModel
Model ...
func (SandstoneSlab) SideClosed ¶ added in v0.7.3
SideClosed ...
func (SandstoneSlab) UseOnBlock ¶ added in v0.7.3
func (s SandstoneSlab) UseOnBlock(pos cube.Pos, face cube.Face, clickPos mgl64.Vec3, w *world.World, user item.User, ctx *item.UseContext) (used bool)
UseOnBlock handles the directional placing of slab and makes sure they are properly placed upside down when needed.
type SandstoneStairs ¶ added in v0.4.0
type SandstoneStairs struct { // Type is the type of sandstone of the block. Type SandstoneType // Red specifies if the sandstone type is red or not. When set to true, the sandstone stairs type will represent its // red variant, for example red sandstone stairs. Red bool // UpsideDown specifies if the stairs are upside down. If set to true, the full side is at the top part // of the block. UpsideDown bool // Facing is the direction that the full side of the stairs is facing. Facing cube.Direction // contains filtered or unexported fields }
SandstoneStairs are blocks that allow entities to walk up blocks without jumping. They are crafted using sandstone.
func (SandstoneStairs) BreakInfo ¶ added in v0.4.0
func (s SandstoneStairs) BreakInfo() BreakInfo
BreakInfo ...
func (SandstoneStairs) CanDisplace ¶ added in v0.4.0
func (SandstoneStairs) CanDisplace(b world.Liquid) bool
CanDisplace ...
func (SandstoneStairs) EncodeBlock ¶ added in v0.4.0
func (s SandstoneStairs) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (SandstoneStairs) EncodeItem ¶ added in v0.4.0
func (s SandstoneStairs) EncodeItem() (name string, meta int16)
EncodeItem ...
func (SandstoneStairs) Hash ¶ added in v0.4.0
func (s SandstoneStairs) Hash() uint64
func (SandstoneStairs) LightDiffusionLevel ¶ added in v0.4.0
func (SandstoneStairs) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (SandstoneStairs) Model ¶ added in v0.4.0
func (s SandstoneStairs) Model() world.BlockModel
Model ...
func (SandstoneStairs) SideClosed ¶ added in v0.4.0
SideClosed ...
func (SandstoneStairs) UseOnBlock ¶ added in v0.4.0
func (s SandstoneStairs) UseOnBlock(pos cube.Pos, face cube.Face, clickPos mgl64.Vec3, w *world.World, user item.User, ctx *item.UseContext) (used bool)
UseOnBlock handles the directional placing of stairs and makes sure they are properly placed upside down when needed.
type SandstoneType ¶ added in v0.1.0
type SandstoneType struct {
// contains filtered or unexported fields
}
SandstoneType represents a type of sandstone.
func ChiseledSandstone ¶ added in v0.1.0
func ChiseledSandstone() SandstoneType
ChiseledSandstone is the chiseled variant of sandstone.
func CutSandstone ¶ added in v0.1.0
func CutSandstone() SandstoneType
CutSandstone is the cut variant of sandstone.
func NormalSandstone ¶ added in v0.1.0
func NormalSandstone() SandstoneType
NormalSandstone is the normal variant of sandstone.
func SmoothSandstone ¶ added in v0.1.0
func SmoothSandstone() SandstoneType
SmoothSandstone is the smooth variant of sandstone.
func (SandstoneType) Hardness ¶ added in v0.1.0
func (s SandstoneType) Hardness() float64
Hardness ...
func (SandstoneType) SlabAble ¶ added in v0.7.3
func (s SandstoneType) SlabAble() bool
SlabAble checks if a slab with this type can exist.
type SeaLantern ¶
type SeaLantern struct {
// contains filtered or unexported fields
}
SeaLantern is an underwater light sources that appear in ocean monuments and underwater ruins.
func (SeaLantern) EncodeBlock ¶
func (SeaLantern) EncodeBlock() (string, map[string]any)
EncodeBlock ...
func (SeaLantern) EncodeItem ¶
func (SeaLantern) EncodeItem() (name string, meta int16)
EncodeItem ...
func (SeaLantern) Hash ¶
func (SeaLantern) Hash() uint64
func (SeaLantern) LightDiffusionLevel ¶
func (SeaLantern) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (SeaLantern) LightEmissionLevel ¶
func (SeaLantern) LightEmissionLevel() uint8
LightEmissionLevel ...
type SeaPickle ¶ added in v0.4.0
type SeaPickle struct { // AdditionalCount is the amount of additional sea pickles clustered together. AdditionalCount int // Dead is whether the sea pickles are not alive. Sea pickles are only considered alive when inside of water. While // alive, sea pickles emit light & can be grown with bone meal. Dead bool // contains filtered or unexported fields }
SeaPickle is a small stationary underwater block that emits light, and is typically found in colonies of up to four sea pickles.
func (SeaPickle) CanDisplace ¶ added in v0.4.0
CanDisplace ...
func (SeaPickle) EncodeBlock ¶ added in v0.4.0
EncodeBlock ...
func (SeaPickle) EncodeItem ¶ added in v0.4.0
EncodeItem ...
func (SeaPickle) HasLiquidDrops ¶ added in v0.4.0
HasLiquidDrops ...
func (SeaPickle) LightDiffusionLevel ¶ added in v0.4.0
func (SeaPickle) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (SeaPickle) LightEmissionLevel ¶ added in v0.4.0
LightEmissionLevel ...
func (SeaPickle) NeighbourUpdateTick ¶ added in v0.4.0
NeighbourUpdateTick ...
func (SeaPickle) SideClosed ¶ added in v0.4.0
SideClosed ...
type Shroomlight ¶
type Shroomlight struct {
// contains filtered or unexported fields
}
Shroomlight are light-emitting blocks that generate in huge fungi.
func (Shroomlight) EncodeBlock ¶
func (Shroomlight) EncodeBlock() (string, map[string]any)
EncodeBlock ...
func (Shroomlight) EncodeItem ¶
func (Shroomlight) EncodeItem() (name string, meta int16)
EncodeItem ...
func (Shroomlight) Hash ¶
func (Shroomlight) Hash() uint64
func (Shroomlight) LightEmissionLevel ¶
func (Shroomlight) LightEmissionLevel() uint8
LightEmissionLevel ...
type Sign ¶ added in v0.2.0
type Sign struct { // Wood is the type of wood of the sign. This field must have one of the values found in the material // package. Wood WoodType // Attach is the attachment of the Sign. It is either of the type WallAttachment or StandingAttachment. Attach Attachment // Text is the text displayed on the sign. The text is automatically wrapped if it does not fit on a line. Text string // BaseColour is the base colour of the text on the sign, changed when using a dye on the sign. The default colour // is black. BaseColour color.RGBA // Glowing specifies if the Sign has glowing text. If set to true, the text will be visible even in the dark, and it // will have an outline to improve visibility. Glowing bool // contains filtered or unexported fields }
Sign is a non-solid block that can display text.
func (Sign) CanDisplace ¶ added in v0.2.0
CanDisplace ...
func (Sign) Dye ¶ added in v0.2.0
Dye dyes the Sign, changing its base colour to that of the colour passed.
func (Sign) EditableBy ¶ added in v0.2.0
func (s Sign) EditableBy(editor SignEditor) bool
EditableBy returns whether a SignEditor can edit the sign or not. This is based on whether the SignEditor placed the sign and the sign's chunk has yet to be unloaded.
func (Sign) EncodeBlock ¶ added in v0.2.0
EncodeBlock ...
func (Sign) EncodeItem ¶ added in v0.2.0
EncodeItem ...
func (Sign) FlammabilityInfo ¶ added in v0.2.0
func (s Sign) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
func (Sign) LightDiffusionLevel ¶ added in v0.2.0
func (Sign) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (Sign) NeighbourUpdateTick ¶ added in v0.2.0
NeighbourUpdateTick ...
func (Sign) SideClosed ¶ added in v0.2.0
SideClosed ...
type SignEditor ¶ added in v0.2.0
SignEditor represents something that can edit a sign, typically players.
type Snow ¶ added in v0.5.0
type Snow struct {
// contains filtered or unexported fields
}
Snow is a full-sized block of snow.
func (Snow) EncodeBlock ¶ added in v0.5.0
EncodeBlock ...
func (Snow) EncodeItem ¶ added in v0.5.0
EncodeItem ...
type Soil ¶ added in v0.1.0
type Soil interface { // SoilFor returns whether the vegetation can exist on the block. SoilFor(world.Block) bool }
Soil represents a block that can support vegetation.
type SoulSand ¶
type SoulSand struct {
// contains filtered or unexported fields
}
SoulSand is a block found naturally only in the Nether. SoulSand slows movement of mobs & players.
func (SoulSand) EncodeBlock ¶
EncodeBlock ...
type SoulSoil ¶
type SoulSoil struct {
// contains filtered or unexported fields
}
SoulSoil is a block naturally found only in the soul sand valley.
func (SoulSoil) EncodeBlock ¶
EncodeBlock ...
type Sponge ¶
type Sponge struct { // Wet specifies whether the dry or the wet variant of the block is used. Wet bool // contains filtered or unexported fields }
Sponge is a block that can be used to remove water around itself when placed, turning into a wet sponge in the process.
func (Sponge) NeighbourUpdateTick ¶
NeighbourUpdateTick checks for nearby water flow. If water could be found and the sponge is dry, it will absorb the water and be flagged as wet.
type SporeBlossom ¶ added in v0.1.0
type SporeBlossom struct {
// contains filtered or unexported fields
}
SporeBlossom is a decorative block.
func (SporeBlossom) BreakInfo ¶ added in v0.1.0
func (s SporeBlossom) BreakInfo() BreakInfo
BreakInfo ...
func (SporeBlossom) EncodeBlock ¶ added in v0.1.0
func (s SporeBlossom) EncodeBlock() (string, map[string]any)
EncodeBlock ...
func (SporeBlossom) EncodeItem ¶ added in v0.1.0
func (s SporeBlossom) EncodeItem() (name string, meta int16)
EncodeItem ...
func (SporeBlossom) HasLiquidDrops ¶ added in v0.1.0
func (s SporeBlossom) HasLiquidDrops() bool
HasLiquidDrops ...
func (SporeBlossom) Hash ¶ added in v0.1.0
func (SporeBlossom) Hash() uint64
func (SporeBlossom) LightDiffusionLevel ¶ added in v0.1.0
func (SporeBlossom) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (SporeBlossom) NeighbourUpdateTick ¶ added in v0.1.0
func (s SporeBlossom) NeighbourUpdateTick(pos, _ cube.Pos, w *world.World)
NeighbourUpdateTick ...
type StainedGlass ¶
type StainedGlass struct { // Colour specifies the colour of the block. Colour item.Colour // contains filtered or unexported fields }
StainedGlass is a decorative, fully transparent solid block that is dyed into a different colour.
func (StainedGlass) EncodeBlock ¶
func (g StainedGlass) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (StainedGlass) EncodeItem ¶
func (g StainedGlass) EncodeItem() (name string, meta int16)
EncodeItem ...
func (StainedGlass) Hash ¶
func (g StainedGlass) Hash() uint64
func (StainedGlass) LightDiffusionLevel ¶
func (StainedGlass) LightDiffusionLevel() uint8
LightDiffusionLevel ...
type StainedGlassPane ¶
type StainedGlassPane struct { // Colour specifies the colour of the block. Colour item.Colour // contains filtered or unexported fields }
StainedGlassPane is a transparent block that can be used as a more efficient alternative to glass blocks.
func (StainedGlassPane) CanDisplace ¶
func (p StainedGlassPane) CanDisplace(b world.Liquid) bool
CanDisplace ...
func (StainedGlassPane) EncodeBlock ¶
func (p StainedGlassPane) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (StainedGlassPane) EncodeItem ¶
func (p StainedGlassPane) EncodeItem() (name string, meta int16)
EncodeItem ...
func (StainedGlassPane) Hash ¶
func (p StainedGlassPane) Hash() uint64
func (StainedGlassPane) Instrument ¶
func (StainedGlassPane) Instrument() sound.Instrument
Instrument ...
func (StainedGlassPane) LightDiffusionLevel ¶
func (StainedGlassPane) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (StainedGlassPane) SideClosed ¶
SideClosed ...
type StainedTerracotta ¶
type StainedTerracotta struct { // Colour specifies the colour of the block. Colour item.Colour // contains filtered or unexported fields }
StainedTerracotta is a block formed from clay, with a hardness and blast resistance comparable to stone. In contrast to Terracotta, t can be coloured in the same 16 colours that wool can be dyed, but more dulled and earthen.
func (StainedTerracotta) EncodeBlock ¶
func (t StainedTerracotta) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (StainedTerracotta) EncodeItem ¶
func (t StainedTerracotta) EncodeItem() (name string, meta int16)
EncodeItem ...
func (StainedTerracotta) Hash ¶
func (t StainedTerracotta) Hash() uint64
func (StainedTerracotta) Instrument ¶
func (StainedTerracotta) Instrument() sound.Instrument
Instrument ...
type StartCrackAction ¶ added in v0.6.0
StartCrackAction is a world.BlockAction to make the cracks in a block start forming, following the break time set in the action.
func (StartCrackAction) BlockAction ¶ added in v0.6.0
func (StartCrackAction) BlockAction()
BlockAction serves to implement the world.BlockAction interface.
type Stone ¶
type Stone struct { // Smooth specifies if the stone is its smooth variant. Smooth bool // contains filtered or unexported fields }
Stone is a block found underground in the world or on mountains.
type StoneBrickStairs ¶ added in v0.7.0
type StoneBrickStairs struct { // Mossy specifies if the stairs are mossy. Mossy bool // UpsideDown specifies if the stairs are upside down. If set to true, the full side is at the top part // of the block. UpsideDown bool // Facing is the direction that the full side of the stairs is facing. Facing cube.Direction // contains filtered or unexported fields }
StoneBrickStairs are blocks that allow entities to walk up blocks without jumping. They are crafted using stone bricks.
func (StoneBrickStairs) BreakInfo ¶ added in v0.7.0
func (s StoneBrickStairs) BreakInfo() BreakInfo
BreakInfo ...
func (StoneBrickStairs) CanDisplace ¶ added in v0.7.0
func (StoneBrickStairs) CanDisplace(b world.Liquid) bool
CanDisplace ...
func (StoneBrickStairs) EncodeBlock ¶ added in v0.7.0
func (s StoneBrickStairs) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (StoneBrickStairs) EncodeItem ¶ added in v0.7.0
func (s StoneBrickStairs) EncodeItem() (name string, meta int16)
EncodeItem ...
func (StoneBrickStairs) Hash ¶ added in v0.7.0
func (s StoneBrickStairs) Hash() uint64
func (StoneBrickStairs) LightDiffusionLevel ¶ added in v0.7.0
func (StoneBrickStairs) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (StoneBrickStairs) Model ¶ added in v0.7.0
func (s StoneBrickStairs) Model() world.BlockModel
Model ...
func (StoneBrickStairs) SideClosed ¶ added in v0.7.0
SideClosed ...
func (StoneBrickStairs) UseOnBlock ¶ added in v0.7.0
func (s StoneBrickStairs) UseOnBlock(pos cube.Pos, face cube.Face, clickPos mgl64.Vec3, w *world.World, user item.User, ctx *item.UseContext) (used bool)
UseOnBlock handles the directional placing of stairs and makes sure they are properly placed upside down when needed.
type StoneBricks ¶ added in v0.5.0
type StoneBricks struct { // Type is the type of stone bricks of the block. Type StoneBricksType // contains filtered or unexported fields }
StoneBricks are materials found in structures such as strongholds, igloo basements, jungle temples, ocean ruins and ruined portals.
func (StoneBricks) BreakInfo ¶ added in v0.5.0
func (c StoneBricks) BreakInfo() BreakInfo
BreakInfo ...
func (StoneBricks) EncodeBlock ¶ added in v0.5.0
func (c StoneBricks) EncodeBlock() (string, map[string]any)
EncodeBlock ...
func (StoneBricks) EncodeItem ¶ added in v0.5.0
func (c StoneBricks) EncodeItem() (name string, meta int16)
EncodeItem ...
func (StoneBricks) Hash ¶ added in v0.5.0
func (c StoneBricks) Hash() uint64
func (StoneBricks) Instrument ¶ added in v0.5.0
func (StoneBricks) Instrument() sound.Instrument
Instrument ...
type StoneBricksType ¶ added in v0.5.0
type StoneBricksType struct {
// contains filtered or unexported fields
}
StoneBricksType represents a type of stone bricks.
func ChiseledStoneBricks ¶ added in v0.5.0
func ChiseledStoneBricks() StoneBricksType
ChiseledStoneBricks is the chiseled variant of stone bricks.
func CrackedStoneBricks ¶ added in v0.5.0
func CrackedStoneBricks() StoneBricksType
CrackedStoneBricks is the cracked variant of stone bricks.
func MossyStoneBricks ¶ added in v0.5.0
func MossyStoneBricks() StoneBricksType
MossyStoneBricks is the mossy variant of stone bricks.
func NormalStoneBricks ¶ added in v0.5.0
func NormalStoneBricks() StoneBricksType
NormalStoneBricks is the normal variant of stone bricks.
func StoneBricksTypes ¶ added in v0.5.0
func StoneBricksTypes() []StoneBricksType
StoneBricksTypes ...
type StopCrackAction ¶ added in v0.6.0
type StopCrackAction struct {
// contains filtered or unexported fields
}
StopCrackAction is a world.BlockAction to make the cracks forming in a block stop and disappear.
func (StopCrackAction) BlockAction ¶ added in v0.6.0
func (StopCrackAction) BlockAction()
BlockAction serves to implement the world.BlockAction interface.
type TallGrass ¶ added in v0.1.0
type TallGrass struct { // Type is the type of grass that the plant represents. Type GrassType // contains filtered or unexported fields }
TallGrass is a transparent plant block which can be used to obtain seeds and as decoration.
func (TallGrass) BoneMeal ¶ added in v0.1.0
BoneMeal attempts to affect the block using a bone meal item.
func (TallGrass) EncodeBlock ¶ added in v0.1.0
EncodeBlock ...
func (TallGrass) EncodeItem ¶ added in v0.1.0
EncodeItem ...
func (TallGrass) FlammabilityInfo ¶ added in v0.1.0
func (g TallGrass) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
func (TallGrass) HasLiquidDrops ¶ added in v0.1.0
HasLiquidDrops ...
func (TallGrass) LightDiffusionLevel ¶ added in v0.1.0
func (TallGrass) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (TallGrass) NeighbourUpdateTick ¶ added in v0.1.0
NeighbourUpdateTick ...
func (TallGrass) ReplaceableBy ¶ added in v0.1.0
ReplaceableBy ...
type Terracotta ¶
type Terracotta struct {
// contains filtered or unexported fields
}
Terracotta is a block formed from clay, with a hardness and blast resistance comparable to stone. For colouring it, take a look at StainedTerracotta.
func (Terracotta) EncodeBlock ¶
func (Terracotta) EncodeBlock() (string, map[string]any)
EncodeBlock ...
func (Terracotta) EncodeItem ¶
func (Terracotta) EncodeItem() (name string, meta int16)
EncodeItem ...
func (Terracotta) Hash ¶
func (Terracotta) Hash() uint64
type Torch ¶
type Torch struct { // Facing is the direction from the torch to the block. Facing cube.Face // Type is the type of fire lighting the torch. Type FireType // contains filtered or unexported fields }
Torch are non-solid blocks that emit light.
func (Torch) EncodeBlock ¶
EncodeBlock ...
func (Torch) NeighbourUpdateTick ¶
NeighbourUpdateTick ...
type Tuff ¶ added in v0.1.0
type Tuff struct {
// contains filtered or unexported fields
}
Tuff is an ornamental rock formed from volcanic ash, occurring in underground blobs below Y=16.
func (Tuff) EncodeBlock ¶ added in v0.1.0
EncodeBlock ...
func (Tuff) EncodeItem ¶ added in v0.1.0
EncodeItem ...
type Water ¶
type Water struct { // Still makes the water appear as if it is not flowing. Still bool // Depth is the depth of the water. This is a number from 1-8, where 8 is a source block and 1 is the // smallest possible water block. Depth int // Falling specifies if the water is falling. Falling water will always appear as a source block, but its // behaviour differs when it starts spreading. Falling bool // contains filtered or unexported fields }
Water is a natural fluid that generates abundantly in the world.
func (Water) EncodeBlock ¶
EncodeBlock ...
func (Water) EntityInside ¶ added in v0.4.0
EntityInside ...
func (Water) FillBottle ¶
FillBottle ...
func (Water) LiquidDepth ¶
LiquidDepth returns the depth of the water.
func (Water) LiquidFalling ¶
LiquidFalling returns Water.Falling.
func (Water) NeighbourUpdateTick ¶
NeighbourUpdateTick ...
func (Water) ScheduledTick ¶
ScheduledTick ...
func (Water) SpreadDecay ¶
SpreadDecay returns 1 - The amount of levels decreased upon spreading.
type WheatSeeds ¶
type WheatSeeds struct {
// contains filtered or unexported fields
}
WheatSeeds are a crop that can be harvested to craft bread, cake, & cookies.
func (WheatSeeds) CalculateGrowthChance ¶
CalculateGrowthChance calculates the chance the crop will grow during a random tick.
func (WheatSeeds) EncodeBlock ¶
func (s WheatSeeds) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (WheatSeeds) EncodeItem ¶
func (s WheatSeeds) EncodeItem() (name string, meta int16)
EncodeItem ...
func (WheatSeeds) GrowthStage ¶
func (c WheatSeeds) GrowthStage() int
GrowthStage returns the current stage of growth.
func (WheatSeeds) Hash ¶
func (s WheatSeeds) Hash() uint64
func (WheatSeeds) NeighbourUpdateTick ¶
NeighbourUpdateTick ...
func (WheatSeeds) RandomTick ¶
RandomTick ...
type Wood ¶ added in v0.5.0
type Wood struct { // Wood is the type of wood. Wood WoodType // Stripped specifies if the wood is stripped or not. Stripped bool // Axis is the axis which the wood block faces. Axis cube.Axis // contains filtered or unexported fields }
Wood is a block that has the log's "bark" texture on all six sides. It comes in 8 types: oak, spruce, birch, jungle, acacia, dark oak, crimson, and warped. Stripped wood is a variant obtained by using an axe on the wood.
func (Wood) EncodeBlock ¶ added in v0.5.0
EncodeBlock ...
func (Wood) EncodeItem ¶ added in v0.5.0
EncodeItem ...
func (Wood) FlammabilityInfo ¶ added in v0.5.0
func (w Wood) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
type WoodDoor ¶
type WoodDoor struct { // Wood is the type of wood of the door. This field must have one of the values found in the material // package. Wood WoodType // Facing is the direction the door is facing. Facing cube.Direction // Open is whether the door is open. Open bool // Top is whether the block is the top or bottom half of a door Top bool // Right is whether the door hinge is on the right side Right bool // contains filtered or unexported fields }
WoodDoor is a block that can be used as an openable 1x2 barrier.
func (WoodDoor) EncodeBlock ¶
EncodeBlock ...
func (WoodDoor) EncodeItem ¶
EncodeItem ...
func (WoodDoor) FlammabilityInfo ¶
func (d WoodDoor) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
func (WoodDoor) LightDiffusionLevel ¶
func (WoodDoor) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (WoodDoor) NeighbourUpdateTick ¶
NeighbourUpdateTick ...
func (WoodDoor) SideClosed ¶
SideClosed ...
type WoodFence ¶
type WoodFence struct { // Wood is the type of wood of the fence. This field must have one of the values found in the wood // package. Wood WoodType // contains filtered or unexported fields }
WoodFence are blocks similar to Walls, which cannot normally be jumped over. Unlike walls however, they allow the player (but not mobs) to see through them, making for excellent barriers.
func (WoodFence) EncodeBlock ¶
EncodeBlock ...
func (WoodFence) EncodeItem ¶
EncodeItem ...
func (WoodFence) FlammabilityInfo ¶
func (w WoodFence) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
func (WoodFence) LightDiffusionLevel ¶
func (WoodFence) LightDiffusionLevel() uint8
LightDiffusionLevel ...
type WoodFenceGate ¶
type WoodFenceGate struct { // Wood is the type of wood of the fence gate. This field must have one of the values found in the material // package. Wood WoodType // Facing is the direction the fence gate swings open. Facing cube.Direction // Open is whether the fence gate is open. Open bool // Lowered lowers the fence gate by 3 pixels and is set when placed next to wall blocks. Lowered bool // contains filtered or unexported fields }
WoodFenceGate is a block that can be used as an openable 1x1 barrier.
func (WoodFenceGate) CanDisplace ¶
func (f WoodFenceGate) CanDisplace(b world.Liquid) bool
CanDisplace ...
func (WoodFenceGate) EncodeBlock ¶
func (f WoodFenceGate) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (WoodFenceGate) EncodeItem ¶
func (f WoodFenceGate) EncodeItem() (name string, meta int16)
EncodeItem ...
func (WoodFenceGate) FlammabilityInfo ¶
func (f WoodFenceGate) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
func (WoodFenceGate) Hash ¶
func (f WoodFenceGate) Hash() uint64
func (WoodFenceGate) LightDiffusionLevel ¶
func (WoodFenceGate) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (WoodFenceGate) SideClosed ¶
SideClosed ...
type WoodSlab ¶
type WoodSlab struct { // Wood is the type of wood of the slabs. This field must have one of the values found in the material // package. Wood WoodType // Top specifies if the slab is in the top part of the block. Top bool // Double specifies if the slab is a double slab. These double slabs can be made by placing another slab // on an existing slab. Double bool // contains filtered or unexported fields }
WoodSlab is a half block that allows entities to walk up blocks without jumping.
func (WoodSlab) EncodeBlock ¶
EncodeBlock ...
func (WoodSlab) EncodeItem ¶
EncodeItem ...
func (WoodSlab) FlammabilityInfo ¶
func (s WoodSlab) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
func (WoodSlab) LightDiffusionLevel ¶
LightDiffusionLevel returns 0 if the slab is a half slab, or 15 if it is double.
func (WoodSlab) SideClosed ¶
SideClosed ...
func (WoodSlab) UseOnBlock ¶
func (s WoodSlab) UseOnBlock(pos cube.Pos, face cube.Face, clickPos mgl64.Vec3, w *world.World, user item.User, ctx *item.UseContext) (used bool)
UseOnBlock handles the placement of slabs with relation to them being upside down or not and handles slabs being turned into double slabs.
type WoodStairs ¶
type WoodStairs struct { // Wood is the type of wood of the stairs. This field must have one of the values found in the material // package. Wood WoodType // UpsideDown specifies if the stairs are upside down. If set to true, the full side is at the top part // of the block. UpsideDown bool // Facing is the direction that the full side of the stairs is facing. Facing cube.Direction // contains filtered or unexported fields }
WoodStairs are blocks that allow entities to walk up blocks without jumping. They are crafted using planks.
func (WoodStairs) EncodeBlock ¶
func (s WoodStairs) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (WoodStairs) EncodeItem ¶
func (s WoodStairs) EncodeItem() (name string, meta int16)
EncodeItem ...
func (WoodStairs) FlammabilityInfo ¶
func (s WoodStairs) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
func (WoodStairs) Hash ¶
func (s WoodStairs) Hash() uint64
func (WoodStairs) LightDiffusionLevel ¶
func (WoodStairs) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (WoodStairs) SideClosed ¶
SideClosed ...
type WoodTrapdoor ¶
type WoodTrapdoor struct { // Wood is the type of wood of the trapdoor. This field must have one of the values found in the material // package. Wood WoodType // Facing is the direction the trapdoor is facing. Facing cube.Direction // Open is whether the trapdoor is open. Open bool // Top is whether the trapdoor occupies the top or bottom part of a block. Top bool // contains filtered or unexported fields }
WoodTrapdoor is a block that can be used as an openable 1x1 barrier.
func (WoodTrapdoor) CanDisplace ¶
func (t WoodTrapdoor) CanDisplace(l world.Liquid) bool
CanDisplace ...
func (WoodTrapdoor) EncodeBlock ¶
func (t WoodTrapdoor) EncodeBlock() (name string, properties map[string]any)
EncodeBlock ...
func (WoodTrapdoor) EncodeItem ¶
func (t WoodTrapdoor) EncodeItem() (name string, meta int16)
EncodeItem ...
func (WoodTrapdoor) FlammabilityInfo ¶
func (t WoodTrapdoor) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
func (WoodTrapdoor) Hash ¶
func (t WoodTrapdoor) Hash() uint64
func (WoodTrapdoor) LightDiffusionLevel ¶
func (WoodTrapdoor) LightDiffusionLevel() uint8
LightDiffusionLevel ...
func (WoodTrapdoor) SideClosed ¶
SideClosed ...
type WoodType ¶
type WoodType struct {
// contains filtered or unexported fields
}
WoodType represents a type of wood of a block. Some blocks, such as log blocks, bark blocks, wooden planks and others carry one of these types.
type Wool ¶
type Wool struct { // Colour is the colour of the wool. Colour item.Colour // contains filtered or unexported fields }
Wool is a colourful block that can be obtained by killing/shearing sheep, or crafted using four string.
func (Wool) EncodeBlock ¶
EncodeBlock ...
func (Wool) FlammabilityInfo ¶
func (w Wool) FlammabilityInfo() FlammabilityInfo
FlammabilityInfo ...
type XPDropRange ¶
type XPDropRange [2]int
XPDropRange holds the min & max XP drop amounts of blocks.
Source Files ¶
- action.go
- air.go
- amethyst.go
- ancient_debris.go
- anvil.go
- anvil_type.go
- attachment.go
- barrel.go
- barrier.go
- basalt.go
- beacon.go
- bedrock.go
- beetroot_seeds.go
- block.go
- blue_ice.go
- bone.go
- bookshelf.go
- break_info.go
- bricks.go
- cactus.go
- cake.go
- calcite.go
- carpet.go
- carrot.go
- chain.go
- chest.go
- clay.go
- coal.go
- coal_ore.go
- cobblestone.go
- cobblestone_stairs.go
- cocoa_bean.go
- concrete.go
- concrete_powder.go
- container.go
- copper_ore.go
- coral.go
- coral_block.go
- coral_type.go
- crafting_table.go
- crop.go
- deadbush.go
- diamond.go
- diamond_ore.go
- dirt.go
- dirt_path.go
- doc.go
- double_flower.go
- double_flower_type.go
- double_tall_grass.go
- dragon_egg.go
- dried_kelp.go
- dripstone.go
- emerald.go
- emerald_ore.go
- end_brick_stairs.go
- end_bricks.go
- end_stone.go
- farmland.go
- fire.go
- fire_type.go
- flower.go
- flower_type.go
- froglight.go
- froglight_type.go
- gilded_blackstone.go
- glass.go
- glass_pane.go
- glazed_terracotta.go
- glowstone.go
- gold.go
- gold_ore.go
- grass.go
- grass_type.go
- gravel.go
- hash.go
- hay_bale.go
- honeycomb.go
- invisible_bedrock.go
- iron.go
- iron_bars.go
- iron_ore.go
- item_frame.go
- kelp.go
- ladder.go
- lantern.go
- lapis.go
- lapis_ore.go
- lava.go
- leaves.go
- light.go
- liquid.go
- lit_pumpkin.go
- log.go
- melon.go
- melon_seeds.go
- model.go
- moss_carpet.go
- mud.go
- mud_bricks.go
- muddy_mangrove_roots.go
- nether_brick_fence.go
- nether_bricks.go
- nether_bricks_type.go
- nether_gold_ore.go
- nether_sprouts.go
- nether_wart.go
- nether_wart_block.go
- netherite.go
- netherrack.go
- note.go
- obsidian.go
- ore_type.go
- packed_ice.go
- packed_mud.go
- placer.go
- planks.go
- podzol.go
- potato.go
- prismarine.go
- prismarine_type.go
- pumpkin.go
- pumpkin_seeds.go
- purpur.go
- quartz.go
- quartz_bricks.go
- quartz_ore.go
- quartz_stairs.go
- raw_copper.go
- raw_gold.go
- raw_iron.go
- register.go
- reinforced_deepslate.go
- sand.go
- sandstone.go
- sandstone_slab.go
- sandstone_stairs.go
- sandstone_type.go
- sea_lantern.go
- sea_pickle.go
- shroomlight.go
- sign.go
- snow.go
- soul_sand.go
- soul_soil.go
- sponge.go
- spore_blossom.go
- stained_glass.go
- stained_glass_pane.go
- stained_terracotta.go
- stone.go
- stone_brick_stairs.go
- stone_bricks.go
- stone_bricks_type.go
- tall_grass.go
- terracotta.go
- torch.go
- tuff.go
- water.go
- wheat_seeds.go
- wood.go
- wood_door.go
- wood_fence.go
- wood_fence_gate.go
- wood_slab.go
- wood_stairs.go
- wood_trapdoor.go
- wood_type.go
- wool.go
Directories ¶
Path | Synopsis |
---|---|
Package cube provides types and functions to handle positions and rotations of voxel-based objects in a 3D world.
|
Package cube provides types and functions to handle positions and rotations of voxel-based objects in a 3D world. |
Package model has world.BlockModel implementations for each world.Block implementation in the block package.
|
Package model has world.BlockModel implementations for each world.Block implementation in the block package. |