block

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BreakDuration

func BreakDuration(b world.Block, i item.Stack, ctx BreakContext) time.Duration

func BreaksInstantly

func BreaksInstantly(b world.Block) bool

func NextHash

func NextHash() uint64

func SlabBlocks

func SlabBlocks() []world.Block

func StairsBlocks

func StairsBlocks() []world.Block

func WallBlocks

func WallBlocks() []world.Block

Types

type Activatable

type Activatable interface {
	Activate(pos cube.Pos, clickedFace cube.Face, tx *world.Tx, u item.User, ctx *item.UseContext) bool
}

type Air

type Air struct {
	// contains filtered or unexported fields
}

func (Air) EncodeBlock

func (Air) EncodeBlock() (string, map[string]any)

func (Air) EncodeItem

func (Air) EncodeItem() (name string, meta int16)

func (Air) HasLiquidDrops

func (Air) HasLiquidDrops() bool

func (Air) Hash

func (Air) Hash() (uint64, uint64)

func (Air) LightDiffusionLevel

func (Air) LightDiffusionLevel() uint8

func (Air) Model

func (Air) Model() world.BlockModel

func (Air) PortalInterior

func (Air) PortalInterior(target world.Dimension) bool

func (Air) ReplaceableBy

func (Air) ReplaceableBy(world.Block) bool

type Amethyst

type Amethyst struct {
	// contains filtered or unexported fields
}

func (Amethyst) BreakInfo

func (a Amethyst) BreakInfo() BreakInfo

func (Amethyst) EncodeBlock

func (Amethyst) EncodeBlock() (string, map[string]any)

func (Amethyst) EncodeItem

func (Amethyst) EncodeItem() (name string, meta int16)

func (Amethyst) Hash

func (Amethyst) Hash() (uint64, uint64)

func (Amethyst) Model

func (Amethyst) Model() world.BlockModel

type AncientDebris

type AncientDebris struct {
	// contains filtered or unexported fields
}

func (AncientDebris) BreakInfo

func (a AncientDebris) BreakInfo() BreakInfo

func (AncientDebris) EncodeBlock

func (AncientDebris) EncodeBlock() (string, map[string]any)

func (AncientDebris) EncodeItem

func (AncientDebris) EncodeItem() (name string, meta int16)

func (AncientDebris) Hash

func (AncientDebris) Hash() (uint64, uint64)

func (AncientDebris) Model

func (AncientDebris) Model() world.BlockModel

func (AncientDebris) SmeltInfo

func (AncientDebris) SmeltInfo() item.SmeltInfo

type Andesite

type Andesite polishable

func (Andesite) BreakInfo

func (a Andesite) BreakInfo() BreakInfo

func (Andesite) EncodeBlock

func (a Andesite) EncodeBlock() (string, map[string]any)

func (Andesite) EncodeItem

func (a Andesite) EncodeItem() (name string, meta int16)

func (Andesite) Hash

func (a Andesite) Hash() (uint64, uint64)

type Anvil

type Anvil struct {
	Type AnvilType

	Facing cube.Direction
	// contains filtered or unexported fields
}

func (Anvil) Activate

func (Anvil) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (Anvil) Break

func (a Anvil) Break() world.Block

func (Anvil) BreakInfo

func (a Anvil) BreakInfo() BreakInfo

func (Anvil) Damage

func (Anvil) Damage() (damagePerBlock, maxDamage float64)

func (Anvil) EncodeBlock

func (a Anvil) EncodeBlock() (string, map[string]any)

func (Anvil) EncodeItem

func (a Anvil) EncodeItem() (name string, meta int16)

func (Anvil) FacingDirection

func (b Anvil) FacingDirection() cube.Direction

func (Anvil) Hash

func (a Anvil) Hash() (uint64, uint64)

func (Anvil) Landed

func (Anvil) Landed(tx *world.Tx, pos cube.Pos)

func (Anvil) LightDiffusionLevel

func (Anvil) LightDiffusionLevel() uint8

func (Anvil) Model

func (a Anvil) Model() world.BlockModel

func (Anvil) NeighbourUpdateTick

func (a Anvil) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Anvil) Solidifies

func (g Anvil) Solidifies(cube.Pos, *world.Tx) bool

func (Anvil) UseOnBlock

func (a Anvil) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (Anvil) WithFacing

func (b Anvil) WithFacing(facing cube.Direction) world.Block

type AnvilType

type AnvilType struct {
	// contains filtered or unexported fields
}

func AnvilTypes

func AnvilTypes() []AnvilType

func SlightlyDamagedAnvil

func SlightlyDamagedAnvil() AnvilType

func UndamagedAnvil

func UndamagedAnvil() AnvilType

func VeryDamagedAnvil

func VeryDamagedAnvil() AnvilType

func (AnvilType) String

func (a AnvilType) String() string

func (AnvilType) Uint8

func (a AnvilType) Uint8() uint8

type Attachment

type Attachment struct {
	// contains filtered or unexported fields
}

func StandingAttachment

func StandingAttachment(o cube.Orientation) Attachment

func WallAttachment

func WallAttachment(facing cube.Direction) Attachment

func (Attachment) FaceUint8

func (a Attachment) FaceUint8() uint8

func (Attachment) RotateLeft

func (a Attachment) RotateLeft() Attachment

func (Attachment) RotateRight

func (a Attachment) RotateRight() Attachment

func (Attachment) Rotation

func (a Attachment) Rotation() cube.Rotation

func (Attachment) Uint8

func (a Attachment) Uint8() uint8

type Bamboo

type Bamboo struct {
	Ready    bool
	Thick    bool
	LeafSize BambooLeafSize
	// contains filtered or unexported fields
}

func (Bamboo) BoneMeal

func (b Bamboo) BoneMeal(pos cube.Pos, tx *world.Tx) item.BoneMealResult

func (Bamboo) BreakInfo

func (b Bamboo) BreakInfo() BreakInfo

func (Bamboo) EncodeBlock

func (b Bamboo) EncodeBlock() (string, map[string]any)

func (Bamboo) EncodeItem

func (b Bamboo) EncodeItem() (name string, meta int16)

func (Bamboo) FlammabilityInfo

func (b Bamboo) FlammabilityInfo() FlammabilityInfo

func (Bamboo) FuelInfo

func (b Bamboo) FuelInfo() item.FuelInfo

func (Bamboo) Hash

func (b Bamboo) Hash() (uint64, uint64)

func (Bamboo) Instrument

func (Bamboo) Instrument() sound.Instrument

func (Bamboo) LightDiffusionLevel

func (Bamboo) LightDiffusionLevel() uint8

func (Bamboo) Model

func (b Bamboo) Model() world.BlockModel

func (Bamboo) NeighbourUpdateTick

func (b Bamboo) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Bamboo) RandomTick

func (b Bamboo) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (Bamboo) UseOnBlock

func (b Bamboo) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type BambooBlock

type BambooBlock struct {
	Axis cube.Axis

	Stripped bool
	// contains filtered or unexported fields
}

func (BambooBlock) BreakInfo

func (b BambooBlock) BreakInfo() BreakInfo

func (BambooBlock) EncodeBlock

func (b BambooBlock) EncodeBlock() (name string, properties map[string]any)

func (BambooBlock) EncodeItem

func (b BambooBlock) EncodeItem() (name string, meta int16)

func (BambooBlock) FlammabilityInfo

func (BambooBlock) FlammabilityInfo() FlammabilityInfo

func (BambooBlock) FuelInfo

func (BambooBlock) FuelInfo() item.FuelInfo

func (BambooBlock) Hash

func (b BambooBlock) Hash() (uint64, uint64)

func (BambooBlock) Instrument

func (BambooBlock) Instrument() sound.Instrument

func (BambooBlock) Model

func (BambooBlock) Model() world.BlockModel

func (BambooBlock) PillarAxis

func (b BambooBlock) PillarAxis() cube.Axis

func (BambooBlock) Strip

func (b BambooBlock) Strip() (world.Block, world.Sound, bool)

func (BambooBlock) UseOnBlock

func (b BambooBlock) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (BambooBlock) WithAxis

func (b BambooBlock) WithAxis(axis cube.Axis) world.Block

type BambooLeafSize

type BambooLeafSize struct {
	// contains filtered or unexported fields
}

func BambooLeafSizes

func BambooLeafSizes() []BambooLeafSize

func BambooSizeLargeLeaves

func BambooSizeLargeLeaves() BambooLeafSize

func BambooSizeNoLeaves

func BambooSizeNoLeaves() BambooLeafSize

func BambooSizeSmallLeaves

func BambooSizeSmallLeaves() BambooLeafSize

func (BambooLeafSize) Name

func (b BambooLeafSize) Name() string

func (BambooLeafSize) String

func (b BambooLeafSize) String() string

func (BambooLeafSize) Uint8

func (b BambooLeafSize) Uint8() uint8

type BambooMosaic

type BambooMosaic struct {
	// contains filtered or unexported fields
}

func (BambooMosaic) BreakInfo

func (b BambooMosaic) BreakInfo() BreakInfo

func (BambooMosaic) EncodeBlock

func (BambooMosaic) EncodeBlock() (string, map[string]any)

func (BambooMosaic) EncodeItem

func (BambooMosaic) EncodeItem() (name string, meta int16)

func (BambooMosaic) FlammabilityInfo

func (BambooMosaic) FlammabilityInfo() FlammabilityInfo

func (BambooMosaic) FuelInfo

func (BambooMosaic) FuelInfo() item.FuelInfo

func (BambooMosaic) Hash

func (BambooMosaic) Hash() (uint64, uint64)

func (BambooMosaic) Instrument

func (BambooMosaic) Instrument() sound.Instrument

func (BambooMosaic) Model

func (BambooMosaic) Model() world.BlockModel

func (BambooMosaic) RepairsWoodTools

func (BambooMosaic) RepairsWoodTools() bool

type BambooSapling

type BambooSapling struct {
	Ready bool
	// contains filtered or unexported fields
}

func (BambooSapling) BoneMeal

func (b BambooSapling) BoneMeal(pos cube.Pos, tx *world.Tx) item.BoneMealResult

func (BambooSapling) BreakInfo

func (b BambooSapling) BreakInfo() BreakInfo

func (BambooSapling) EncodeBlock

func (b BambooSapling) EncodeBlock() (string, map[string]any)

func (BambooSapling) FlammabilityInfo

func (b BambooSapling) FlammabilityInfo() FlammabilityInfo

func (BambooSapling) HasLiquidDrops

func (b BambooSapling) HasLiquidDrops() bool

func (BambooSapling) Hash

func (b BambooSapling) Hash() (uint64, uint64)

func (BambooSapling) Instrument

func (BambooSapling) Instrument() sound.Instrument

func (BambooSapling) LightDiffusionLevel

func (BambooSapling) LightDiffusionLevel() uint8

func (BambooSapling) Model

func (BambooSapling) Model() world.BlockModel

func (BambooSapling) NeighbourUpdateTick

func (b BambooSapling) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (BambooSapling) RandomTick

func (b BambooSapling) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)
type Banner struct {
	Colour item.Colour

	Attach Attachment

	Patterns []BannerPatternLayer

	Illager bool
	// contains filtered or unexported fields
}

func (Banner) BreakInfo

func (b Banner) BreakInfo() BreakInfo

func (Banner) DecodeNBT

func (b Banner) DecodeNBT(m map[string]any) any

func (Banner) DyeColour

func (b Banner) DyeColour() item.Colour

func (Banner) EncodeBlock

func (b Banner) EncodeBlock() (name string, properties map[string]any)

func (Banner) EncodeItem

func (b Banner) EncodeItem() (name string, meta int16)

func (Banner) EncodeNBT

func (b Banner) EncodeNBT() map[string]any

func (Banner) FuelInfo

func (Banner) FuelInfo() item.FuelInfo

func (Banner) Hash

func (b Banner) Hash() (uint64, uint64)

func (Banner) LightDiffusionLevel

func (Banner) LightDiffusionLevel() uint8

func (Banner) MaxCount

func (Banner) MaxCount() int

func (Banner) Model

func (Banner) Model() world.BlockModel

func (Banner) NeighbourUpdateTick

func (b Banner) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Banner) Pick

func (b Banner) Pick() item.Stack

func (Banner) UseOnBlock

func (b Banner) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (Banner) WithColour

func (b Banner) WithColour(colour item.Colour) world.Block

type BannerPatternLayer

type BannerPatternLayer struct {
	Type BannerPatternType

	Colour item.Colour
}

func (BannerPatternLayer) DecodeNBT

func (b BannerPatternLayer) DecodeNBT(data map[string]any) any

func (BannerPatternLayer) EncodeNBT

func (b BannerPatternLayer) EncodeNBT() map[string]any

type BannerPatternType

type BannerPatternType struct {
	// contains filtered or unexported fields
}

func BannerPatternByID

func BannerPatternByID(id string) (BannerPatternType, bool)

func BannerPatternTypes

func BannerPatternTypes() []BannerPatternType

func BorderBannerPattern

func BorderBannerPattern() BannerPatternType

func BricksBannerPattern

func BricksBannerPattern() BannerPatternType

func CircleBannerPattern

func CircleBannerPattern() BannerPatternType

func CreeperBannerPattern

func CreeperBannerPattern() BannerPatternType

func CrossBannerPattern

func CrossBannerPattern() BannerPatternType

func CurlyBorderBannerPattern

func CurlyBorderBannerPattern() BannerPatternType

func DiagonalLeftBannerPattern

func DiagonalLeftBannerPattern() BannerPatternType

func DiagonalRightBannerPattern

func DiagonalRightBannerPattern() BannerPatternType

func DiagonalUpLeftBannerPattern

func DiagonalUpLeftBannerPattern() BannerPatternType

func DiagonalUpRightBannerPattern

func DiagonalUpRightBannerPattern() BannerPatternType

func FlowBannerPattern

func FlowBannerPattern() BannerPatternType

func FlowerBannerPattern

func FlowerBannerPattern() BannerPatternType

func GlobeBannerPattern

func GlobeBannerPattern() BannerPatternType

func GradientBannerPattern

func GradientBannerPattern() BannerPatternType

func GradientUpBannerPattern

func GradientUpBannerPattern() BannerPatternType

func GusterBannerPattern

func GusterBannerPattern() BannerPatternType

func HalfHorizontalBannerPattern

func HalfHorizontalBannerPattern() BannerPatternType

func HalfHorizontalBottomBannerPattern

func HalfHorizontalBottomBannerPattern() BannerPatternType

func HalfVerticalBannerPattern

func HalfVerticalBannerPattern() BannerPatternType

func HalfVerticalRightBannerPattern

func HalfVerticalRightBannerPattern() BannerPatternType

func MojangBannerPattern

func MojangBannerPattern() BannerPatternType

func PiglinBannerPattern

func PiglinBannerPattern() BannerPatternType

func RhombusBannerPattern

func RhombusBannerPattern() BannerPatternType

func SkullBannerPattern

func SkullBannerPattern() BannerPatternType

func SmallStripesBannerPattern

func SmallStripesBannerPattern() BannerPatternType

func SquareBottomLeftBannerPattern

func SquareBottomLeftBannerPattern() BannerPatternType

func SquareBottomRightBannerPattern

func SquareBottomRightBannerPattern() BannerPatternType

func SquareTopLeftBannerPattern

func SquareTopLeftBannerPattern() BannerPatternType

func SquareTopRightBannerPattern

func SquareTopRightBannerPattern() BannerPatternType

func StraightCrossBannerPattern

func StraightCrossBannerPattern() BannerPatternType

func StripeBottomBannerPattern

func StripeBottomBannerPattern() BannerPatternType

func StripeCentreBannerPattern

func StripeCentreBannerPattern() BannerPatternType

func StripeDownLeftBannerPattern

func StripeDownLeftBannerPattern() BannerPatternType

func StripeDownRightBannerPattern

func StripeDownRightBannerPattern() BannerPatternType

func StripeLeftBannerPattern

func StripeLeftBannerPattern() BannerPatternType

func StripeMiddleBannerPattern

func StripeMiddleBannerPattern() BannerPatternType

func StripeRightBannerPattern

func StripeRightBannerPattern() BannerPatternType

func StripeTopBannerPattern

func StripeTopBannerPattern() BannerPatternType

func TriangleBottomBannerPattern

func TriangleBottomBannerPattern() BannerPatternType

func TriangleTopBannerPattern

func TriangleTopBannerPattern() BannerPatternType

func TrianglesBottomBannerPattern

func TrianglesBottomBannerPattern() BannerPatternType

func TrianglesTopBannerPattern

func TrianglesTopBannerPattern() BannerPatternType

func (BannerPatternType) Item

func (b BannerPatternType) Item() (item.BannerPatternType, bool)

func (BannerPatternType) String

func (b BannerPatternType) String() string

func (BannerPatternType) Uint8

func (b BannerPatternType) Uint8() uint8

type Barrel

type Barrel struct {
	Facing cube.Face

	Open bool

	CustomName string
	// contains filtered or unexported fields
}

func NewBarrel

func NewBarrel() Barrel

func (Barrel) Activate

func (b Barrel) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (Barrel) AddViewer

func (b Barrel) AddViewer(v ContainerViewer, tx *world.Tx, pos cube.Pos)

func (Barrel) BreakInfo

func (b Barrel) BreakInfo() BreakInfo

func (Barrel) DecodeNBT

func (b Barrel) DecodeNBT(data map[string]any) any

func (Barrel) EncodeBlock

func (b Barrel) EncodeBlock() (string, map[string]any)

func (Barrel) EncodeItem

func (b Barrel) EncodeItem() (name string, meta int16)

func (Barrel) EncodeNBT

func (b Barrel) EncodeNBT() map[string]any

func (Barrel) FlammabilityInfo

func (b Barrel) FlammabilityInfo() FlammabilityInfo

func (Barrel) FuelInfo

func (Barrel) FuelInfo() item.FuelInfo

func (Barrel) Hash

func (b Barrel) Hash() (uint64, uint64)

func (Barrel) Instrument

func (Barrel) Instrument() sound.Instrument

func (Barrel) Inventory

func (b Barrel) Inventory(*world.Tx, cube.Pos) *inventory.Inventory

func (Barrel) Model

func (Barrel) Model() world.BlockModel

func (Barrel) RemoveViewer

func (b Barrel) RemoveViewer(v ContainerViewer, tx *world.Tx, pos cube.Pos)

func (Barrel) UseOnBlock

func (b Barrel) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (Barrel) WithName

func (b Barrel) WithName(a ...any) world.Item

type Barrier

type Barrier struct {
	// contains filtered or unexported fields
}

func (Barrier) CanDisplace

func (s Barrier) CanDisplace(b world.Liquid) bool

func (Barrier) EncodeBlock

func (Barrier) EncodeBlock() (string, map[string]any)

func (Barrier) EncodeItem

func (Barrier) EncodeItem() (name string, meta int16)

func (Barrier) Hash

func (Barrier) Hash() (uint64, uint64)

func (Barrier) LightDiffusionLevel

func (Barrier) LightDiffusionLevel() uint8

func (Barrier) Model

func (Barrier) Model() world.BlockModel

func (Barrier) SideClosed

func (Barrier) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

type Basalt

type Basalt struct {
	Polished bool

	Axis cube.Axis
	// contains filtered or unexported fields
}

func (Basalt) BreakInfo

func (b Basalt) BreakInfo() BreakInfo

func (Basalt) EncodeBlock

func (b Basalt) EncodeBlock() (name string, properties map[string]any)

func (Basalt) EncodeItem

func (b Basalt) EncodeItem() (name string, meta int16)

func (Basalt) Hash

func (b Basalt) Hash() (uint64, uint64)

func (Basalt) Instrument

func (Basalt) Instrument() sound.Instrument

func (Basalt) Model

func (Basalt) Model() world.BlockModel

func (Basalt) PillarAxis

func (b Basalt) PillarAxis() cube.Axis

func (Basalt) UseOnBlock

func (b Basalt) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (Basalt) WithAxis

func (b Basalt) WithAxis(axis cube.Axis) world.Block

type Beacon

type Beacon struct {
	Primary, Secondary effect.LastingType
	// contains filtered or unexported fields
}

func (Beacon) Activate

func (b Beacon) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (Beacon) BreakInfo

func (b Beacon) BreakInfo() BreakInfo

func (Beacon) CanDisplace

func (s Beacon) CanDisplace(b world.Liquid) bool

func (Beacon) DecodeNBT

func (b Beacon) DecodeNBT(data map[string]any) any

func (Beacon) EncodeBlock

func (Beacon) EncodeBlock() (string, map[string]any)

func (Beacon) EncodeItem

func (Beacon) EncodeItem() (name string, meta int16)

func (Beacon) EncodeNBT

func (b Beacon) EncodeNBT() map[string]any

func (Beacon) Hash

func (Beacon) Hash() (uint64, uint64)

func (Beacon) Instrument

func (Beacon) Instrument() sound.Instrument

func (Beacon) Level

func (b Beacon) Level() int

func (Beacon) LightDiffusionLevel

func (Beacon) LightDiffusionLevel() uint8

func (Beacon) LightEmissionLevel

func (Beacon) LightEmissionLevel() uint8

func (Beacon) Model

func (Beacon) Model() world.BlockModel

func (Beacon) SideClosed

func (b Beacon) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (Beacon) Tick

func (b Beacon) Tick(currentTick int64, pos cube.Pos, tx *world.Tx)

type BeaconSource

type BeaconSource interface {
	PowersBeacon() bool
}

type Bed

type Bed struct {
	Colour item.Colour

	Facing cube.Direction

	Head bool

	Sleeper *world.EntityHandle
	// contains filtered or unexported fields
}

func (Bed) Activate

func (b Bed) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (Bed) BreakInfo

func (b Bed) BreakInfo() BreakInfo

func (Bed) CanDisplace

func (s Bed) CanDisplace(b world.Liquid) bool

func (Bed) CanRespawnOn

func (Bed) CanRespawnOn() bool

func (Bed) DecodeNBT

func (b Bed) DecodeNBT(data map[string]interface{}) interface{}

func (Bed) DyeColour

func (b Bed) DyeColour() item.Colour

func (Bed) EncodeBlock

func (b Bed) EncodeBlock() (name string, properties map[string]interface{})

func (Bed) EncodeItem

func (b Bed) EncodeItem() (name string, meta int16)

func (Bed) EncodeNBT

func (b Bed) EncodeNBT() map[string]interface{}

func (Bed) EntityLand

func (b Bed) EntityLand(_ cube.Pos, _ *world.Tx, e world.Entity, distance *float64)

func (Bed) FacingDirection

func (b Bed) FacingDirection() cube.Direction

func (Bed) Hash

func (b Bed) Hash() (uint64, uint64)

func (Bed) LightDiffusionLevel

func (Bed) LightDiffusionLevel() uint8

func (Bed) MaxCount

func (Bed) MaxCount() int

func (Bed) Model

func (Bed) Model() world.BlockModel

func (Bed) NeighbourUpdateTick

func (b Bed) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Bed) SafeSpawn

func (b Bed) SafeSpawn(pos cube.Pos, tx *world.Tx) (cube.Pos, bool)

func (Bed) SideClosed

func (Bed) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (Bed) UseOnBlock

func (b Bed) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (Bed) WithColour

func (b Bed) WithColour(colour item.Colour) world.Block

func (Bed) WithFacing

func (b Bed) WithFacing(facing cube.Direction) world.Block

type Bedrock

type Bedrock struct {
	InfiniteBurning bool
	// contains filtered or unexported fields
}

func (Bedrock) EncodeBlock

func (b Bedrock) EncodeBlock() (name string, properties map[string]any)

func (Bedrock) EncodeItem

func (Bedrock) EncodeItem() (name string, meta int16)

func (Bedrock) Hash

func (b Bedrock) Hash() (uint64, uint64)

func (Bedrock) Instrument

func (Bedrock) Instrument() sound.Instrument

func (Bedrock) Model

func (Bedrock) Model() world.BlockModel

type BeetrootSeeds

type BeetrootSeeds struct {
	// contains filtered or unexported fields
}

func (BeetrootSeeds) BoneMeal

func (b BeetrootSeeds) BoneMeal(pos cube.Pos, tx *world.Tx) item.BoneMealResult

func (BeetrootSeeds) BreakInfo

func (b BeetrootSeeds) BreakInfo() BreakInfo

func (BeetrootSeeds) CalculateGrowthChance

func (c BeetrootSeeds) CalculateGrowthChance(pos cube.Pos, tx *world.Tx) float64

func (BeetrootSeeds) CompostChance

func (BeetrootSeeds) CompostChance() float64

func (BeetrootSeeds) EncodeBlock

func (b BeetrootSeeds) EncodeBlock() (name string, properties map[string]any)

func (BeetrootSeeds) EncodeItem

func (b BeetrootSeeds) EncodeItem() (name string, meta int16)

func (BeetrootSeeds) GrowthStage

func (c BeetrootSeeds) GrowthStage() int

func (BeetrootSeeds) HasLiquidDrops

func (c BeetrootSeeds) HasLiquidDrops() bool

func (BeetrootSeeds) Hash

func (b BeetrootSeeds) Hash() (uint64, uint64)

func (BeetrootSeeds) NeighbourUpdateTick

func (c BeetrootSeeds) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (BeetrootSeeds) RandomTick

func (b BeetrootSeeds) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (BeetrootSeeds) SameCrop

func (BeetrootSeeds) SameCrop(c Crop) bool

func (BeetrootSeeds) UseOnBlock

func (b BeetrootSeeds) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type Blackstone

type Blackstone struct {
	Type BlackstoneType
	// contains filtered or unexported fields
}

func (Blackstone) BreakInfo

func (b Blackstone) BreakInfo() BreakInfo

func (Blackstone) EncodeBlock

func (b Blackstone) EncodeBlock() (string, map[string]any)

func (Blackstone) EncodeItem

func (b Blackstone) EncodeItem() (name string, meta int16)

func (Blackstone) Hash

func (b Blackstone) Hash() (uint64, uint64)

func (Blackstone) Instrument

func (Blackstone) Instrument() sound.Instrument

func (Blackstone) Model

func (Blackstone) Model() world.BlockModel

type BlackstoneType

type BlackstoneType struct {
	// contains filtered or unexported fields
}

func BlackstoneTypes

func BlackstoneTypes() []BlackstoneType

func ChiseledPolishedBlackstone

func ChiseledPolishedBlackstone() BlackstoneType

func GildedBlackstone

func GildedBlackstone() BlackstoneType

func NormalBlackstone

func NormalBlackstone() BlackstoneType

func PolishedBlackstone

func PolishedBlackstone() BlackstoneType

func (BlackstoneType) Name

func (s BlackstoneType) Name() string

func (BlackstoneType) String

func (s BlackstoneType) String() string

func (BlackstoneType) Uint8

func (s BlackstoneType) Uint8() uint8

type BlastFurnace

type BlastFurnace struct {
	Facing cube.Direction

	Lit bool
	// contains filtered or unexported fields
}

func NewBlastFurnace

func NewBlastFurnace(face cube.Direction) BlastFurnace

func (BlastFurnace) Activate

func (b BlastFurnace) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (BlastFurnace) AddViewer

func (s BlastFurnace) AddViewer(v ContainerViewer, _ *world.Tx, _ cube.Pos)

func (BlastFurnace) BreakInfo

func (b BlastFurnace) BreakInfo() BreakInfo

func (BlastFurnace) DecodeNBT

func (b BlastFurnace) DecodeNBT(data map[string]interface{}) interface{}

func (BlastFurnace) Durations

func (s BlastFurnace) Durations() (remaining time.Duration, max time.Duration, cook time.Duration)

func (BlastFurnace) EncodeBlock

func (b BlastFurnace) EncodeBlock() (name string, properties map[string]interface{})

func (BlastFurnace) EncodeItem

func (b BlastFurnace) EncodeItem() (name string, meta int16)

func (BlastFurnace) EncodeNBT

func (b BlastFurnace) EncodeNBT() map[string]interface{}

func (BlastFurnace) Experience

func (s BlastFurnace) Experience() int

func (BlastFurnace) ExtractItem

func (s BlastFurnace) ExtractItem(h Hopper, pos cube.Pos, tx *world.Tx) bool

func (BlastFurnace) FacingDirection

func (b BlastFurnace) FacingDirection() cube.Direction

func (BlastFurnace) Hash

func (b BlastFurnace) Hash() (uint64, uint64)

func (BlastFurnace) InsertItem

func (s BlastFurnace) InsertItem(h Hopper, pos cube.Pos, tx *world.Tx) bool

func (BlastFurnace) Instrument

func (BlastFurnace) Instrument() sound.Instrument

func (BlastFurnace) Inventory

func (s BlastFurnace) Inventory(*world.Tx, cube.Pos) *inventory.Inventory

func (BlastFurnace) LightEmissionLevel

func (b BlastFurnace) LightEmissionLevel() uint8

func (BlastFurnace) Model

func (BlastFurnace) Model() world.BlockModel

func (BlastFurnace) RemoveViewer

func (s BlastFurnace) RemoveViewer(v ContainerViewer, _ *world.Tx, _ cube.Pos)

func (BlastFurnace) ResetExperience

func (s BlastFurnace) ResetExperience() int

func (BlastFurnace) Tick

func (b BlastFurnace) Tick(_ int64, pos cube.Pos, tx *world.Tx)

func (BlastFurnace) UseOnBlock

func (b BlastFurnace) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

func (BlastFurnace) WithFacing

func (b BlastFurnace) WithFacing(facing cube.Direction) world.Block

type BlueIce

type BlueIce struct {
	// contains filtered or unexported fields
}

func (BlueIce) BreakInfo

func (b BlueIce) BreakInfo() BreakInfo

func (BlueIce) EncodeBlock

func (BlueIce) EncodeBlock() (string, map[string]any)

func (BlueIce) EncodeItem

func (BlueIce) EncodeItem() (name string, meta int16)

func (BlueIce) Friction

func (b BlueIce) Friction() float64

func (BlueIce) Hash

func (BlueIce) Hash() (uint64, uint64)

func (BlueIce) Model

func (BlueIce) Model() world.BlockModel

type Bone

type Bone struct {
	Axis cube.Axis
	// contains filtered or unexported fields
}

func (Bone) BreakInfo

func (b Bone) BreakInfo() BreakInfo

func (Bone) EncodeBlock

func (b Bone) EncodeBlock() (name string, properties map[string]any)

func (Bone) EncodeItem

func (b Bone) EncodeItem() (name string, meta int16)

func (Bone) Hash

func (b Bone) Hash() (uint64, uint64)

func (Bone) Instrument

func (b Bone) Instrument() sound.Instrument

func (Bone) Model

func (Bone) Model() world.BlockModel

func (Bone) PillarAxis

func (b Bone) PillarAxis() cube.Axis

func (Bone) UseOnBlock

func (b Bone) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (Bone) WithAxis

func (b Bone) WithAxis(axis cube.Axis) world.Block

type Bookshelf

type Bookshelf struct {
	// contains filtered or unexported fields
}

func (Bookshelf) BreakInfo

func (b Bookshelf) BreakInfo() BreakInfo

func (Bookshelf) EncodeBlock

func (Bookshelf) EncodeBlock() (string, map[string]any)

func (Bookshelf) EncodeItem

func (Bookshelf) EncodeItem() (name string, meta int16)

func (Bookshelf) FlammabilityInfo

func (Bookshelf) FlammabilityInfo() FlammabilityInfo

func (Bookshelf) FuelInfo

func (Bookshelf) FuelInfo() item.FuelInfo

func (Bookshelf) Hash

func (Bookshelf) Hash() (uint64, uint64)

func (Bookshelf) Instrument

func (Bookshelf) Instrument() sound.Instrument

func (Bookshelf) Model

func (Bookshelf) Model() world.BlockModel

type BreakContext

type BreakContext struct {
	HasteLevel int

	ConduitPowerLevel int

	MiningFatigueLevel int

	Underwater bool

	AquaAffinity bool

	Airborne bool
}

type BreakInfo

type BreakInfo struct {
	Hardness float64

	Harvestable func(t item.Tool) bool

	Effective func(t item.Tool) bool

	Drops func(t item.Tool, enchantments []item.Enchantment) []item.Stack

	BreakHandler func(pos cube.Pos, w *world.Tx, u item.User)

	XPDrops XPDropRange

	BlastResistance float64
}

type Breakable

type Breakable interface {
	BreakInfo() BreakInfo
}

type BrewingStand

type BrewingStand struct {
	LeftSlot bool

	MiddleSlot bool

	RightSlot bool
	// contains filtered or unexported fields
}

func NewBrewingStand

func NewBrewingStand() BrewingStand

func (BrewingStand) Activate

func (b BrewingStand) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (BrewingStand) AddViewer

func (b BrewingStand) AddViewer(v ContainerViewer, _ *world.Tx, _ cube.Pos)

func (BrewingStand) BreakInfo

func (b BrewingStand) BreakInfo() BreakInfo

func (BrewingStand) CanDisplace

func (s BrewingStand) CanDisplace(b world.Liquid) bool

func (BrewingStand) DecodeNBT

func (b BrewingStand) DecodeNBT(data map[string]any) any

func (BrewingStand) Duration

func (b BrewingStand) Duration() time.Duration

func (BrewingStand) EncodeBlock

func (b BrewingStand) EncodeBlock() (string, map[string]any)

func (BrewingStand) EncodeItem

func (b BrewingStand) EncodeItem() (name string, meta int16)

func (BrewingStand) EncodeNBT

func (b BrewingStand) EncodeNBT() map[string]any

func (BrewingStand) ExtractItem

func (b BrewingStand) ExtractItem(h Hopper, pos cube.Pos, tx *world.Tx) bool

func (BrewingStand) Fuel

func (b BrewingStand) Fuel() (fuel, maxFuel int32)

func (BrewingStand) Hash

func (b BrewingStand) Hash() (uint64, uint64)

func (BrewingStand) InsertItem

func (b BrewingStand) InsertItem(h Hopper, pos cube.Pos, tx *world.Tx) bool

func (BrewingStand) Inventory

func (b BrewingStand) Inventory(*world.Tx, cube.Pos) *inventory.Inventory

func (BrewingStand) LightDiffusionLevel

func (BrewingStand) LightDiffusionLevel() uint8

func (BrewingStand) Model

func (b BrewingStand) Model() world.BlockModel

func (BrewingStand) RemoveViewer

func (b BrewingStand) RemoveViewer(v ContainerViewer, _ *world.Tx, _ cube.Pos)

func (BrewingStand) SideClosed

func (b BrewingStand) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (BrewingStand) Tick

func (b BrewingStand) Tick(_ int64, pos cube.Pos, tx *world.Tx)

func (BrewingStand) UseOnBlock

func (b BrewingStand) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

type Bricks

type Bricks struct {
	// contains filtered or unexported fields
}

func (Bricks) BreakInfo

func (b Bricks) BreakInfo() BreakInfo

func (Bricks) EncodeBlock

func (Bricks) EncodeBlock() (string, map[string]any)

func (Bricks) EncodeItem

func (Bricks) EncodeItem() (name string, meta int16)

func (Bricks) Hash

func (Bricks) Hash() (uint64, uint64)

func (Bricks) Instrument

func (Bricks) Instrument() sound.Instrument

func (Bricks) Model

func (Bricks) Model() world.BlockModel

type Cactus

type Cactus struct {
	Age int
	// contains filtered or unexported fields
}

func (Cactus) BreakInfo

func (c Cactus) BreakInfo() BreakInfo

func (Cactus) CompostChance

func (Cactus) CompostChance() float64

func (Cactus) EncodeBlock

func (c Cactus) EncodeBlock() (name string, properties map[string]any)

func (Cactus) EncodeItem

func (c Cactus) EncodeItem() (name string, meta int16)

func (Cactus) EntityInside

func (c Cactus) EntityInside(_ cube.Pos, _ *world.Tx, e world.Entity)

func (Cactus) Hash

func (c Cactus) Hash() (uint64, uint64)

func (Cactus) LightDiffusionLevel

func (Cactus) LightDiffusionLevel() uint8

func (Cactus) Model

func (c Cactus) Model() world.BlockModel

func (Cactus) NeighbourUpdateTick

func (c Cactus) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Cactus) RandomTick

func (c Cactus) RandomTick(pos cube.Pos, tx *world.Tx, _ *rand.Rand)

func (Cactus) UseOnBlock

func (c Cactus) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

type Cake

type Cake struct {
	Bites int

	Candle bool

	CandleColour item.OptionalColour

	CandleLit bool
	// contains filtered or unexported fields
}

func (Cake) Activate

func (c Cake) Activate(pos cube.Pos, face cube.Face, tx *world.Tx, u item.User, ctx *item.UseContext) bool

func (Cake) BreakInfo

func (c Cake) BreakInfo() BreakInfo

func (Cake) CanDisplace

func (s Cake) CanDisplace(b world.Liquid) bool

func (Cake) EncodeBlock

func (c Cake) EncodeBlock() (name string, properties map[string]any)

func (Cake) EncodeItem

func (c Cake) EncodeItem() (name string, meta int16)

func (Cake) EntityInside

func (c Cake) EntityInside(pos cube.Pos, tx *world.Tx, e world.Entity)

func (Cake) Hash

func (c Cake) Hash() (uint64, uint64)

func (Cake) Ignite

func (c Cake) Ignite(pos cube.Pos, tx *world.Tx, _ world.Entity) bool

func (Cake) LightDiffusionLevel

func (Cake) LightDiffusionLevel() uint8

func (Cake) LightEmissionLevel

func (c Cake) LightEmissionLevel() uint8

func (Cake) Model

func (c Cake) Model() world.BlockModel

func (Cake) NeighbourUpdateTick

func (c Cake) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Cake) SideClosed

func (c Cake) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (Cake) UseOnBlock

func (c Cake) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type Calcite

type Calcite struct {
	// contains filtered or unexported fields
}

func (Calcite) BreakInfo

func (c Calcite) BreakInfo() BreakInfo

func (Calcite) EncodeBlock

func (c Calcite) EncodeBlock() (string, map[string]any)

func (Calcite) EncodeItem

func (c Calcite) EncodeItem() (name string, meta int16)

func (Calcite) Hash

func (Calcite) Hash() (uint64, uint64)

func (Calcite) Instrument

func (Calcite) Instrument() sound.Instrument

func (Calcite) Model

func (Calcite) Model() world.BlockModel

type Campfire

type Campfire struct {
	Items [4]CampfireItem

	Facing cube.Direction

	Extinguished bool

	Type FireType
	// contains filtered or unexported fields
}

func (Campfire) Activate

func (c Campfire) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, ctx *item.UseContext) bool

func (Campfire) BreakInfo

func (c Campfire) BreakInfo() BreakInfo

func (Campfire) CanDisplace

func (s Campfire) CanDisplace(b world.Liquid) bool

func (Campfire) DecodeNBT

func (c Campfire) DecodeNBT(data map[string]any) any

func (Campfire) EncodeBlock

func (c Campfire) EncodeBlock() (name string, properties map[string]any)

func (Campfire) EncodeItem

func (c Campfire) EncodeItem() (name string, meta int16)

func (Campfire) EncodeNBT

func (c Campfire) EncodeNBT() map[string]any

func (Campfire) EntityInside

func (c Campfire) EntityInside(pos cube.Pos, tx *world.Tx, e world.Entity)

func (Campfire) FacingDirection

func (b Campfire) FacingDirection() cube.Direction

func (Campfire) Hash

func (c Campfire) Hash() (uint64, uint64)

func (Campfire) Ignite

func (c Campfire) Ignite(pos cube.Pos, tx *world.Tx, _ world.Entity) bool

func (Campfire) Instrument

func (Campfire) Instrument() sound.Instrument

func (Campfire) LightDiffusionLevel

func (Campfire) LightDiffusionLevel() uint8

func (Campfire) LightEmissionLevel

func (c Campfire) LightEmissionLevel() uint8

func (Campfire) Model

func (Campfire) Model() world.BlockModel

func (Campfire) NeighbourUpdateTick

func (c Campfire) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Campfire) SideClosed

func (Campfire) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (Campfire) Splash

func (c Campfire) Splash(tx *world.Tx, pos cube.Pos)

func (Campfire) Tick

func (c Campfire) Tick(_ int64, pos cube.Pos, tx *world.Tx)

func (Campfire) UseOnBlock

func (c Campfire) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (Campfire) WithFacing

func (b Campfire) WithFacing(facing cube.Direction) world.Block

type CampfireItem

type CampfireItem struct {
	Item item.Stack

	Time time.Duration
}

type Candle

type Candle struct {
	Colour item.OptionalColour

	AdditionalCandles int

	Lit bool
	// contains filtered or unexported fields
}

func (Candle) Activate

func (c Candle) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, ctx *item.UseContext) bool

func (Candle) BreakInfo

func (c Candle) BreakInfo() BreakInfo

func (Candle) CanDisplace

func (s Candle) CanDisplace(b world.Liquid) bool

func (Candle) EncodeBlock

func (c Candle) EncodeBlock() (name string, properties map[string]any)

func (Candle) EncodeItem

func (c Candle) EncodeItem() (name string, meta int16)

func (Candle) EntityInside

func (c Candle) EntityInside(pos cube.Pos, tx *world.Tx, e world.Entity)

func (Candle) Hash

func (c Candle) Hash() (uint64, uint64)

func (Candle) Ignite

func (c Candle) Ignite(pos cube.Pos, tx *world.Tx, _ world.Entity) bool

func (Candle) LightDiffusionLevel

func (Candle) LightDiffusionLevel() uint8

func (Candle) LightEmissionLevel

func (c Candle) LightEmissionLevel() uint8

func (Candle) Model

func (c Candle) Model() world.BlockModel

func (Candle) NeighbourUpdateTick

func (c Candle) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Candle) SideClosed

func (Candle) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (Candle) UseOnBlock

func (c Candle) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

type Carpet

type Carpet struct {
	Colour item.Colour
	// contains filtered or unexported fields
}

func (Carpet) BreakInfo

func (c Carpet) BreakInfo() BreakInfo

func (Carpet) CanDisplace

func (s Carpet) CanDisplace(b world.Liquid) bool

func (Carpet) DyeColour

func (b Carpet) DyeColour() item.Colour

func (Carpet) EncodeBlock

func (c Carpet) EncodeBlock() (name string, properties map[string]any)

func (Carpet) EncodeItem

func (c Carpet) EncodeItem() (name string, meta int16)

func (Carpet) FlammabilityInfo

func (c Carpet) FlammabilityInfo() FlammabilityInfo

func (Carpet) HasLiquidDrops

func (Carpet) HasLiquidDrops() bool

func (Carpet) Hash

func (c Carpet) Hash() (uint64, uint64)

func (Carpet) LightDiffusionLevel

func (Carpet) LightDiffusionLevel() uint8

func (Carpet) Model

func (Carpet) Model() world.BlockModel

func (Carpet) NeighbourUpdateTick

func (c Carpet) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Carpet) SideClosed

func (Carpet) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (Carpet) UseOnBlock

func (c Carpet) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (Carpet) WithColour

func (b Carpet) WithColour(colour item.Colour) world.Block

type Carrot

type Carrot struct {
	// contains filtered or unexported fields
}

func (Carrot) AlwaysConsumable

func (c Carrot) AlwaysConsumable() bool

func (Carrot) BoneMeal

func (c Carrot) BoneMeal(pos cube.Pos, tx *world.Tx) item.BoneMealResult

func (Carrot) BreakInfo

func (c Carrot) BreakInfo() BreakInfo

func (Carrot) CalculateGrowthChance

func (c Carrot) CalculateGrowthChance(pos cube.Pos, tx *world.Tx) float64

func (Carrot) CompostChance

func (Carrot) CompostChance() float64

func (Carrot) Consume

func (c Carrot) Consume(_ *world.Tx, co item.Consumer) item.Stack

func (Carrot) ConsumeDuration

func (c Carrot) ConsumeDuration() time.Duration

func (Carrot) EncodeBlock

func (c Carrot) EncodeBlock() (name string, properties map[string]any)

func (Carrot) EncodeItem

func (c Carrot) EncodeItem() (name string, meta int16)

func (Carrot) GrowthStage

func (c Carrot) GrowthStage() int

func (Carrot) HasLiquidDrops

func (c Carrot) HasLiquidDrops() bool

func (Carrot) Hash

func (c Carrot) Hash() (uint64, uint64)

func (Carrot) NeighbourUpdateTick

func (c Carrot) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Carrot) RandomTick

func (c Carrot) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (Carrot) SameCrop

func (Carrot) SameCrop(c Crop) bool

func (Carrot) UseOnBlock

func (c Carrot) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type Chest

type Chest struct {
	Facing cube.Direction

	CustomName string
	// contains filtered or unexported fields
}

func NewChest

func NewChest() Chest

func (Chest) Activate

func (c Chest) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (Chest) AddViewer

func (c Chest) AddViewer(v ContainerViewer, tx *world.Tx, pos cube.Pos)

func (Chest) BreakInfo

func (c Chest) BreakInfo() BreakInfo

func (Chest) CanDisplace

func (s Chest) CanDisplace(b world.Liquid) bool

func (Chest) DecodeNBT

func (c Chest) DecodeNBT(data map[string]any) any

func (Chest) EncodeBlock

func (c Chest) EncodeBlock() (name string, properties map[string]any)

func (Chest) EncodeItem

func (Chest) EncodeItem() (name string, meta int16)

func (Chest) EncodeNBT

func (c Chest) EncodeNBT() map[string]any

func (Chest) FacingDirection

func (b Chest) FacingDirection() cube.Direction

func (Chest) FlammabilityInfo

func (c Chest) FlammabilityInfo() FlammabilityInfo

func (Chest) FuelInfo

func (Chest) FuelInfo() item.FuelInfo

func (Chest) Hash

func (c Chest) Hash() (uint64, uint64)

func (Chest) Instrument

func (Chest) Instrument() sound.Instrument

func (Chest) Inventory

func (c Chest) Inventory(tx *world.Tx, pos cube.Pos) *inventory.Inventory

func (Chest) LightDiffusionLevel

func (Chest) LightDiffusionLevel() uint8

func (Chest) Model

func (Chest) Model() world.BlockModel

func (Chest) Paired

func (c Chest) Paired() bool

func (Chest) RemoveViewer

func (c Chest) RemoveViewer(v ContainerViewer, tx *world.Tx, pos cube.Pos)

func (Chest) SideClosed

func (Chest) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (Chest) UseOnBlock

func (c Chest) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (Chest) WithFacing

func (b Chest) WithFacing(facing cube.Direction) world.Block

func (Chest) WithName

func (c Chest) WithName(a ...any) world.Item

type ChiseledQuartz

type ChiseledQuartz struct {
	// contains filtered or unexported fields
}

func (ChiseledQuartz) BreakInfo

func (c ChiseledQuartz) BreakInfo() BreakInfo

func (ChiseledQuartz) EncodeBlock

func (ChiseledQuartz) EncodeBlock() (name string, properties map[string]any)

func (ChiseledQuartz) EncodeItem

func (c ChiseledQuartz) EncodeItem() (name string, meta int16)

func (ChiseledQuartz) Hash

func (ChiseledQuartz) Hash() (uint64, uint64)

func (ChiseledQuartz) Instrument

func (ChiseledQuartz) Instrument() sound.Instrument

func (ChiseledQuartz) Model

func (ChiseledQuartz) Model() world.BlockModel

type Cinnabar

type Cinnabar struct {
	Chiseled bool
	// contains filtered or unexported fields
}

func (Cinnabar) BreakInfo

func (c Cinnabar) BreakInfo() BreakInfo

func (Cinnabar) EncodeBlock

func (c Cinnabar) EncodeBlock() (string, map[string]any)

func (Cinnabar) EncodeItem

func (c Cinnabar) EncodeItem() (name string, meta int16)

func (Cinnabar) Hash

func (c Cinnabar) Hash() (uint64, uint64)

func (Cinnabar) Instrument

func (Cinnabar) Instrument() sound.Instrument

func (Cinnabar) Model

func (Cinnabar) Model() world.BlockModel

type CinnabarBricks

type CinnabarBricks struct {
	// contains filtered or unexported fields
}

func (CinnabarBricks) BreakInfo

func (c CinnabarBricks) BreakInfo() BreakInfo

func (CinnabarBricks) EncodeBlock

func (CinnabarBricks) EncodeBlock() (string, map[string]any)

func (CinnabarBricks) EncodeItem

func (CinnabarBricks) EncodeItem() (name string, meta int16)

func (CinnabarBricks) Hash

func (CinnabarBricks) Hash() (uint64, uint64)

func (CinnabarBricks) Instrument

func (CinnabarBricks) Instrument() sound.Instrument

func (CinnabarBricks) Model

func (CinnabarBricks) Model() world.BlockModel

type Clay

type Clay struct {
	// contains filtered or unexported fields
}

func (Clay) BreakInfo

func (c Clay) BreakInfo() BreakInfo

func (Clay) EncodeBlock

func (c Clay) EncodeBlock() (name string, properties map[string]any)

func (Clay) EncodeItem

func (c Clay) EncodeItem() (name string, meta int16)

func (Clay) Hash

func (Clay) Hash() (uint64, uint64)

func (Clay) Instrument

func (c Clay) Instrument() sound.Instrument

func (Clay) Model

func (Clay) Model() world.BlockModel

func (Clay) SmeltInfo

func (Clay) SmeltInfo() item.SmeltInfo

type CloseAction

type CloseAction struct {
	// contains filtered or unexported fields
}

func (CloseAction) BlockAction

func (CloseAction) BlockAction()

type Coal

type Coal struct {
	// contains filtered or unexported fields
}

func (Coal) BreakInfo

func (c Coal) BreakInfo() BreakInfo

func (Coal) EncodeBlock

func (Coal) EncodeBlock() (name string, properties map[string]any)

func (Coal) EncodeItem

func (Coal) EncodeItem() (name string, meta int16)

func (Coal) FlammabilityInfo

func (Coal) FlammabilityInfo() FlammabilityInfo

func (Coal) FuelInfo

func (Coal) FuelInfo() item.FuelInfo

func (Coal) Hash

func (Coal) Hash() (uint64, uint64)

func (Coal) Instrument

func (Coal) Instrument() sound.Instrument

func (Coal) Model

func (Coal) Model() world.BlockModel

type CoalOre

type CoalOre struct {
	Type OreType
	// contains filtered or unexported fields
}

func (CoalOre) BreakInfo

func (c CoalOre) BreakInfo() BreakInfo

func (CoalOre) EncodeBlock

func (c CoalOre) EncodeBlock() (string, map[string]any)

func (CoalOre) EncodeItem

func (c CoalOre) EncodeItem() (name string, meta int16)

func (CoalOre) Hash

func (c CoalOre) Hash() (uint64, uint64)

func (CoalOre) Instrument

func (CoalOre) Instrument() sound.Instrument

func (CoalOre) Model

func (CoalOre) Model() world.BlockModel

func (CoalOre) SmeltInfo

func (CoalOre) SmeltInfo() item.SmeltInfo

type Cobblestone

type Cobblestone struct {
	Mossy bool
	// contains filtered or unexported fields
}

func (Cobblestone) BreakInfo

func (c Cobblestone) BreakInfo() BreakInfo

func (Cobblestone) EncodeBlock

func (c Cobblestone) EncodeBlock() (string, map[string]any)

func (Cobblestone) EncodeItem

func (c Cobblestone) EncodeItem() (name string, meta int16)

func (Cobblestone) Hash

func (c Cobblestone) Hash() (uint64, uint64)

func (Cobblestone) Instrument

func (Cobblestone) Instrument() sound.Instrument

func (Cobblestone) Model

func (Cobblestone) Model() world.BlockModel

func (Cobblestone) RepairsStoneTools

func (c Cobblestone) RepairsStoneTools() bool

func (Cobblestone) SmeltInfo

func (Cobblestone) SmeltInfo() item.SmeltInfo

type Cobweb

type Cobweb struct {
	// contains filtered or unexported fields
}

func (Cobweb) BreakInfo

func (c Cobweb) BreakInfo() BreakInfo

func (Cobweb) Cobweb

func (Cobweb) Cobweb()

func (Cobweb) EncodeBlock

func (Cobweb) EncodeBlock() (string, map[string]any)

func (Cobweb) EncodeItem

func (Cobweb) EncodeItem() (name string, meta int16)

func (Cobweb) EntityInside

func (Cobweb) EntityInside(_ cube.Pos, _ *world.Tx, e world.Entity)

func (Cobweb) HasLiquidDrops

func (Cobweb) HasLiquidDrops() bool

func (Cobweb) Hash

func (Cobweb) Hash() (uint64, uint64)

func (Cobweb) LightDiffusionLevel

func (Cobweb) LightDiffusionLevel() uint8

func (Cobweb) Model

func (Cobweb) Model() world.BlockModel

type CocoaBean

type CocoaBean struct {
	Facing cube.Direction

	Age int
	// contains filtered or unexported fields
}

func (CocoaBean) BoneMeal

func (c CocoaBean) BoneMeal(pos cube.Pos, tx *world.Tx) item.BoneMealResult

func (CocoaBean) BreakInfo

func (c CocoaBean) BreakInfo() BreakInfo

func (CocoaBean) CompostChance

func (CocoaBean) CompostChance() float64

func (CocoaBean) EncodeBlock

func (c CocoaBean) EncodeBlock() (name string, properties map[string]any)

func (CocoaBean) EncodeItem

func (c CocoaBean) EncodeItem() (name string, meta int16)

func (CocoaBean) FacingDirection

func (b CocoaBean) FacingDirection() cube.Direction

func (CocoaBean) HasLiquidDrops

func (c CocoaBean) HasLiquidDrops() bool

func (CocoaBean) Hash

func (c CocoaBean) Hash() (uint64, uint64)

func (CocoaBean) LightDiffusionLevel

func (CocoaBean) LightDiffusionLevel() uint8

func (CocoaBean) Model

func (c CocoaBean) Model() world.BlockModel

func (CocoaBean) NeighbourUpdateTick

func (c CocoaBean) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (CocoaBean) RandomTick

func (c CocoaBean) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (CocoaBean) UseOnBlock

func (c CocoaBean) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

func (CocoaBean) WithFacing

func (b CocoaBean) WithFacing(facing cube.Direction) world.Block

type CommandBlock

type CommandBlock struct {
	Facing cube.Face

	Conditional bool
	// contains filtered or unexported fields
}

func (CommandBlock) CanDisplace

func (s CommandBlock) CanDisplace(b world.Liquid) bool

func (CommandBlock) EncodeBlock

func (c CommandBlock) EncodeBlock() (name string, properties map[string]any)

func (CommandBlock) EncodeItem

func (CommandBlock) EncodeItem() (name string, meta int16)

func (CommandBlock) Hash

func (c CommandBlock) Hash() (uint64, uint64)

func (CommandBlock) Model

func (CommandBlock) Model() world.BlockModel

func (CommandBlock) SideClosed

func (CommandBlock) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

type Composter

type Composter struct {
	Level int
	// contains filtered or unexported fields
}

func (Composter) Activate

func (c Composter) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, ctx *item.UseContext) bool

func (Composter) BreakInfo

func (c Composter) BreakInfo() BreakInfo

func (Composter) CanDisplace

func (s Composter) CanDisplace(b world.Liquid) bool

func (Composter) EncodeBlock

func (c Composter) EncodeBlock() (string, map[string]any)

func (Composter) EncodeItem

func (c Composter) EncodeItem() (name string, meta int16)

func (Composter) ExtractItem

func (c Composter) ExtractItem(h Hopper, pos cube.Pos, tx *world.Tx) bool

func (Composter) FlammabilityInfo

func (c Composter) FlammabilityInfo() FlammabilityInfo

func (Composter) FuelInfo

func (c Composter) FuelInfo() item.FuelInfo

func (Composter) Hash

func (c Composter) Hash() (uint64, uint64)

func (Composter) InsertItem

func (c Composter) InsertItem(h Hopper, pos cube.Pos, tx *world.Tx) bool

func (Composter) Instrument

func (Composter) Instrument() sound.Instrument

func (Composter) LightDiffusionLevel

func (Composter) LightDiffusionLevel() uint8

func (Composter) Model

func (c Composter) Model() world.BlockModel

func (Composter) ScheduledTick

func (c Composter) ScheduledTick(pos cube.Pos, tx *world.Tx, _ *rand.Rand)

func (Composter) SideClosed

func (c Composter) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

type Concrete

type Concrete struct {
	Colour item.Colour
	// contains filtered or unexported fields
}

func (Concrete) BreakInfo

func (c Concrete) BreakInfo() BreakInfo

func (Concrete) DyeColour

func (b Concrete) DyeColour() item.Colour

func (Concrete) EncodeBlock

func (c Concrete) EncodeBlock() (name string, properties map[string]any)

func (Concrete) EncodeItem

func (c Concrete) EncodeItem() (name string, meta int16)

func (Concrete) Hash

func (c Concrete) Hash() (uint64, uint64)

func (Concrete) Instrument

func (Concrete) Instrument() sound.Instrument

func (Concrete) Model

func (Concrete) Model() world.BlockModel

func (Concrete) WithColour

func (b Concrete) WithColour(colour item.Colour) world.Block

type ConcretePowder

type ConcretePowder struct {
	Colour item.Colour
	// contains filtered or unexported fields
}

func (ConcretePowder) BreakInfo

func (c ConcretePowder) BreakInfo() BreakInfo

func (ConcretePowder) DyeColour

func (b ConcretePowder) DyeColour() item.Colour

func (ConcretePowder) EncodeBlock

func (c ConcretePowder) EncodeBlock() (name string, properties map[string]any)

func (ConcretePowder) EncodeItem

func (c ConcretePowder) EncodeItem() (name string, meta int16)

func (ConcretePowder) Hash

func (c ConcretePowder) Hash() (uint64, uint64)

func (ConcretePowder) Instrument

func (ConcretePowder) Instrument() sound.Instrument

func (ConcretePowder) Model

func (ConcretePowder) Model() world.BlockModel

func (ConcretePowder) NeighbourUpdateTick

func (c ConcretePowder) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (ConcretePowder) Solidifies

func (c ConcretePowder) Solidifies(pos cube.Pos, tx *world.Tx) bool

func (ConcretePowder) WithColour

func (b ConcretePowder) WithColour(colour item.Colour) world.Block

type Container

type Container interface {
	AddViewer(v ContainerViewer, tx *world.Tx, pos cube.Pos)
	RemoveViewer(v ContainerViewer, tx *world.Tx, pos cube.Pos)
	Inventory(tx *world.Tx, pos cube.Pos) *inventory.Inventory
}

type ContainerOpener

type ContainerOpener interface {
	OpenBlockContainer(pos cube.Pos, tx *world.Tx)
}

type ContainerViewer

type ContainerViewer interface {
	world.Viewer

	ViewSlotChange(slot int, newItem item.Stack)
}

type ContinueCrackAction

type ContinueCrackAction struct {
	BreakTime time.Duration
	// contains filtered or unexported fields
}

func (ContinueCrackAction) BlockAction

func (ContinueCrackAction) BlockAction()

type Copper

type Copper struct {
	Type CopperType

	Oxidation OxidationType

	Waxed bool
	// contains filtered or unexported fields
}

func (Copper) BreakInfo

func (c Copper) BreakInfo() BreakInfo

func (Copper) CanOxidate

func (c Copper) CanOxidate() bool

func (Copper) EncodeBlock

func (c Copper) EncodeBlock() (string, map[string]any)

func (Copper) EncodeItem

func (c Copper) EncodeItem() (name string, meta int16)

func (Copper) Hash

func (c Copper) Hash() (uint64, uint64)

func (Copper) Instrument

func (Copper) Instrument() sound.Instrument

func (Copper) Model

func (Copper) Model() world.BlockModel

func (Copper) OxidationLevel

func (c Copper) OxidationLevel() OxidationType

func (Copper) RandomTick

func (c Copper) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (Copper) Strip

func (c Copper) Strip() (world.Block, world.Sound, bool)

func (Copper) Wax

func (c Copper) Wax(cube.Pos, mgl64.Vec3) (world.Block, bool)

func (Copper) WithOxidationLevel

func (c Copper) WithOxidationLevel(o OxidationType) Oxidisable

type CopperBars

type CopperBars struct {
	Oxidation OxidationType

	Waxed bool
	// contains filtered or unexported fields
}

func (CopperBars) BreakInfo

func (c CopperBars) BreakInfo() BreakInfo

func (CopperBars) CanDisplace

func (s CopperBars) CanDisplace(b world.Liquid) bool

func (CopperBars) CanOxidate

func (c CopperBars) CanOxidate() bool

func (CopperBars) EncodeBlock

func (c CopperBars) EncodeBlock() (name string, properties map[string]any)

func (CopperBars) EncodeItem

func (c CopperBars) EncodeItem() (name string, meta int16)

func (CopperBars) Hash

func (c CopperBars) Hash() (uint64, uint64)

func (CopperBars) LightDiffusionLevel

func (CopperBars) LightDiffusionLevel() uint8

func (CopperBars) Model

func (CopperBars) Model() world.BlockModel

func (CopperBars) OxidationLevel

func (c CopperBars) OxidationLevel() OxidationType

func (CopperBars) RandomTick

func (c CopperBars) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (CopperBars) SideClosed

func (c CopperBars) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (CopperBars) Strip

func (c CopperBars) Strip() (world.Block, world.Sound, bool)

func (CopperBars) Wax

func (c CopperBars) Wax(cube.Pos, mgl64.Vec3) (world.Block, bool)

func (CopperBars) WithOxidationLevel

func (c CopperBars) WithOxidationLevel(o OxidationType) Oxidisable

type CopperChain

type CopperChain struct {
	Axis cube.Axis

	Oxidation OxidationType

	Waxed bool
	// contains filtered or unexported fields
}

func (CopperChain) BreakInfo

func (c CopperChain) BreakInfo() BreakInfo

func (CopperChain) CanDisplace

func (s CopperChain) CanDisplace(b world.Liquid) bool

func (CopperChain) CanOxidate

func (c CopperChain) CanOxidate() bool

func (CopperChain) EncodeBlock

func (c CopperChain) EncodeBlock() (name string, properties map[string]any)

func (CopperChain) EncodeItem

func (c CopperChain) EncodeItem() (name string, meta int16)

func (CopperChain) Hash

func (c CopperChain) Hash() (uint64, uint64)

func (CopperChain) LightDiffusionLevel

func (CopperChain) LightDiffusionLevel() uint8

func (CopperChain) Model

func (c CopperChain) Model() world.BlockModel

func (CopperChain) OxidationLevel

func (c CopperChain) OxidationLevel() OxidationType

func (CopperChain) PillarAxis

func (b CopperChain) PillarAxis() cube.Axis

func (CopperChain) RandomTick

func (c CopperChain) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (CopperChain) SideClosed

func (CopperChain) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (CopperChain) Strip

func (c CopperChain) Strip() (world.Block, world.Sound, bool)

func (CopperChain) UseOnBlock

func (c CopperChain) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (CopperChain) Wax

func (CopperChain) WithAxis

func (b CopperChain) WithAxis(axis cube.Axis) world.Block

func (CopperChain) WithOxidationLevel

func (c CopperChain) WithOxidationLevel(o OxidationType) Oxidisable

type CopperDoor

type CopperDoor struct {
	Oxidation OxidationType

	Waxed bool

	Facing cube.Direction

	Open bool

	Top bool

	Right bool
	// contains filtered or unexported fields
}

func (CopperDoor) Activate

func (d CopperDoor) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, _ item.User, _ *item.UseContext) bool

func (CopperDoor) BreakInfo

func (d CopperDoor) BreakInfo() BreakInfo

func (CopperDoor) CanDisplace

func (s CopperDoor) CanDisplace(b world.Liquid) bool

func (CopperDoor) CanOxidate

func (d CopperDoor) CanOxidate() bool

func (CopperDoor) EncodeBlock

func (d CopperDoor) EncodeBlock() (name string, properties map[string]any)

func (CopperDoor) EncodeItem

func (d CopperDoor) EncodeItem() (name string, meta int16)

func (CopperDoor) FacingDirection

func (b CopperDoor) FacingDirection() cube.Direction

func (CopperDoor) Hash

func (d CopperDoor) Hash() (uint64, uint64)

func (CopperDoor) Instrument

func (CopperDoor) Instrument() sound.Instrument

func (CopperDoor) LightDiffusionLevel

func (CopperDoor) LightDiffusionLevel() uint8

func (CopperDoor) Model

func (d CopperDoor) Model() world.BlockModel

func (CopperDoor) NeighbourUpdateTick

func (d CopperDoor) NeighbourUpdateTick(pos, changedNeighbour cube.Pos, tx *world.Tx)

func (CopperDoor) OxidationLevel

func (d CopperDoor) OxidationLevel() OxidationType

func (CopperDoor) RandomTick

func (d CopperDoor) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (CopperDoor) SideClosed

func (d CopperDoor) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (CopperDoor) Strip

func (d CopperDoor) Strip() (world.Block, world.Sound, bool)

func (CopperDoor) UseOnBlock

func (d CopperDoor) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

func (CopperDoor) Wax

func (d CopperDoor) Wax(cube.Pos, mgl64.Vec3) (world.Block, bool)

func (CopperDoor) WithFacing

func (b CopperDoor) WithFacing(facing cube.Direction) world.Block

func (CopperDoor) WithOxidationLevel

func (d CopperDoor) WithOxidationLevel(o OxidationType) Oxidisable

type CopperGolemPose

type CopperGolemPose struct {
	// contains filtered or unexported fields
}

func CopperGolemPoses

func CopperGolemPoses() []CopperGolemPose

func RunningPose

func RunningPose() CopperGolemPose

func SittingPose

func SittingPose() CopperGolemPose

func StandingPose

func StandingPose() CopperGolemPose

func StarPose

func StarPose() CopperGolemPose

func (CopperGolemPose) Name

func (p CopperGolemPose) Name() string

func (CopperGolemPose) Uint8

func (p CopperGolemPose) Uint8() uint8

type CopperGolemStatue

type CopperGolemStatue struct {
	Facing cube.Direction

	Pose CopperGolemPose

	Oxidation OxidationType

	Waxed bool
	// contains filtered or unexported fields
}

func (CopperGolemStatue) Activate

func (c CopperGolemStatue) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (CopperGolemStatue) BreakInfo

func (c CopperGolemStatue) BreakInfo() BreakInfo

func (CopperGolemStatue) CanDisplace

func (s CopperGolemStatue) CanDisplace(b world.Liquid) bool

func (CopperGolemStatue) CanOxidate

func (c CopperGolemStatue) CanOxidate() bool

func (CopperGolemStatue) DecodeNBT

func (c CopperGolemStatue) DecodeNBT(data map[string]any) any

func (CopperGolemStatue) EncodeBlock

func (c CopperGolemStatue) EncodeBlock() (string, map[string]any)

func (CopperGolemStatue) EncodeItem

func (c CopperGolemStatue) EncodeItem() (name string, meta int16)

func (CopperGolemStatue) EncodeNBT

func (c CopperGolemStatue) EncodeNBT() map[string]any

func (CopperGolemStatue) FacingDirection

func (b CopperGolemStatue) FacingDirection() cube.Direction

func (CopperGolemStatue) Hash

func (c CopperGolemStatue) Hash() (uint64, uint64)

func (CopperGolemStatue) LightDiffusionLevel

func (CopperGolemStatue) LightDiffusionLevel() uint8

func (CopperGolemStatue) Model

func (CopperGolemStatue) Model() world.BlockModel

func (CopperGolemStatue) OxidationLevel

func (c CopperGolemStatue) OxidationLevel() OxidationType

func (CopperGolemStatue) RandomTick

func (c CopperGolemStatue) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (CopperGolemStatue) Strip

func (c CopperGolemStatue) Strip() (world.Block, world.Sound, bool)

func (CopperGolemStatue) UseOnBlock

func (c CopperGolemStatue) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (CopperGolemStatue) Wax

func (CopperGolemStatue) WithFacing

func (b CopperGolemStatue) WithFacing(facing cube.Direction) world.Block

func (CopperGolemStatue) WithOxidationLevel

func (c CopperGolemStatue) WithOxidationLevel(o OxidationType) Oxidisable

type CopperGrate

type CopperGrate struct {
	Oxidation OxidationType

	Waxed bool
	// contains filtered or unexported fields
}

func (CopperGrate) BreakInfo

func (c CopperGrate) BreakInfo() BreakInfo

func (CopperGrate) CanDisplace

func (s CopperGrate) CanDisplace(b world.Liquid) bool

func (CopperGrate) CanOxidate

func (c CopperGrate) CanOxidate() bool

func (CopperGrate) EncodeBlock

func (c CopperGrate) EncodeBlock() (string, map[string]any)

func (CopperGrate) EncodeItem

func (c CopperGrate) EncodeItem() (name string, meta int16)

func (CopperGrate) Hash

func (c CopperGrate) Hash() (uint64, uint64)

func (CopperGrate) Instrument

func (CopperGrate) Instrument() sound.Instrument

func (CopperGrate) LightDiffusionLevel

func (CopperGrate) LightDiffusionLevel() uint8

func (CopperGrate) Model

func (CopperGrate) Model() world.BlockModel

func (CopperGrate) OxidationLevel

func (c CopperGrate) OxidationLevel() OxidationType

func (CopperGrate) RandomTick

func (c CopperGrate) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (CopperGrate) Strip

func (c CopperGrate) Strip() (world.Block, world.Sound, bool)

func (CopperGrate) Wax

func (CopperGrate) WithOxidationLevel

func (c CopperGrate) WithOxidationLevel(o OxidationType) Oxidisable

type CopperLantern

type CopperLantern struct {
	Hanging bool

	Oxidation OxidationType

	Waxed bool
	// contains filtered or unexported fields
}

func (CopperLantern) BreakInfo

func (c CopperLantern) BreakInfo() BreakInfo

func (CopperLantern) CanDisplace

func (s CopperLantern) CanDisplace(b world.Liquid) bool

func (CopperLantern) CanOxidate

func (c CopperLantern) CanOxidate() bool

func (CopperLantern) EncodeBlock

func (c CopperLantern) EncodeBlock() (name string, properties map[string]any)

func (CopperLantern) EncodeItem

func (c CopperLantern) EncodeItem() (name string, meta int16)

func (CopperLantern) Hash

func (c CopperLantern) Hash() (uint64, uint64)

func (CopperLantern) LightDiffusionLevel

func (CopperLantern) LightDiffusionLevel() uint8

func (CopperLantern) LightEmissionLevel

func (CopperLantern) LightEmissionLevel() uint8

func (CopperLantern) Model

func (c CopperLantern) Model() world.BlockModel

func (CopperLantern) NeighbourUpdateTick

func (c CopperLantern) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (CopperLantern) OxidationLevel

func (c CopperLantern) OxidationLevel() OxidationType

func (CopperLantern) RandomTick

func (c CopperLantern) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (CopperLantern) SideClosed

func (CopperLantern) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (CopperLantern) Strip

func (c CopperLantern) Strip() (world.Block, world.Sound, bool)

func (CopperLantern) UseOnBlock

func (c CopperLantern) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

func (CopperLantern) Wax

func (CopperLantern) WithOxidationLevel

func (c CopperLantern) WithOxidationLevel(o OxidationType) Oxidisable

type CopperOre

type CopperOre struct {
	Type OreType
	// contains filtered or unexported fields
}

func (CopperOre) BreakInfo

func (c CopperOre) BreakInfo() BreakInfo

func (CopperOre) EncodeBlock

func (c CopperOre) EncodeBlock() (string, map[string]any)

func (CopperOre) EncodeItem

func (c CopperOre) EncodeItem() (name string, meta int16)

func (CopperOre) Hash

func (c CopperOre) Hash() (uint64, uint64)

func (CopperOre) Instrument

func (CopperOre) Instrument() sound.Instrument

func (CopperOre) Model

func (CopperOre) Model() world.BlockModel

func (CopperOre) SmeltInfo

func (CopperOre) SmeltInfo() item.SmeltInfo

type CopperTorch

type CopperTorch struct {
	Facing cube.Face
	// contains filtered or unexported fields
}

func (CopperTorch) BreakInfo

func (t CopperTorch) BreakInfo() BreakInfo

func (CopperTorch) EncodeBlock

func (t CopperTorch) EncodeBlock() (name string, properties map[string]any)

func (CopperTorch) EncodeItem

func (t CopperTorch) EncodeItem() (name string, meta int16)

func (CopperTorch) HasLiquidDrops

func (t CopperTorch) HasLiquidDrops() bool

func (CopperTorch) Hash

func (t CopperTorch) Hash() (uint64, uint64)

func (CopperTorch) LightDiffusionLevel

func (CopperTorch) LightDiffusionLevel() uint8

func (CopperTorch) LightEmissionLevel

func (t CopperTorch) LightEmissionLevel() uint8

func (CopperTorch) Model

func (CopperTorch) Model() world.BlockModel

func (CopperTorch) NeighbourUpdateTick

func (t CopperTorch) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (CopperTorch) UseOnBlock

func (t CopperTorch) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type CopperTrapdoor

type CopperTrapdoor struct {
	Oxidation OxidationType

	Waxed bool

	Facing cube.Direction

	Open bool

	Top bool
	// contains filtered or unexported fields
}

func (CopperTrapdoor) Activate

func (t CopperTrapdoor) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, _ item.User, _ *item.UseContext) bool

func (CopperTrapdoor) BreakInfo

func (t CopperTrapdoor) BreakInfo() BreakInfo

func (CopperTrapdoor) CanDisplace

func (s CopperTrapdoor) CanDisplace(b world.Liquid) bool

func (CopperTrapdoor) CanOxidate

func (t CopperTrapdoor) CanOxidate() bool

func (CopperTrapdoor) EncodeBlock

func (t CopperTrapdoor) EncodeBlock() (name string, properties map[string]any)

func (CopperTrapdoor) EncodeItem

func (t CopperTrapdoor) EncodeItem() (name string, meta int16)

func (CopperTrapdoor) FacingDirection

func (b CopperTrapdoor) FacingDirection() cube.Direction

func (CopperTrapdoor) Hash

func (t CopperTrapdoor) Hash() (uint64, uint64)

func (CopperTrapdoor) Instrument

func (CopperTrapdoor) Instrument() sound.Instrument

func (CopperTrapdoor) LightDiffusionLevel

func (CopperTrapdoor) LightDiffusionLevel() uint8

func (CopperTrapdoor) Model

func (t CopperTrapdoor) Model() world.BlockModel

func (CopperTrapdoor) OxidationLevel

func (t CopperTrapdoor) OxidationLevel() OxidationType

func (CopperTrapdoor) RandomTick

func (t CopperTrapdoor) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (CopperTrapdoor) SideClosed

func (t CopperTrapdoor) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (CopperTrapdoor) Strip

func (t CopperTrapdoor) Strip() (world.Block, world.Sound, bool)

func (CopperTrapdoor) UseOnBlock

func (t CopperTrapdoor) UseOnBlock(pos cube.Pos, face cube.Face, clickPos mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

func (CopperTrapdoor) Wax

func (CopperTrapdoor) WithFacing

func (b CopperTrapdoor) WithFacing(facing cube.Direction) world.Block

func (CopperTrapdoor) WithOxidationLevel

func (t CopperTrapdoor) WithOxidationLevel(o OxidationType) Oxidisable

type CopperType

type CopperType struct {
	// contains filtered or unexported fields
}

func ChiseledCopper

func ChiseledCopper() CopperType

func CopperTypes

func CopperTypes() []CopperType

func CutCopper

func CutCopper() CopperType

func NormalCopper

func NormalCopper() CopperType

func (CopperType) Name

func (s CopperType) Name() string

func (CopperType) String

func (s CopperType) String() string

func (CopperType) Uint8

func (s CopperType) Uint8() uint8

type Coral

type Coral struct {
	Type CoralType

	Dead bool
	// contains filtered or unexported fields
}

func (Coral) BreakInfo

func (c Coral) BreakInfo() BreakInfo

func (Coral) CanDisplace

func (s Coral) CanDisplace(b world.Liquid) bool

func (Coral) EncodeBlock

func (c Coral) EncodeBlock() (name string, properties map[string]any)

func (Coral) EncodeItem

func (c Coral) EncodeItem() (name string, meta int16)

func (Coral) HasLiquidDrops

func (c Coral) HasLiquidDrops() bool

func (Coral) Hash

func (c Coral) Hash() (uint64, uint64)

func (Coral) Instrument

func (Coral) Instrument() sound.Instrument

func (Coral) LightDiffusionLevel

func (Coral) LightDiffusionLevel() uint8

func (Coral) Model

func (Coral) Model() world.BlockModel

func (Coral) NeighbourUpdateTick

func (c Coral) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Coral) ScheduledTick

func (c Coral) ScheduledTick(pos cube.Pos, tx *world.Tx, _ *rand.Rand)

func (Coral) SideClosed

func (c Coral) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (Coral) UseOnBlock

func (c Coral) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type CoralBlock

type CoralBlock struct {
	Type CoralType

	Dead bool
	// contains filtered or unexported fields
}

func (CoralBlock) BreakInfo

func (c CoralBlock) BreakInfo() BreakInfo

func (CoralBlock) EncodeBlock

func (c CoralBlock) EncodeBlock() (name string, properties map[string]any)

func (CoralBlock) EncodeItem

func (c CoralBlock) EncodeItem() (name string, meta int16)

func (CoralBlock) Hash

func (c CoralBlock) Hash() (uint64, uint64)

func (CoralBlock) Instrument

func (CoralBlock) Instrument() sound.Instrument

func (CoralBlock) Model

func (CoralBlock) Model() world.BlockModel

func (CoralBlock) NeighbourUpdateTick

func (c CoralBlock) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (CoralBlock) ScheduledTick

func (c CoralBlock) ScheduledTick(pos cube.Pos, tx *world.Tx, _ *rand.Rand)

type CoralType

type CoralType struct {
	// contains filtered or unexported fields
}

func BrainCoral

func BrainCoral() CoralType

func BubbleCoral

func BubbleCoral() CoralType

func CoralTypes

func CoralTypes() []CoralType

func FireCoral

func FireCoral() CoralType

func HornCoral

func HornCoral() CoralType

func TubeCoral

func TubeCoral() CoralType

func (CoralType) Colour

func (c CoralType) Colour() item.Colour

func (CoralType) Name

func (c CoralType) Name() string

func (CoralType) String

func (c CoralType) String() string

func (CoralType) Uint8

func (c CoralType) Uint8() uint8

type CraftingTable

type CraftingTable struct {
	// contains filtered or unexported fields
}

func (CraftingTable) Activate

func (c CraftingTable) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (CraftingTable) BreakInfo

func (c CraftingTable) BreakInfo() BreakInfo

func (CraftingTable) EncodeBlock

func (c CraftingTable) EncodeBlock() (name string, properties map[string]interface{})

func (CraftingTable) EncodeItem

func (c CraftingTable) EncodeItem() (name string, meta int16)

func (CraftingTable) FuelInfo

func (CraftingTable) FuelInfo() item.FuelInfo

func (CraftingTable) Hash

func (CraftingTable) Hash() (uint64, uint64)

func (CraftingTable) Instrument

func (CraftingTable) Instrument() sound.Instrument

func (CraftingTable) Model

func (CraftingTable) Model() world.BlockModel

type Crop

type Crop interface {
	GrowthStage() int

	SameCrop(c Crop) bool
}

type DamageSource

type DamageSource struct {
	Block world.Block
}

func (DamageSource) Fire

func (DamageSource) Fire() bool

func (DamageSource) IgnoreTotem

func (DamageSource) IgnoreTotem() bool

func (DamageSource) ReducedByArmour

func (DamageSource) ReducedByArmour() bool

func (DamageSource) ReducedByResistance

func (DamageSource) ReducedByResistance() bool

type DeadBush

type DeadBush struct {
	// contains filtered or unexported fields
}

func (DeadBush) BreakInfo

func (d DeadBush) BreakInfo() BreakInfo

func (DeadBush) CanDisplace

func (s DeadBush) CanDisplace(b world.Liquid) bool

func (DeadBush) EncodeBlock

func (d DeadBush) EncodeBlock() (string, map[string]any)

func (DeadBush) EncodeItem

func (d DeadBush) EncodeItem() (name string, meta int16)

func (DeadBush) FlammabilityInfo

func (d DeadBush) FlammabilityInfo() FlammabilityInfo

func (DeadBush) HasLiquidDrops

func (d DeadBush) HasLiquidDrops() bool

func (DeadBush) Hash

func (DeadBush) Hash() (uint64, uint64)

func (DeadBush) LightDiffusionLevel

func (DeadBush) LightDiffusionLevel() uint8

func (DeadBush) Model

func (DeadBush) Model() world.BlockModel

func (DeadBush) NeighbourUpdateTick

func (d DeadBush) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (DeadBush) ReplaceableBy

func (DeadBush) ReplaceableBy(world.Block) bool

func (DeadBush) SideClosed

func (d DeadBush) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (DeadBush) UseOnBlock

func (d DeadBush) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type DecoratedPot

type DecoratedPot struct {
	Item item.Stack

	Facing cube.Direction

	Decorations [4]PotDecoration
	// contains filtered or unexported fields
}

func (DecoratedPot) Activate

func (p DecoratedPot) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, ctx *item.UseContext) bool

func (DecoratedPot) BreakInfo

func (p DecoratedPot) BreakInfo() BreakInfo

func (DecoratedPot) CanDisplace

func (s DecoratedPot) CanDisplace(b world.Liquid) bool

func (DecoratedPot) DecodeNBT

func (p DecoratedPot) DecodeNBT(data map[string]any) any

func (DecoratedPot) EncodeBlock

func (p DecoratedPot) EncodeBlock() (name string, properties map[string]any)

func (DecoratedPot) EncodeItem

func (p DecoratedPot) EncodeItem() (name string, meta int16)

func (DecoratedPot) EncodeNBT

func (p DecoratedPot) EncodeNBT() map[string]any

func (DecoratedPot) ExtractItem

func (p DecoratedPot) ExtractItem(h Hopper, pos cube.Pos, tx *world.Tx) bool

func (DecoratedPot) FacingDirection

func (b DecoratedPot) FacingDirection() cube.Direction

func (DecoratedPot) Hash

func (p DecoratedPot) Hash() (uint64, uint64)

func (DecoratedPot) InsertItem

func (p DecoratedPot) InsertItem(h Hopper, pos cube.Pos, tx *world.Tx) bool

func (DecoratedPot) LightDiffusionLevel

func (DecoratedPot) LightDiffusionLevel() uint8

func (DecoratedPot) Model

func (p DecoratedPot) Model() world.BlockModel

func (DecoratedPot) Pick

func (p DecoratedPot) Pick() item.Stack

func (DecoratedPot) ProjectileHit

func (p DecoratedPot) ProjectileHit(pos cube.Pos, tx *world.Tx, _ world.Entity, _ cube.Face)

func (DecoratedPot) SideClosed

func (p DecoratedPot) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (DecoratedPot) UseOnBlock

func (p DecoratedPot) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (DecoratedPot) WithFacing

func (b DecoratedPot) WithFacing(facing cube.Direction) world.Block

type DecoratedPotWobbleAction

type DecoratedPotWobbleAction struct {
	DecoratedPot DecoratedPot

	Success bool
	// contains filtered or unexported fields
}

func (DecoratedPotWobbleAction) BlockAction

func (DecoratedPotWobbleAction) BlockAction()

type Deepslate

type Deepslate struct {
	Type DeepslateType

	Axis cube.Axis
	// contains filtered or unexported fields
}

func (Deepslate) BreakInfo

func (d Deepslate) BreakInfo() BreakInfo

func (Deepslate) EncodeBlock

func (d Deepslate) EncodeBlock() (string, map[string]any)

func (Deepslate) EncodeItem

func (d Deepslate) EncodeItem() (name string, meta int16)

func (Deepslate) Hash

func (d Deepslate) Hash() (uint64, uint64)

func (Deepslate) Instrument

func (Deepslate) Instrument() sound.Instrument

func (Deepslate) Model

func (Deepslate) Model() world.BlockModel

func (Deepslate) PillarAxis

func (b Deepslate) PillarAxis() cube.Axis

func (Deepslate) SmeltInfo

func (d Deepslate) SmeltInfo() item.SmeltInfo

func (Deepslate) UseOnBlock

func (d Deepslate) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (Deepslate) WithAxis

func (b Deepslate) WithAxis(axis cube.Axis) world.Block

type DeepslateBricks

type DeepslateBricks struct {
	Cracked bool
	// contains filtered or unexported fields
}

func (DeepslateBricks) BreakInfo

func (d DeepslateBricks) BreakInfo() BreakInfo

func (DeepslateBricks) EncodeBlock

func (d DeepslateBricks) EncodeBlock() (string, map[string]any)

func (DeepslateBricks) EncodeItem

func (d DeepslateBricks) EncodeItem() (name string, meta int16)

func (DeepslateBricks) Hash

func (d DeepslateBricks) Hash() (uint64, uint64)

func (DeepslateBricks) Instrument

func (DeepslateBricks) Instrument() sound.Instrument

func (DeepslateBricks) Model

func (DeepslateBricks) Model() world.BlockModel

func (DeepslateBricks) SmeltInfo

func (d DeepslateBricks) SmeltInfo() item.SmeltInfo

type DeepslateTiles

type DeepslateTiles struct {
	Cracked bool
	// contains filtered or unexported fields
}

func (DeepslateTiles) BreakInfo

func (d DeepslateTiles) BreakInfo() BreakInfo

func (DeepslateTiles) EncodeBlock

func (d DeepslateTiles) EncodeBlock() (string, map[string]any)

func (DeepslateTiles) EncodeItem

func (d DeepslateTiles) EncodeItem() (name string, meta int16)

func (DeepslateTiles) Hash

func (d DeepslateTiles) Hash() (uint64, uint64)

func (DeepslateTiles) Instrument

func (DeepslateTiles) Instrument() sound.Instrument

func (DeepslateTiles) Model

func (DeepslateTiles) Model() world.BlockModel

func (DeepslateTiles) SmeltInfo

func (d DeepslateTiles) SmeltInfo() item.SmeltInfo

type DeepslateType

type DeepslateType struct {
	// contains filtered or unexported fields
}

func ChiseledDeepslate

func ChiseledDeepslate() DeepslateType

func CobbledDeepslate

func CobbledDeepslate() DeepslateType

func DeepslateTypes

func DeepslateTypes() []DeepslateType

func NormalDeepslate

func NormalDeepslate() DeepslateType

func PolishedDeepslate

func PolishedDeepslate() DeepslateType

func (DeepslateType) Name

func (s DeepslateType) Name() string

func (DeepslateType) String

func (s DeepslateType) String() string

func (DeepslateType) Uint8

func (s DeepslateType) Uint8() uint8

type Diamond

type Diamond struct {
	// contains filtered or unexported fields
}

func (Diamond) BreakInfo

func (d Diamond) BreakInfo() BreakInfo

func (Diamond) EncodeBlock

func (Diamond) EncodeBlock() (string, map[string]any)

func (Diamond) EncodeItem

func (Diamond) EncodeItem() (name string, meta int16)

func (Diamond) Hash

func (Diamond) Hash() (uint64, uint64)

func (Diamond) Model

func (Diamond) Model() world.BlockModel

func (Diamond) PowersBeacon

func (Diamond) PowersBeacon() bool

type DiamondOre

type DiamondOre struct {
	Type OreType
	// contains filtered or unexported fields
}

func (DiamondOre) BreakInfo

func (d DiamondOre) BreakInfo() BreakInfo

func (DiamondOre) EncodeBlock

func (d DiamondOre) EncodeBlock() (string, map[string]any)

func (DiamondOre) EncodeItem

func (d DiamondOre) EncodeItem() (name string, meta int16)

func (DiamondOre) Hash

func (d DiamondOre) Hash() (uint64, uint64)

func (DiamondOre) Instrument

func (DiamondOre) Instrument() sound.Instrument

func (DiamondOre) Model

func (DiamondOre) Model() world.BlockModel

func (DiamondOre) SmeltInfo

func (DiamondOre) SmeltInfo() item.SmeltInfo

type Diorite

type Diorite polishable

func (Diorite) BreakInfo

func (d Diorite) BreakInfo() BreakInfo

func (Diorite) EncodeBlock

func (d Diorite) EncodeBlock() (string, map[string]any)

func (Diorite) EncodeItem

func (d Diorite) EncodeItem() (name string, meta int16)

func (Diorite) Hash

func (d Diorite) Hash() (uint64, uint64)

type Dirt

type Dirt struct {
	Coarse bool
	// contains filtered or unexported fields
}

func (Dirt) BreakInfo

func (d Dirt) BreakInfo() BreakInfo

func (Dirt) EncodeBlock

func (d Dirt) EncodeBlock() (string, map[string]any)

func (Dirt) EncodeItem

func (d Dirt) EncodeItem() (name string, meta int16)

func (Dirt) Hash

func (d Dirt) Hash() (uint64, uint64)

func (Dirt) Model

func (Dirt) Model() world.BlockModel

func (Dirt) Shovel

func (d Dirt) Shovel() (world.Block, bool)

func (Dirt) SoilFor

func (d Dirt) SoilFor(block world.Block) bool

func (Dirt) Till

func (d Dirt) Till() (world.Block, bool)

type DirtPath

type DirtPath struct {
	// contains filtered or unexported fields
}

func (DirtPath) BreakInfo

func (p DirtPath) BreakInfo() BreakInfo

func (DirtPath) EncodeBlock

func (DirtPath) EncodeBlock() (string, map[string]any)

func (DirtPath) EncodeItem

func (DirtPath) EncodeItem() (name string, meta int16)

func (DirtPath) Hash

func (DirtPath) Hash() (uint64, uint64)

func (DirtPath) LightDiffusionLevel

func (DirtPath) LightDiffusionLevel() uint8

func (DirtPath) Model

func (DirtPath) Model() world.BlockModel

func (DirtPath) NeighbourUpdateTick

func (p DirtPath) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (DirtPath) Till

func (p DirtPath) Till() (world.Block, bool)

type DoubleFlower

type DoubleFlower struct {
	UpperPart bool

	Type DoubleFlowerType
	// contains filtered or unexported fields
}

func (DoubleFlower) BoneMeal

func (d DoubleFlower) BoneMeal(pos cube.Pos, tx *world.Tx) item.BoneMealResult

func (DoubleFlower) BreakInfo

func (d DoubleFlower) BreakInfo() BreakInfo

func (DoubleFlower) CompostChance

func (DoubleFlower) CompostChance() float64

func (DoubleFlower) EncodeBlock

func (d DoubleFlower) EncodeBlock() (string, map[string]any)

func (DoubleFlower) EncodeItem

func (d DoubleFlower) EncodeItem() (name string, meta int16)

func (DoubleFlower) FlammabilityInfo

func (d DoubleFlower) FlammabilityInfo() FlammabilityInfo

func (DoubleFlower) HasLiquidDrops

func (d DoubleFlower) HasLiquidDrops() bool

func (DoubleFlower) Hash

func (d DoubleFlower) Hash() (uint64, uint64)

func (DoubleFlower) LightDiffusionLevel

func (DoubleFlower) LightDiffusionLevel() uint8

func (DoubleFlower) Model

func (DoubleFlower) Model() world.BlockModel

func (DoubleFlower) NeighbourUpdateTick

func (d DoubleFlower) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (DoubleFlower) UseOnBlock

func (d DoubleFlower) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type DoubleFlowerType

type DoubleFlowerType struct {
	// contains filtered or unexported fields
}

func DoubleFlowerTypes

func DoubleFlowerTypes() []DoubleFlowerType

func Lilac

func Lilac() DoubleFlowerType

func Peony

func Peony() DoubleFlowerType

func RoseBush

func RoseBush() DoubleFlowerType

func Sunflower

func Sunflower() DoubleFlowerType

func (DoubleFlowerType) Name

func (d DoubleFlowerType) Name() string

func (DoubleFlowerType) String

func (d DoubleFlowerType) String() string

func (DoubleFlowerType) Uint8

func (d DoubleFlowerType) Uint8() uint8

type DoubleTallGrass

type DoubleTallGrass struct {
	UpperPart bool

	Type DoubleTallGrassType
	// contains filtered or unexported fields
}

func (DoubleTallGrass) BreakInfo

func (d DoubleTallGrass) BreakInfo() BreakInfo

func (DoubleTallGrass) CompostChance

func (d DoubleTallGrass) CompostChance() float64

func (DoubleTallGrass) EncodeBlock

func (d DoubleTallGrass) EncodeBlock() (string, map[string]any)

func (DoubleTallGrass) EncodeItem

func (d DoubleTallGrass) EncodeItem() (name string, meta int16)

func (DoubleTallGrass) FlammabilityInfo

func (d DoubleTallGrass) FlammabilityInfo() FlammabilityInfo

func (DoubleTallGrass) HasLiquidDrops

func (d DoubleTallGrass) HasLiquidDrops() bool

func (DoubleTallGrass) Hash

func (d DoubleTallGrass) Hash() (uint64, uint64)

func (DoubleTallGrass) LightDiffusionLevel

func (DoubleTallGrass) LightDiffusionLevel() uint8

func (DoubleTallGrass) Model

func (DoubleTallGrass) Model() world.BlockModel

func (DoubleTallGrass) NeighbourUpdateTick

func (d DoubleTallGrass) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (DoubleTallGrass) ReplaceableBy

func (DoubleTallGrass) ReplaceableBy(world.Block) bool

func (DoubleTallGrass) UseOnBlock

func (d DoubleTallGrass) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type DoubleTallGrassType

type DoubleTallGrassType struct {
	// contains filtered or unexported fields
}

func DoubleTallGrassTypes

func DoubleTallGrassTypes() []DoubleTallGrassType

func FernDoubleTallGrass

func FernDoubleTallGrass() DoubleTallGrassType

func NormalDoubleTallGrass

func NormalDoubleTallGrass() DoubleTallGrassType

func (DoubleTallGrassType) Name

func (t DoubleTallGrassType) Name() string

func (DoubleTallGrassType) String

func (t DoubleTallGrassType) String() string

func (DoubleTallGrassType) Uint8

func (t DoubleTallGrassType) Uint8() uint8

type DragonEgg

type DragonEgg struct {
	// contains filtered or unexported fields
}

func (DragonEgg) Activate

func (d DragonEgg) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, _ item.User, _ *item.UseContext) bool

func (DragonEgg) BreakInfo

func (d DragonEgg) BreakInfo() BreakInfo

func (DragonEgg) CanDisplace

func (s DragonEgg) CanDisplace(b world.Liquid) bool

func (DragonEgg) EncodeBlock

func (DragonEgg) EncodeBlock() (string, map[string]any)

func (DragonEgg) EncodeItem

func (DragonEgg) EncodeItem() (name string, meta int16)

func (DragonEgg) Hash

func (DragonEgg) Hash() (uint64, uint64)

func (DragonEgg) LightDiffusionLevel

func (DragonEgg) LightDiffusionLevel() uint8

func (DragonEgg) LightEmissionLevel

func (d DragonEgg) LightEmissionLevel() uint8

func (DragonEgg) Model

func (DragonEgg) Model() world.BlockModel

func (DragonEgg) NeighbourUpdateTick

func (d DragonEgg) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (DragonEgg) Punch

func (d DragonEgg) Punch(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User)

func (DragonEgg) SideClosed

func (d DragonEgg) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (DragonEgg) Solidifies

func (g DragonEgg) Solidifies(cube.Pos, *world.Tx) bool

type DriedKelp

type DriedKelp struct {
	// contains filtered or unexported fields
}

func (DriedKelp) BreakInfo

func (d DriedKelp) BreakInfo() BreakInfo

func (DriedKelp) CompostChance

func (DriedKelp) CompostChance() float64

func (DriedKelp) EncodeBlock

func (DriedKelp) EncodeBlock() (string, map[string]any)

func (DriedKelp) EncodeItem

func (DriedKelp) EncodeItem() (name string, meta int16)

func (DriedKelp) FlammabilityInfo

func (DriedKelp) FlammabilityInfo() FlammabilityInfo

func (DriedKelp) FuelInfo

func (DriedKelp) FuelInfo() item.FuelInfo

func (DriedKelp) Hash

func (DriedKelp) Hash() (uint64, uint64)

func (DriedKelp) Model

func (DriedKelp) Model() world.BlockModel

type Dripstone

type Dripstone struct {
	// contains filtered or unexported fields
}

func (Dripstone) BreakInfo

func (d Dripstone) BreakInfo() BreakInfo

func (Dripstone) EncodeBlock

func (d Dripstone) EncodeBlock() (string, map[string]any)

func (Dripstone) EncodeItem

func (d Dripstone) EncodeItem() (name string, meta int16)

func (Dripstone) Hash

func (Dripstone) Hash() (uint64, uint64)

func (Dripstone) Instrument

func (Dripstone) Instrument() sound.Instrument

func (Dripstone) Model

func (Dripstone) Model() world.BlockModel

type Emerald

type Emerald struct {
	// contains filtered or unexported fields
}

func (Emerald) BreakInfo

func (e Emerald) BreakInfo() BreakInfo

func (Emerald) EncodeBlock

func (Emerald) EncodeBlock() (string, map[string]any)

func (Emerald) EncodeItem

func (Emerald) EncodeItem() (name string, meta int16)

func (Emerald) Hash

func (Emerald) Hash() (uint64, uint64)

func (Emerald) Instrument

func (e Emerald) Instrument() sound.Instrument

func (Emerald) Model

func (Emerald) Model() world.BlockModel

func (Emerald) PowersBeacon

func (Emerald) PowersBeacon() bool

type EmeraldOre

type EmeraldOre struct {
	Type OreType
	// contains filtered or unexported fields
}

func (EmeraldOre) BreakInfo

func (e EmeraldOre) BreakInfo() BreakInfo

func (EmeraldOre) EncodeBlock

func (e EmeraldOre) EncodeBlock() (string, map[string]any)

func (EmeraldOre) EncodeItem

func (e EmeraldOre) EncodeItem() (name string, meta int16)

func (EmeraldOre) Hash

func (e EmeraldOre) Hash() (uint64, uint64)

func (EmeraldOre) Instrument

func (EmeraldOre) Instrument() sound.Instrument

func (EmeraldOre) Model

func (EmeraldOre) Model() world.BlockModel

func (EmeraldOre) SmeltInfo

func (EmeraldOre) SmeltInfo() item.SmeltInfo

type EnchantingTable

type EnchantingTable struct {
	// contains filtered or unexported fields
}

func (EnchantingTable) Activate

func (EnchantingTable) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (EnchantingTable) BreakInfo

func (e EnchantingTable) BreakInfo() BreakInfo

func (EnchantingTable) CanDisplace

func (s EnchantingTable) CanDisplace(b world.Liquid) bool

func (EnchantingTable) DecodeNBT

func (e EnchantingTable) DecodeNBT(map[string]any) any

func (EnchantingTable) EncodeBlock

func (EnchantingTable) EncodeBlock() (string, map[string]any)

func (EnchantingTable) EncodeItem

func (EnchantingTable) EncodeItem() (name string, meta int16)

func (EnchantingTable) EncodeNBT

func (e EnchantingTable) EncodeNBT() map[string]any

func (EnchantingTable) Hash

func (EnchantingTable) Hash() (uint64, uint64)

func (EnchantingTable) Instrument

func (EnchantingTable) Instrument() sound.Instrument

func (EnchantingTable) LightDiffusionLevel

func (EnchantingTable) LightDiffusionLevel() uint8

func (EnchantingTable) LightEmissionLevel

func (EnchantingTable) LightEmissionLevel() uint8

func (EnchantingTable) Model

func (e EnchantingTable) Model() world.BlockModel

func (EnchantingTable) SideClosed

func (EnchantingTable) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

type EndBricks

type EndBricks struct {
	// contains filtered or unexported fields
}

func (EndBricks) BreakInfo

func (e EndBricks) BreakInfo() BreakInfo

func (EndBricks) EncodeBlock

func (EndBricks) EncodeBlock() (string, map[string]any)

func (EndBricks) EncodeItem

func (EndBricks) EncodeItem() (name string, meta int16)

func (EndBricks) Hash

func (EndBricks) Hash() (uint64, uint64)

func (EndBricks) Instrument

func (EndBricks) Instrument() sound.Instrument

func (EndBricks) Model

func (EndBricks) Model() world.BlockModel

type EndPortal

type EndPortal struct {
	// contains filtered or unexported fields
}

func (EndPortal) DecodeNBT

func (e EndPortal) DecodeNBT(map[string]any) any

func (EndPortal) EncodeBlock

func (EndPortal) EncodeBlock() (string, map[string]any)

func (EndPortal) EncodeNBT

func (EndPortal) EncodeNBT() map[string]any

func (EndPortal) EntityInside

func (EndPortal) EntityInside(_ cube.Pos, tx *world.Tx, e world.Entity)

func (EndPortal) HasLiquidDrops

func (EndPortal) HasLiquidDrops() bool

func (EndPortal) Hash

func (EndPortal) Hash() (uint64, uint64)

func (EndPortal) LightDiffusionLevel

func (EndPortal) LightDiffusionLevel() uint8

func (EndPortal) LightEmissionLevel

func (EndPortal) LightEmissionLevel() uint8

func (EndPortal) Model

func (EndPortal) Model() world.BlockModel

func (EndPortal) NeighbourUpdateTick

func (EndPortal) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (EndPortal) Portal

func (EndPortal) Portal() world.Dimension

type EndPortalFrame

type EndPortalFrame struct {
	Eye bool

	Facing cube.Direction
	// contains filtered or unexported fields
}

func (EndPortalFrame) DecodeNBT

func (f EndPortalFrame) DecodeNBT(map[string]any) any

func (EndPortalFrame) EncodeBlock

func (f EndPortalFrame) EncodeBlock() (string, map[string]any)

func (EndPortalFrame) EncodeItem

func (EndPortalFrame) EncodeItem() (name string, meta int16)

func (EndPortalFrame) EncodeNBT

func (EndPortalFrame) EncodeNBT() map[string]any

func (EndPortalFrame) EndPortalFrameState

func (f EndPortalFrame) EndPortalFrameState() (eye bool, facing cube.Direction)

func (EndPortalFrame) FacingDirection

func (b EndPortalFrame) FacingDirection() cube.Direction

func (EndPortalFrame) Hash

func (f EndPortalFrame) Hash() (uint64, uint64)

func (EndPortalFrame) InsertEndPortalEye

func (f EndPortalFrame) InsertEndPortalEye() (world.Block, bool)

func (EndPortalFrame) Instrument

func (EndPortalFrame) Instrument() sound.Instrument

func (EndPortalFrame) LightEmissionLevel

func (EndPortalFrame) LightEmissionLevel() uint8

func (EndPortalFrame) Model

func (f EndPortalFrame) Model() world.BlockModel

func (EndPortalFrame) UseOnBlock

func (f EndPortalFrame) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

func (EndPortalFrame) WithFacing

func (b EndPortalFrame) WithFacing(facing cube.Direction) world.Block

type EndRod

type EndRod struct {
	Facing cube.Face
	// contains filtered or unexported fields
}

func (EndRod) BreakInfo

func (e EndRod) BreakInfo() BreakInfo

func (EndRod) CanDisplace

func (s EndRod) CanDisplace(b world.Liquid) bool

func (EndRod) EncodeBlock

func (e EndRod) EncodeBlock() (string, map[string]any)

func (EndRod) EncodeItem

func (EndRod) EncodeItem() (name string, meta int16)

func (EndRod) Hash

func (e EndRod) Hash() (uint64, uint64)

func (EndRod) LightDiffusionLevel

func (EndRod) LightDiffusionLevel() uint8

func (EndRod) LightEmissionLevel

func (EndRod) LightEmissionLevel() uint8

func (EndRod) Model

func (e EndRod) Model() world.BlockModel

func (EndRod) SideClosed

func (EndRod) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (EndRod) UseOnBlock

func (e EndRod) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type EndStone

type EndStone struct {
	// contains filtered or unexported fields
}

func (EndStone) BreakInfo

func (e EndStone) BreakInfo() BreakInfo

func (EndStone) EncodeBlock

func (EndStone) EncodeBlock() (string, map[string]any)

func (EndStone) EncodeItem

func (EndStone) EncodeItem() (name string, meta int16)

func (EndStone) Hash

func (EndStone) Hash() (uint64, uint64)

func (EndStone) Instrument

func (EndStone) Instrument() sound.Instrument

func (EndStone) Model

func (EndStone) Model() world.BlockModel

type EnderChest

type EnderChest struct {
	Facing cube.Direction
	// contains filtered or unexported fields
}

func NewEnderChest

func NewEnderChest() EnderChest

func (EnderChest) Activate

func (c EnderChest) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (EnderChest) AddViewer

func (c EnderChest) AddViewer(tx *world.Tx, pos cube.Pos)

func (EnderChest) BreakInfo

func (c EnderChest) BreakInfo() BreakInfo

func (EnderChest) CanDisplace

func (s EnderChest) CanDisplace(b world.Liquid) bool

func (EnderChest) DecodeNBT

func (c EnderChest) DecodeNBT(map[string]interface{}) interface{}

func (EnderChest) EncodeBlock

func (c EnderChest) EncodeBlock() (name string, properties map[string]interface{})

func (EnderChest) EncodeItem

func (EnderChest) EncodeItem() (name string, meta int16)

func (EnderChest) EncodeNBT

func (c EnderChest) EncodeNBT() map[string]interface{}

func (EnderChest) FacingDirection

func (b EnderChest) FacingDirection() cube.Direction

func (EnderChest) Hash

func (c EnderChest) Hash() (uint64, uint64)

func (EnderChest) Instrument

func (EnderChest) Instrument() sound.Instrument

func (EnderChest) LightDiffusionLevel

func (EnderChest) LightDiffusionLevel() uint8

func (EnderChest) LightEmissionLevel

func (c EnderChest) LightEmissionLevel() uint8

func (EnderChest) Model

func (EnderChest) Model() world.BlockModel

func (EnderChest) RemoveViewer

func (c EnderChest) RemoveViewer(tx *world.Tx, pos cube.Pos)

func (EnderChest) SideClosed

func (EnderChest) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (EnderChest) UseOnBlock

func (c EnderChest) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (EnderChest) WithFacing

func (b EnderChest) WithFacing(facing cube.Direction) world.Block

type EntityInsider

type EntityInsider interface {
	EntityInside(pos cube.Pos, tx *world.Tx, e world.Entity)
}

type EntityLander

type EntityLander interface {
	EntityLand(pos cube.Pos, tx *world.Tx, e world.Entity, distance *float64)
}

type EntityStepper

type EntityStepper interface {
	EntityStepOn(pos cube.Pos, tx *world.Tx, e world.Entity)
}

type Explodable

type Explodable interface {
	Explode(explosionPos mgl64.Vec3, pos cube.Pos, tx *world.Tx, c ExplosionConfig)
}

type ExplodableEntity

type ExplodableEntity interface {
	Explode(explosionPos mgl64.Vec3, impact float64, c ExplosionConfig)
}

type ExplosionConfig

type ExplosionConfig struct {
	Size float64

	RandSource rand.Source

	SpawnFire bool

	ItemDropChance float64

	Sound world.Sound

	Particle world.Particle
}

func (ExplosionConfig) Explode

func (c ExplosionConfig) Explode(tx *world.Tx, explosionPos mgl64.Vec3)

type Farmland

type Farmland struct {
	Hydration int
	// contains filtered or unexported fields
}

func (Farmland) BreakInfo

func (f Farmland) BreakInfo() BreakInfo

func (Farmland) EncodeBlock

func (f Farmland) EncodeBlock() (name string, properties map[string]any)

func (Farmland) EncodeItem

func (f Farmland) EncodeItem() (name string, meta int16)

func (Farmland) EntityLand

func (f Farmland) EntityLand(pos cube.Pos, tx *world.Tx, e world.Entity, _ *float64)

func (Farmland) Hash

func (f Farmland) Hash() (uint64, uint64)

func (Farmland) Model

func (Farmland) Model() world.BlockModel

func (Farmland) NeighbourUpdateTick

func (f Farmland) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Farmland) RandomTick

func (f Farmland) RandomTick(pos cube.Pos, tx *world.Tx, _ *rand.Rand)

func (Farmland) SoilFor

func (f Farmland) SoilFor(block world.Block) bool

type Fern

type Fern struct {
	// contains filtered or unexported fields
}

func (Fern) BoneMeal

func (g Fern) BoneMeal(pos cube.Pos, tx *world.Tx) item.BoneMealResult

func (Fern) BreakInfo

func (g Fern) BreakInfo() BreakInfo

func (Fern) CompostChance

func (g Fern) CompostChance() float64

func (Fern) EncodeBlock

func (g Fern) EncodeBlock() (name string, properties map[string]any)

func (Fern) EncodeItem

func (g Fern) EncodeItem() (name string, meta int16)

func (Fern) FlammabilityInfo

func (g Fern) FlammabilityInfo() FlammabilityInfo

func (Fern) HasLiquidDrops

func (g Fern) HasLiquidDrops() bool

func (Fern) Hash

func (Fern) Hash() (uint64, uint64)

func (Fern) LightDiffusionLevel

func (Fern) LightDiffusionLevel() uint8

func (Fern) Model

func (Fern) Model() world.BlockModel

func (Fern) NeighbourUpdateTick

func (g Fern) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Fern) ReplaceableBy

func (Fern) ReplaceableBy(world.Block) bool

func (Fern) UseOnBlock

func (g Fern) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type Fire

type Fire struct {
	Type FireType

	Age int
	// contains filtered or unexported fields
}

func (Fire) EncodeBlock

func (f Fire) EncodeBlock() (name string, properties map[string]any)

func (Fire) EntityInside

func (f Fire) EntityInside(_ cube.Pos, _ *world.Tx, e world.Entity)

func (Fire) HasLiquidDrops

func (f Fire) HasLiquidDrops() bool

func (Fire) Hash

func (f Fire) Hash() (uint64, uint64)

func (Fire) LightDiffusionLevel

func (Fire) LightDiffusionLevel() uint8

func (Fire) LightEmissionLevel

func (f Fire) LightEmissionLevel() uint8

func (Fire) Model

func (Fire) Model() world.BlockModel

func (Fire) NeighbourUpdateTick

func (f Fire) NeighbourUpdateTick(pos, changedNeighbour cube.Pos, tx *world.Tx)

func (Fire) PortalInterior

func (f Fire) PortalInterior(target world.Dimension) bool

func (Fire) RandomTick

func (f Fire) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (Fire) ReplaceableBy

func (Fire) ReplaceableBy(world.Block) bool

func (Fire) ScheduledTick

func (f Fire) ScheduledTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (Fire) Start

func (f Fire) Start(tx *world.Tx, pos cube.Pos)

type FireDamageSource

type FireDamageSource struct{}

func (FireDamageSource) AffectedByEnchantment

func (FireDamageSource) AffectedByEnchantment(e item.EnchantmentType) bool

func (FireDamageSource) Fire

func (FireDamageSource) Fire() bool

func (FireDamageSource) IgnoreTotem

func (FireDamageSource) IgnoreTotem() bool

func (FireDamageSource) ReducedByArmour

func (FireDamageSource) ReducedByArmour() bool

func (FireDamageSource) ReducedByResistance

func (FireDamageSource) ReducedByResistance() bool

type FireType

type FireType struct {
	// contains filtered or unexported fields
}

func FireTypes

func FireTypes() []FireType

func NormalFire

func NormalFire() FireType

func SoulFire

func SoulFire() FireType

func (FireType) Damage

func (f FireType) Damage() float64

func (FireType) LightLevel

func (f FireType) LightLevel() uint8

func (FireType) Name

func (f FireType) Name() string

func (FireType) String

func (f FireType) String() string

func (FireType) Uint8

func (f FireType) Uint8() uint8

type FlammabilityInfo

type FlammabilityInfo struct {
	Encouragement int

	Flammability int

	LavaFlammable bool
}

type Flammable

type Flammable interface {
	FlammabilityInfo() FlammabilityInfo
}

type FletchingTable

type FletchingTable struct {
	// contains filtered or unexported fields
}

func (FletchingTable) BreakInfo

func (f FletchingTable) BreakInfo() BreakInfo

func (FletchingTable) EncodeBlock

func (FletchingTable) EncodeBlock() (string, map[string]any)

func (FletchingTable) EncodeItem

func (FletchingTable) EncodeItem() (string, int16)

func (FletchingTable) FuelInfo

func (FletchingTable) FuelInfo() item.FuelInfo

func (FletchingTable) Hash

func (FletchingTable) Hash() (uint64, uint64)

func (FletchingTable) Instrument

func (FletchingTable) Instrument() sound.Instrument

func (FletchingTable) Model

func (FletchingTable) Model() world.BlockModel

type Flower

type Flower struct {
	Type FlowerType
	// contains filtered or unexported fields
}

func (Flower) BoneMeal

func (f Flower) BoneMeal(pos cube.Pos, tx *world.Tx) (result item.BoneMealResult)

func (Flower) BreakInfo

func (f Flower) BreakInfo() BreakInfo

func (Flower) CompostChance

func (Flower) CompostChance() float64

func (Flower) EncodeBlock

func (f Flower) EncodeBlock() (string, map[string]any)

func (Flower) EncodeItem

func (f Flower) EncodeItem() (name string, meta int16)

func (Flower) EntityInside

func (f Flower) EntityInside(_ cube.Pos, _ *world.Tx, e world.Entity)

func (Flower) FlammabilityInfo

func (f Flower) FlammabilityInfo() FlammabilityInfo

func (Flower) HasLiquidDrops

func (Flower) HasLiquidDrops() bool

func (Flower) Hash

func (f Flower) Hash() (uint64, uint64)

func (Flower) LightDiffusionLevel

func (Flower) LightDiffusionLevel() uint8

func (Flower) Model

func (Flower) Model() world.BlockModel

func (Flower) NeighbourUpdateTick

func (f Flower) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Flower) UseOnBlock

func (f Flower) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type FlowerType

type FlowerType struct {
	// contains filtered or unexported fields
}

func Allium

func Allium() FlowerType

func AzureBluet

func AzureBluet() FlowerType

func BlueOrchid

func BlueOrchid() FlowerType

func Cornflower

func Cornflower() FlowerType

func Dandelion

func Dandelion() FlowerType

func FlowerTypes

func FlowerTypes() []FlowerType

func LilyOfTheValley

func LilyOfTheValley() FlowerType

func OrangeTulip

func OrangeTulip() FlowerType

func OxeyeDaisy

func OxeyeDaisy() FlowerType

func PinkTulip

func PinkTulip() FlowerType

func Poppy

func Poppy() FlowerType

func RedTulip

func RedTulip() FlowerType

func WhiteTulip

func WhiteTulip() FlowerType

func WitherRose

func WitherRose() FlowerType

func (FlowerType) Name

func (f FlowerType) Name() string

func (FlowerType) String

func (f FlowerType) String() string

func (FlowerType) Uint8

func (f FlowerType) Uint8() uint8

type Frictional

type Frictional interface {
	Friction() float64
}

type Froglight

type Froglight struct {
	Type FroglightType

	Axis cube.Axis
	// contains filtered or unexported fields
}

func (Froglight) BreakInfo

func (f Froglight) BreakInfo() BreakInfo

func (Froglight) EncodeBlock

func (f Froglight) EncodeBlock() (name string, properties map[string]any)

func (Froglight) EncodeItem

func (f Froglight) EncodeItem() (name string, meta int16)

func (Froglight) Hash

func (f Froglight) Hash() (uint64, uint64)

func (Froglight) LightEmissionLevel

func (f Froglight) LightEmissionLevel() uint8

func (Froglight) Model

func (Froglight) Model() world.BlockModel

func (Froglight) PillarAxis

func (b Froglight) PillarAxis() cube.Axis

func (Froglight) UseOnBlock

func (f Froglight) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (Froglight) WithAxis

func (b Froglight) WithAxis(axis cube.Axis) world.Block

type FroglightType

type FroglightType struct {
	// contains filtered or unexported fields
}

func FroglightTypes

func FroglightTypes() []FroglightType

func Ochre

func Ochre() FroglightType

func Pearlescent

func Pearlescent() FroglightType

func Verdant

func Verdant() FroglightType

func (FroglightType) Name

func (f FroglightType) Name() string

func (FroglightType) String

func (f FroglightType) String() string

func (FroglightType) Uint8

func (f FroglightType) Uint8() uint8

type Furnace

type Furnace struct {
	Facing cube.Direction

	Lit bool
	// contains filtered or unexported fields
}

func NewFurnace

func NewFurnace(face cube.Direction) Furnace

func (Furnace) Activate

func (f Furnace) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (Furnace) AddViewer

func (s Furnace) AddViewer(v ContainerViewer, _ *world.Tx, _ cube.Pos)

func (Furnace) BreakInfo

func (f Furnace) BreakInfo() BreakInfo

func (Furnace) DecodeNBT

func (f Furnace) DecodeNBT(data map[string]interface{}) interface{}

func (Furnace) Durations

func (s Furnace) Durations() (remaining time.Duration, max time.Duration, cook time.Duration)

func (Furnace) EncodeBlock

func (f Furnace) EncodeBlock() (name string, properties map[string]interface{})

func (Furnace) EncodeItem

func (f Furnace) EncodeItem() (name string, meta int16)

func (Furnace) EncodeNBT

func (f Furnace) EncodeNBT() map[string]interface{}

func (Furnace) Experience

func (s Furnace) Experience() int

func (Furnace) ExtractItem

func (s Furnace) ExtractItem(h Hopper, pos cube.Pos, tx *world.Tx) bool

func (Furnace) FacingDirection

func (b Furnace) FacingDirection() cube.Direction

func (Furnace) Hash

func (f Furnace) Hash() (uint64, uint64)

func (Furnace) InsertItem

func (s Furnace) InsertItem(h Hopper, pos cube.Pos, tx *world.Tx) bool

func (Furnace) Instrument

func (Furnace) Instrument() sound.Instrument

func (Furnace) Inventory

func (s Furnace) Inventory(*world.Tx, cube.Pos) *inventory.Inventory

func (Furnace) LightEmissionLevel

func (f Furnace) LightEmissionLevel() uint8

func (Furnace) Model

func (Furnace) Model() world.BlockModel

func (Furnace) RemoveViewer

func (s Furnace) RemoveViewer(v ContainerViewer, _ *world.Tx, _ cube.Pos)

func (Furnace) ResetExperience

func (s Furnace) ResetExperience() int

func (Furnace) Tick

func (f Furnace) Tick(_ int64, pos cube.Pos, tx *world.Tx)

func (Furnace) UseOnBlock

func (f Furnace) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

func (Furnace) WithFacing

func (b Furnace) WithFacing(facing cube.Direction) world.Block

type Glass

type Glass struct {
	// contains filtered or unexported fields
}

func (Glass) BreakInfo

func (g Glass) BreakInfo() BreakInfo

func (Glass) EncodeBlock

func (Glass) EncodeBlock() (string, map[string]any)

func (Glass) EncodeItem

func (Glass) EncodeItem() (name string, meta int16)

func (Glass) Hash

func (Glass) Hash() (uint64, uint64)

func (Glass) Instrument

func (Glass) Instrument() sound.Instrument

func (Glass) LightDiffusionLevel

func (Glass) LightDiffusionLevel() uint8

func (Glass) Model

func (Glass) Model() world.BlockModel

type GlassPane

type GlassPane struct {
	// contains filtered or unexported fields
}

func (GlassPane) BreakInfo

func (p GlassPane) BreakInfo() BreakInfo

func (GlassPane) CanDisplace

func (s GlassPane) CanDisplace(b world.Liquid) bool

func (GlassPane) EncodeBlock

func (GlassPane) EncodeBlock() (string, map[string]any)

func (GlassPane) EncodeItem

func (GlassPane) EncodeItem() (name string, meta int16)

func (GlassPane) Hash

func (GlassPane) Hash() (uint64, uint64)

func (GlassPane) Instrument

func (GlassPane) Instrument() sound.Instrument

func (GlassPane) LightDiffusionLevel

func (GlassPane) LightDiffusionLevel() uint8

func (GlassPane) Model

func (GlassPane) Model() world.BlockModel

func (GlassPane) SideClosed

func (p GlassPane) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

type GlazedTerracotta

type GlazedTerracotta struct {
	Colour item.Colour

	Facing cube.Direction
	// contains filtered or unexported fields
}

func (GlazedTerracotta) BreakInfo

func (t GlazedTerracotta) BreakInfo() BreakInfo

func (GlazedTerracotta) DyeColour

func (b GlazedTerracotta) DyeColour() item.Colour

func (GlazedTerracotta) EncodeBlock

func (t GlazedTerracotta) EncodeBlock() (name string, properties map[string]any)

func (GlazedTerracotta) EncodeItem

func (t GlazedTerracotta) EncodeItem() (name string, meta int16)

func (GlazedTerracotta) FacingDirection

func (b GlazedTerracotta) FacingDirection() cube.Direction

func (GlazedTerracotta) Hash

func (t GlazedTerracotta) Hash() (uint64, uint64)

func (GlazedTerracotta) Instrument

func (GlazedTerracotta) Instrument() sound.Instrument

func (GlazedTerracotta) Model

func (GlazedTerracotta) Model() world.BlockModel

func (GlazedTerracotta) UseOnBlock

func (t GlazedTerracotta) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (GlazedTerracotta) WithColour

func (b GlazedTerracotta) WithColour(colour item.Colour) world.Block

func (GlazedTerracotta) WithFacing

func (b GlazedTerracotta) WithFacing(facing cube.Direction) world.Block

type Glowstone

type Glowstone struct {
	// contains filtered or unexported fields
}

func (Glowstone) BreakInfo

func (g Glowstone) BreakInfo() BreakInfo

func (Glowstone) CanRedstoneWireStepDown

func (Glowstone) CanRedstoneWireStepDown(cube.Pos, cube.Pos, *world.Tx) bool

func (Glowstone) EncodeBlock

func (Glowstone) EncodeBlock() (string, map[string]any)

func (Glowstone) EncodeItem

func (Glowstone) EncodeItem() (name string, meta int16)

func (Glowstone) Hash

func (Glowstone) Hash() (uint64, uint64)

func (Glowstone) Instrument

func (g Glowstone) Instrument() sound.Instrument

func (Glowstone) LightEmissionLevel

func (Glowstone) LightEmissionLevel() uint8

func (Glowstone) Model

func (Glowstone) Model() world.BlockModel

func (Glowstone) RedstoneNonConductive

func (Glowstone) RedstoneNonConductive()

type Gold

type Gold struct {
	// contains filtered or unexported fields
}

func (Gold) BreakInfo

func (g Gold) BreakInfo() BreakInfo

func (Gold) EncodeBlock

func (Gold) EncodeBlock() (string, map[string]any)

func (Gold) EncodeItem

func (Gold) EncodeItem() (name string, meta int16)

func (Gold) Hash

func (Gold) Hash() (uint64, uint64)

func (Gold) Instrument

func (g Gold) Instrument() sound.Instrument

func (Gold) Model

func (Gold) Model() world.BlockModel

func (Gold) PowersBeacon

func (Gold) PowersBeacon() bool

type GoldOre

type GoldOre struct {
	Type OreType
	// contains filtered or unexported fields
}

func (GoldOre) BreakInfo

func (g GoldOre) BreakInfo() BreakInfo

func (GoldOre) EncodeBlock

func (g GoldOre) EncodeBlock() (string, map[string]any)

func (GoldOre) EncodeItem

func (g GoldOre) EncodeItem() (name string, meta int16)

func (GoldOre) Hash

func (g GoldOre) Hash() (uint64, uint64)

func (GoldOre) Instrument

func (GoldOre) Instrument() sound.Instrument

func (GoldOre) Model

func (GoldOre) Model() world.BlockModel

func (GoldOre) SmeltInfo

func (GoldOre) SmeltInfo() item.SmeltInfo

type Granite

type Granite polishable

func (Granite) BreakInfo

func (g Granite) BreakInfo() BreakInfo

func (Granite) EncodeBlock

func (g Granite) EncodeBlock() (string, map[string]any)

func (Granite) EncodeItem

func (g Granite) EncodeItem() (name string, meta int16)

func (Granite) Hash

func (g Granite) Hash() (uint64, uint64)

type Grass

type Grass struct {
	// contains filtered or unexported fields
}

func (Grass) BoneMeal

func (g Grass) BoneMeal(pos cube.Pos, tx *world.Tx) (result item.BoneMealResult)

func (Grass) BreakInfo

func (g Grass) BreakInfo() BreakInfo

func (Grass) CompostChance

func (Grass) CompostChance() float64

func (Grass) EncodeBlock

func (Grass) EncodeBlock() (string, map[string]any)

func (Grass) EncodeItem

func (Grass) EncodeItem() (name string, meta int16)

func (Grass) Hash

func (Grass) Hash() (uint64, uint64)

func (Grass) Model

func (Grass) Model() world.BlockModel

func (Grass) RandomTick

func (g Grass) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (Grass) Shovel

func (g Grass) Shovel() (world.Block, bool)

func (Grass) SoilFor

func (g Grass) SoilFor(block world.Block) bool

func (Grass) Till

func (g Grass) Till() (world.Block, bool)

type Gravel

type Gravel struct {
	// contains filtered or unexported fields
}

func (Gravel) BreakInfo

func (g Gravel) BreakInfo() BreakInfo

func (Gravel) EncodeBlock

func (Gravel) EncodeBlock() (string, map[string]any)

func (Gravel) EncodeItem

func (Gravel) EncodeItem() (name string, meta int16)

func (Gravel) Hash

func (Gravel) Hash() (uint64, uint64)

func (Gravel) Instrument

func (Gravel) Instrument() sound.Instrument

func (Gravel) Model

func (Gravel) Model() world.BlockModel

func (Gravel) NeighbourUpdateTick

func (g Gravel) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Gravel) SoilFor

func (g Gravel) SoilFor(block world.Block) bool

func (Gravel) Solidifies

func (g Gravel) Solidifies(cube.Pos, *world.Tx) bool

type Grindstone

type Grindstone struct {
	Attach GrindstoneAttachment

	Facing cube.Direction
	// contains filtered or unexported fields
}

func (Grindstone) Activate

func (g Grindstone) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (Grindstone) BreakInfo

func (g Grindstone) BreakInfo() BreakInfo

func (Grindstone) EncodeBlock

func (g Grindstone) EncodeBlock() (string, map[string]any)

func (Grindstone) EncodeItem

func (g Grindstone) EncodeItem() (name string, meta int16)

func (Grindstone) FacingDirection

func (b Grindstone) FacingDirection() cube.Direction

func (Grindstone) Hash

func (g Grindstone) Hash() (uint64, uint64)

func (Grindstone) LightDiffusionLevel

func (Grindstone) LightDiffusionLevel() uint8

func (Grindstone) Model

func (g Grindstone) Model() world.BlockModel

func (Grindstone) NeighbourUpdateTick

func (g Grindstone) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Grindstone) UseOnBlock

func (g Grindstone) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (Grindstone) WithFacing

func (b Grindstone) WithFacing(facing cube.Direction) world.Block

type GrindstoneAttachment

type GrindstoneAttachment struct {
	// contains filtered or unexported fields
}

func GrindstoneAttachments

func GrindstoneAttachments() []GrindstoneAttachment

func HangingGrindstoneAttachment

func HangingGrindstoneAttachment() GrindstoneAttachment

func StandingGrindstoneAttachment

func StandingGrindstoneAttachment() GrindstoneAttachment

func WallGrindstoneAttachment

func WallGrindstoneAttachment() GrindstoneAttachment

func (GrindstoneAttachment) String

func (g GrindstoneAttachment) String() string

func (GrindstoneAttachment) Uint8

func (g GrindstoneAttachment) Uint8() uint8

type HasAxis

type HasAxis interface {
	world.Block
	PillarAxis() cube.Axis
	WithAxis(axis cube.Axis) world.Block
}

type HasColour

type HasColour interface {
	world.Block
	DyeColour() item.Colour
	WithColour(colour item.Colour) world.Block
}

type HasFacing

type HasFacing interface {
	world.Block
	FacingDirection() cube.Direction
	WithFacing(facing cube.Direction) world.Block
}

type HayBale

type HayBale struct {
	Axis cube.Axis
	// contains filtered or unexported fields
}

func (HayBale) BreakInfo

func (h HayBale) BreakInfo() BreakInfo

func (HayBale) CompostChance

func (HayBale) CompostChance() float64

func (HayBale) EncodeBlock

func (h HayBale) EncodeBlock() (name string, properties map[string]interface{})

func (HayBale) EncodeItem

func (HayBale) EncodeItem() (name string, meta int16)

func (HayBale) EntityLand

func (h HayBale) EntityLand(_ cube.Pos, _ *world.Tx, e world.Entity, distance *float64)

func (HayBale) FlammabilityInfo

func (HayBale) FlammabilityInfo() FlammabilityInfo

func (HayBale) Hash

func (h HayBale) Hash() (uint64, uint64)

func (HayBale) Instrument

func (HayBale) Instrument() sound.Instrument

func (HayBale) Model

func (HayBale) Model() world.BlockModel

func (HayBale) PillarAxis

func (b HayBale) PillarAxis() cube.Axis

func (HayBale) UseOnBlock

func (h HayBale) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (HayBale) WithAxis

func (b HayBale) WithAxis(axis cube.Axis) world.Block

type Honeycomb

type Honeycomb struct {
	// contains filtered or unexported fields
}

func (Honeycomb) BreakInfo

func (h Honeycomb) BreakInfo() BreakInfo

func (Honeycomb) EncodeBlock

func (Honeycomb) EncodeBlock() (string, map[string]any)

func (Honeycomb) EncodeItem

func (Honeycomb) EncodeItem() (name string, meta int16)

func (Honeycomb) Hash

func (Honeycomb) Hash() (uint64, uint64)

func (Honeycomb) Instrument

func (h Honeycomb) Instrument() sound.Instrument

func (Honeycomb) Model

func (Honeycomb) Model() world.BlockModel

type Hopper

type Hopper struct {
	Facing cube.Face

	Powered bool

	CustomName string

	TransferCooldown int64

	CollectCooldown int64
	// contains filtered or unexported fields
}

func NewHopper

func NewHopper() Hopper

func (Hopper) Activate

func (Hopper) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (Hopper) AddViewer

func (h Hopper) AddViewer(v ContainerViewer, _ *world.Tx, _ cube.Pos)

func (Hopper) BreakInfo

func (h Hopper) BreakInfo() BreakInfo

func (Hopper) CanDisplace

func (s Hopper) CanDisplace(b world.Liquid) bool

func (Hopper) CanRedstoneWireStepDown

func (Hopper) CanRedstoneWireStepDown(cube.Pos, cube.Pos, *world.Tx) bool

func (Hopper) DecodeNBT

func (h Hopper) DecodeNBT(data map[string]any) any

func (Hopper) EncodeBlock

func (h Hopper) EncodeBlock() (string, map[string]any)

func (Hopper) EncodeItem

func (Hopper) EncodeItem() (name string, meta int16)

func (Hopper) EncodeNBT

func (h Hopper) EncodeNBT() map[string]any

func (Hopper) Hash

func (h Hopper) Hash() (uint64, uint64)

func (Hopper) Inventory

func (h Hopper) Inventory(*world.Tx, cube.Pos) *inventory.Inventory

func (Hopper) LightDiffusionLevel

func (Hopper) LightDiffusionLevel() uint8

func (Hopper) Model

func (Hopper) Model() world.BlockModel

func (Hopper) RemoveViewer

func (h Hopper) RemoveViewer(v ContainerViewer, _ *world.Tx, _ cube.Pos)

func (Hopper) SideClosed

func (Hopper) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (Hopper) Tick

func (h Hopper) Tick(_ int64, pos cube.Pos, tx *world.Tx)

func (Hopper) UseOnBlock

func (h Hopper) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

func (Hopper) WithName

func (h Hopper) WithName(a ...any) world.Item

type HopperExtractable

type HopperExtractable interface {
	ExtractItem(h Hopper, pos cube.Pos, tx *world.Tx) bool
}

type HopperInsertable

type HopperInsertable interface {
	InsertItem(h Hopper, pos cube.Pos, tx *world.Tx) bool
}

type InfestedCobblestone

type InfestedCobblestone struct {
	// contains filtered or unexported fields
}

func (InfestedCobblestone) BreakInfo

func (i InfestedCobblestone) BreakInfo() BreakInfo

func (InfestedCobblestone) EncodeBlock

func (InfestedCobblestone) EncodeBlock() (string, map[string]any)

func (InfestedCobblestone) EncodeItem

func (InfestedCobblestone) EncodeItem() (name string, meta int16)

func (InfestedCobblestone) Hash

func (InfestedCobblestone) Hash() (uint64, uint64)

func (InfestedCobblestone) Instrument

func (InfestedCobblestone) Instrument() sound.Instrument

func (InfestedCobblestone) Model

func (InfestedCobblestone) Model() world.BlockModel

type InfestedDeepslate

type InfestedDeepslate struct {
	Axis cube.Axis
	// contains filtered or unexported fields
}

func (InfestedDeepslate) BreakInfo

func (i InfestedDeepslate) BreakInfo() BreakInfo

func (InfestedDeepslate) EncodeBlock

func (i InfestedDeepslate) EncodeBlock() (string, map[string]any)

func (InfestedDeepslate) EncodeItem

func (InfestedDeepslate) EncodeItem() (name string, meta int16)

func (InfestedDeepslate) Hash

func (i InfestedDeepslate) Hash() (uint64, uint64)

func (InfestedDeepslate) Instrument

func (InfestedDeepslate) Instrument() sound.Instrument

func (InfestedDeepslate) Model

func (InfestedDeepslate) Model() world.BlockModel

func (InfestedDeepslate) PillarAxis

func (b InfestedDeepslate) PillarAxis() cube.Axis

func (InfestedDeepslate) UseOnBlock

func (i InfestedDeepslate) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (InfestedDeepslate) WithAxis

func (b InfestedDeepslate) WithAxis(axis cube.Axis) world.Block

type InfestedStone

type InfestedStone struct {
	// contains filtered or unexported fields
}

func (InfestedStone) BreakInfo

func (i InfestedStone) BreakInfo() BreakInfo

func (InfestedStone) EncodeBlock

func (InfestedStone) EncodeBlock() (string, map[string]any)

func (InfestedStone) EncodeItem

func (InfestedStone) EncodeItem() (name string, meta int16)

func (InfestedStone) Hash

func (InfestedStone) Hash() (uint64, uint64)

func (InfestedStone) Instrument

func (InfestedStone) Instrument() sound.Instrument

func (InfestedStone) Model

func (InfestedStone) Model() world.BlockModel

type InfestedStoneBricks

type InfestedStoneBricks struct {
	Type StoneBricksType
	// contains filtered or unexported fields
}

func (InfestedStoneBricks) BreakInfo

func (i InfestedStoneBricks) BreakInfo() BreakInfo

func (InfestedStoneBricks) EncodeBlock

func (i InfestedStoneBricks) EncodeBlock() (string, map[string]any)

func (InfestedStoneBricks) EncodeItem

func (i InfestedStoneBricks) EncodeItem() (name string, meta int16)

func (InfestedStoneBricks) Hash

func (i InfestedStoneBricks) Hash() (uint64, uint64)

func (InfestedStoneBricks) Instrument

func (InfestedStoneBricks) Instrument() sound.Instrument

func (InfestedStoneBricks) Model

func (InfestedStoneBricks) Model() world.BlockModel

type InvisibleBedrock

type InvisibleBedrock struct {
	// contains filtered or unexported fields
}

func (InvisibleBedrock) EncodeBlock

func (InvisibleBedrock) EncodeBlock() (string, map[string]any)

func (InvisibleBedrock) EncodeItem

func (InvisibleBedrock) EncodeItem() (name string, meta int16)

func (InvisibleBedrock) Hash

func (InvisibleBedrock) Hash() (uint64, uint64)

func (InvisibleBedrock) LightDiffusionLevel

func (InvisibleBedrock) LightDiffusionLevel() uint8

func (InvisibleBedrock) Model

func (InvisibleBedrock) Model() world.BlockModel

type Iron

type Iron struct {
	// contains filtered or unexported fields
}

func (Iron) BreakInfo

func (i Iron) BreakInfo() BreakInfo

func (Iron) EncodeBlock

func (Iron) EncodeBlock() (string, map[string]any)

func (Iron) EncodeItem

func (Iron) EncodeItem() (name string, meta int16)

func (Iron) Hash

func (Iron) Hash() (uint64, uint64)

func (Iron) Instrument

func (i Iron) Instrument() sound.Instrument

func (Iron) Model

func (Iron) Model() world.BlockModel

func (Iron) PowersBeacon

func (Iron) PowersBeacon() bool

type IronBars

type IronBars struct {
	// contains filtered or unexported fields
}

func (IronBars) BreakInfo

func (i IronBars) BreakInfo() BreakInfo

func (IronBars) CanDisplace

func (s IronBars) CanDisplace(b world.Liquid) bool

func (IronBars) EncodeBlock

func (IronBars) EncodeBlock() (string, map[string]any)

func (IronBars) EncodeItem

func (IronBars) EncodeItem() (name string, meta int16)

func (IronBars) Hash

func (IronBars) Hash() (uint64, uint64)

func (IronBars) LightDiffusionLevel

func (IronBars) LightDiffusionLevel() uint8

func (IronBars) Model

func (IronBars) Model() world.BlockModel

func (IronBars) SideClosed

func (i IronBars) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

type IronChain

type IronChain struct {
	Axis cube.Axis
	// contains filtered or unexported fields
}

func (IronChain) BreakInfo

func (c IronChain) BreakInfo() BreakInfo

func (IronChain) CanDisplace

func (s IronChain) CanDisplace(b world.Liquid) bool

func (IronChain) EncodeBlock

func (c IronChain) EncodeBlock() (string, map[string]any)

func (IronChain) EncodeItem

func (IronChain) EncodeItem() (name string, meta int16)

func (IronChain) Hash

func (c IronChain) Hash() (uint64, uint64)

func (IronChain) LightDiffusionLevel

func (IronChain) LightDiffusionLevel() uint8

func (IronChain) Model

func (c IronChain) Model() world.BlockModel

func (IronChain) PillarAxis

func (b IronChain) PillarAxis() cube.Axis

func (IronChain) SideClosed

func (IronChain) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (IronChain) UseOnBlock

func (c IronChain) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (IronChain) WithAxis

func (b IronChain) WithAxis(axis cube.Axis) world.Block

type IronOre

type IronOre struct {
	Type OreType
	// contains filtered or unexported fields
}

func (IronOre) BreakInfo

func (i IronOre) BreakInfo() BreakInfo

func (IronOre) EncodeBlock

func (i IronOre) EncodeBlock() (string, map[string]any)

func (IronOre) EncodeItem

func (i IronOre) EncodeItem() (name string, meta int16)

func (IronOre) Hash

func (i IronOre) Hash() (uint64, uint64)

func (IronOre) Instrument

func (IronOre) Instrument() sound.Instrument

func (IronOre) Model

func (IronOre) Model() world.BlockModel

func (IronOre) SmeltInfo

func (IronOre) SmeltInfo() item.SmeltInfo

type ItemFrame

type ItemFrame struct {
	Facing cube.Face

	Item item.Stack

	Rotations int

	DropChance float64

	Glowing bool
	// contains filtered or unexported fields
}

func (ItemFrame) Activate

func (i ItemFrame) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, ctx *item.UseContext) bool

func (ItemFrame) BreakInfo

func (i ItemFrame) BreakInfo() BreakInfo

func (ItemFrame) CanDisplace

func (s ItemFrame) CanDisplace(b world.Liquid) bool

func (ItemFrame) DecodeNBT

func (i ItemFrame) DecodeNBT(data map[string]any) any

func (ItemFrame) EncodeBlock

func (i ItemFrame) EncodeBlock() (name string, properties map[string]any)

func (ItemFrame) EncodeItem

func (i ItemFrame) EncodeItem() (name string, meta int16)

func (ItemFrame) EncodeNBT

func (i ItemFrame) EncodeNBT() map[string]any

func (ItemFrame) Hash

func (i ItemFrame) Hash() (uint64, uint64)

func (ItemFrame) LightDiffusionLevel

func (ItemFrame) LightDiffusionLevel() uint8

func (ItemFrame) Model

func (ItemFrame) Model() world.BlockModel

func (ItemFrame) NeighbourUpdateTick

func (i ItemFrame) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (ItemFrame) Pick

func (i ItemFrame) Pick() item.Stack

func (ItemFrame) Punch

func (i ItemFrame) Punch(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User)

func (ItemFrame) SideClosed

func (ItemFrame) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (ItemFrame) UseOnBlock

func (i ItemFrame) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type Jukebox

type Jukebox struct {
	Item item.Stack
	// contains filtered or unexported fields
}

func (Jukebox) Activate

func (j Jukebox) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, ctx *item.UseContext) bool

func (Jukebox) BreakInfo

func (j Jukebox) BreakInfo() BreakInfo

func (Jukebox) DecodeNBT

func (j Jukebox) DecodeNBT(data map[string]any) any

func (Jukebox) Disc

func (j Jukebox) Disc() (sound.DiscType, bool)

func (Jukebox) EncodeBlock

func (Jukebox) EncodeBlock() (string, map[string]any)

func (Jukebox) EncodeItem

func (Jukebox) EncodeItem() (name string, meta int16)

func (Jukebox) EncodeNBT

func (j Jukebox) EncodeNBT() map[string]any

func (Jukebox) ExtractItem

func (j Jukebox) ExtractItem(_ Hopper, _ cube.Pos, _ *world.Tx) bool

func (Jukebox) FuelInfo

func (j Jukebox) FuelInfo() item.FuelInfo

func (Jukebox) Hash

func (Jukebox) Hash() (uint64, uint64)

func (Jukebox) InsertItem

func (j Jukebox) InsertItem(h Hopper, pos cube.Pos, tx *world.Tx) bool

func (Jukebox) Instrument

func (Jukebox) Instrument() sound.Instrument

func (Jukebox) Model

func (Jukebox) Model() world.BlockModel

type Kelp

type Kelp struct {
	Age int
	// contains filtered or unexported fields
}

func (Kelp) BoneMeal

func (k Kelp) BoneMeal(pos cube.Pos, tx *world.Tx) item.BoneMealResult

func (Kelp) BreakInfo

func (k Kelp) BreakInfo() BreakInfo

func (Kelp) CanDisplace

func (s Kelp) CanDisplace(b world.Liquid) bool

func (Kelp) CompostChance

func (Kelp) CompostChance() float64

func (Kelp) EncodeBlock

func (k Kelp) EncodeBlock() (name string, properties map[string]any)

func (Kelp) EncodeItem

func (Kelp) EncodeItem() (name string, meta int16)

func (Kelp) Hash

func (k Kelp) Hash() (uint64, uint64)

func (Kelp) LightDiffusionLevel

func (Kelp) LightDiffusionLevel() uint8

func (Kelp) Model

func (Kelp) Model() world.BlockModel

func (Kelp) NeighbourUpdateTick

func (k Kelp) NeighbourUpdateTick(pos, changedNeighbour cube.Pos, tx *world.Tx)

func (Kelp) RandomTick

func (k Kelp) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (Kelp) SideClosed

func (Kelp) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (Kelp) SmeltInfo

func (k Kelp) SmeltInfo() item.SmeltInfo

func (Kelp) UseOnBlock

func (k Kelp) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

type Ladder

type Ladder struct {
	Facing cube.Direction
	// contains filtered or unexported fields
}

func (Ladder) BreakInfo

func (l Ladder) BreakInfo() BreakInfo

func (Ladder) CanDisplace

func (s Ladder) CanDisplace(b world.Liquid) bool

func (Ladder) EncodeBlock

func (l Ladder) EncodeBlock() (string, map[string]any)

func (Ladder) EncodeItem

func (l Ladder) EncodeItem() (name string, meta int16)

func (Ladder) EntityInside

func (l Ladder) EntityInside(_ cube.Pos, _ *world.Tx, e world.Entity)

func (Ladder) FacingDirection

func (b Ladder) FacingDirection() cube.Direction

func (Ladder) FuelInfo

func (Ladder) FuelInfo() item.FuelInfo

func (Ladder) Hash

func (l Ladder) Hash() (uint64, uint64)

func (Ladder) LightDiffusionLevel

func (Ladder) LightDiffusionLevel() uint8

func (Ladder) Model

func (l Ladder) Model() world.BlockModel

func (Ladder) NeighbourUpdateTick

func (l Ladder) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Ladder) SideClosed

func (l Ladder) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (Ladder) UseOnBlock

func (l Ladder) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

func (Ladder) WithFacing

func (b Ladder) WithFacing(facing cube.Direction) world.Block

type Lantern

type Lantern struct {
	Hanging bool

	Type FireType
	// contains filtered or unexported fields
}

func (Lantern) BreakInfo

func (l Lantern) BreakInfo() BreakInfo

func (Lantern) CanDisplace

func (s Lantern) CanDisplace(b world.Liquid) bool

func (Lantern) EncodeBlock

func (l Lantern) EncodeBlock() (name string, properties map[string]any)

func (Lantern) EncodeItem

func (l Lantern) EncodeItem() (name string, meta int16)

func (Lantern) Hash

func (l Lantern) Hash() (uint64, uint64)

func (Lantern) LightDiffusionLevel

func (Lantern) LightDiffusionLevel() uint8

func (Lantern) LightEmissionLevel

func (l Lantern) LightEmissionLevel() uint8

func (Lantern) Model

func (l Lantern) Model() world.BlockModel

func (Lantern) NeighbourUpdateTick

func (l Lantern) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Lantern) SideClosed

func (l Lantern) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (Lantern) UseOnBlock

func (l Lantern) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type Lapis

type Lapis struct {
	// contains filtered or unexported fields
}

func (Lapis) BreakInfo

func (l Lapis) BreakInfo() BreakInfo

func (Lapis) EncodeBlock

func (Lapis) EncodeBlock() (string, map[string]any)

func (Lapis) EncodeItem

func (Lapis) EncodeItem() (name string, meta int16)

func (Lapis) Hash

func (Lapis) Hash() (uint64, uint64)

func (Lapis) Model

func (Lapis) Model() world.BlockModel

type LapisOre

type LapisOre struct {
	Type OreType
	// contains filtered or unexported fields
}

func (LapisOre) BreakInfo

func (l LapisOre) BreakInfo() BreakInfo

func (LapisOre) EncodeBlock

func (l LapisOre) EncodeBlock() (string, map[string]any)

func (LapisOre) EncodeItem

func (l LapisOre) EncodeItem() (name string, meta int16)

func (LapisOre) Hash

func (l LapisOre) Hash() (uint64, uint64)

func (LapisOre) Instrument

func (LapisOre) Instrument() sound.Instrument

func (LapisOre) Model

func (LapisOre) Model() world.BlockModel

func (LapisOre) SmeltInfo

func (LapisOre) SmeltInfo() item.SmeltInfo

type Lava

type Lava struct {
	Still bool

	Depth int

	Falling bool
	// contains filtered or unexported fields
}

func (Lava) BlastResistance

func (Lava) BlastResistance() float64

func (Lava) EncodeBlock

func (l Lava) EncodeBlock() (name string, properties map[string]any)

func (Lava) EntityInside

func (l Lava) EntityInside(_ cube.Pos, _ *world.Tx, e world.Entity)

func (Lava) Harden

func (l Lava) Harden(pos cube.Pos, tx *world.Tx, flownIntoBy *cube.Pos) bool

func (Lava) HasLiquidDrops

func (Lava) HasLiquidDrops() bool

func (Lava) Hash

func (l Lava) Hash() (uint64, uint64)

func (Lava) LightDiffusionLevel

func (Lava) LightDiffusionLevel() uint8

func (Lava) LightEmissionLevel

func (Lava) LightEmissionLevel() uint8

func (Lava) LiquidDepth

func (l Lava) LiquidDepth() int

func (Lava) LiquidFalling

func (l Lava) LiquidFalling() bool

func (Lava) LiquidRemoveBlock

func (Lava) LiquidRemoveBlock(pos cube.Pos, tx *world.Tx, _ world.Block)

func (Lava) LiquidType

func (Lava) LiquidType() string

func (Lava) Model

func (Lava) Model() world.BlockModel

func (Lava) NeighbourUpdateTick

func (l Lava) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Lava) RandomTick

func (l Lava) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (Lava) ReplaceableBy

func (l Lava) ReplaceableBy(b world.Block) bool

func (Lava) ScheduledTick

func (l Lava) ScheduledTick(pos cube.Pos, tx *world.Tx, _ *rand.Rand)

func (Lava) SpreadDecay

func (Lava) SpreadDecay() int

func (Lava) WithDepth

func (l Lava) WithDepth(depth int, falling bool) world.Liquid

type LavaDamageSource

type LavaDamageSource struct{}

func (LavaDamageSource) Fire

func (LavaDamageSource) Fire() bool

func (LavaDamageSource) IgnoreTotem

func (LavaDamageSource) IgnoreTotem() bool

func (LavaDamageSource) ReducedByArmour

func (LavaDamageSource) ReducedByArmour() bool

func (LavaDamageSource) ReducedByResistance

func (LavaDamageSource) ReducedByResistance() bool

type Leaves

type Leaves struct {
	Type LeavesType

	Persistent bool

	ShouldUpdate bool
	// contains filtered or unexported fields
}

func (Leaves) BreakInfo

func (l Leaves) BreakInfo() BreakInfo

func (Leaves) CanDisplace

func (s Leaves) CanDisplace(b world.Liquid) bool

func (Leaves) CompostChance

func (Leaves) CompostChance() float64

func (Leaves) EncodeBlock

func (l Leaves) EncodeBlock() (name string, properties map[string]any)

func (Leaves) EncodeItem

func (l Leaves) EncodeItem() (name string, meta int16)

func (Leaves) FlammabilityInfo

func (l Leaves) FlammabilityInfo() FlammabilityInfo

func (Leaves) Hash

func (l Leaves) Hash() (uint64, uint64)

func (Leaves) LightDiffusionLevel

func (Leaves) LightDiffusionLevel() uint8

func (Leaves) Model

func (Leaves) Model() world.BlockModel

func (Leaves) NeighbourUpdateTick

func (l Leaves) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Leaves) RandomTick

func (l Leaves) RandomTick(pos cube.Pos, tx *world.Tx, _ *rand.Rand)

func (Leaves) SideClosed

func (Leaves) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (Leaves) UseOnBlock

func (l Leaves) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

type LeavesType

type LeavesType struct {
	// contains filtered or unexported fields
}

func AcaciaLeaves

func AcaciaLeaves() LeavesType

func AzaleaLeaves

func AzaleaLeaves() LeavesType

func BirchLeaves

func BirchLeaves() LeavesType

func CherryLeaves

func CherryLeaves() LeavesType

func DarkOakLeaves

func DarkOakLeaves() LeavesType

func FloweringAzaleaLeaves

func FloweringAzaleaLeaves() LeavesType

func JungleLeaves

func JungleLeaves() LeavesType

func LeavesTypes

func LeavesTypes() []LeavesType

func MangroveLeaves

func MangroveLeaves() LeavesType

func OakLeaves

func OakLeaves() LeavesType

func PaleOakLeaves

func PaleOakLeaves() LeavesType

func SpruceLeaves

func SpruceLeaves() LeavesType

func WoodLeavesTypes

func WoodLeavesTypes() []LeavesType

func (LeavesType) String

func (t LeavesType) String() string

func (LeavesType) Uint8

func (t LeavesType) Uint8() uint8

func (LeavesType) Wood

func (t LeavesType) Wood() (WoodType, bool)

type Lectern

type Lectern struct {
	Facing cube.Direction

	Book item.Stack

	Page int
	// contains filtered or unexported fields
}

func (Lectern) Activate

func (l Lectern) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, ctx *item.UseContext) bool

func (Lectern) BreakInfo

func (l Lectern) BreakInfo() BreakInfo

func (Lectern) CanDisplace

func (s Lectern) CanDisplace(b world.Liquid) bool

func (Lectern) DecodeNBT

func (l Lectern) DecodeNBT(m map[string]any) any

func (Lectern) EncodeBlock

func (l Lectern) EncodeBlock() (string, map[string]any)

func (Lectern) EncodeItem

func (Lectern) EncodeItem() (name string, meta int16)

func (Lectern) EncodeNBT

func (l Lectern) EncodeNBT() map[string]any

func (Lectern) FacingDirection

func (b Lectern) FacingDirection() cube.Direction

func (Lectern) FuelInfo

func (Lectern) FuelInfo() item.FuelInfo

func (Lectern) Hash

func (l Lectern) Hash() (uint64, uint64)

func (Lectern) Instrument

func (Lectern) Instrument() sound.Instrument

func (Lectern) Model

func (Lectern) Model() world.BlockModel

func (Lectern) Punch

func (l Lectern) Punch(pos cube.Pos, _ cube.Face, tx *world.Tx, _ item.User)

func (Lectern) SideClosed

func (Lectern) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (Lectern) TurnPage

func (l Lectern) TurnPage(pos cube.Pos, tx *world.Tx, page int) error

func (Lectern) UseOnBlock

func (l Lectern) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (Lectern) WithFacing

func (b Lectern) WithFacing(facing cube.Direction) world.Block

type Lever

type Lever struct {
	Powered bool

	Facing cube.Face

	Direction cube.Direction
	// contains filtered or unexported fields
}

func (Lever) Activate

func (l Lever) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, _ item.User, _ *item.UseContext) bool

func (Lever) BreakInfo

func (l Lever) BreakInfo() BreakInfo

func (Lever) CanDisplace

func (s Lever) CanDisplace(b world.Liquid) bool

func (Lever) EncodeBlock

func (l Lever) EncodeBlock() (string, map[string]any)

func (Lever) EncodeItem

func (l Lever) EncodeItem() (name string, meta int16)

func (Lever) Hash

func (l Lever) Hash() (uint64, uint64)

func (Lever) LightDiffusionLevel

func (Lever) LightDiffusionLevel() uint8

func (Lever) Model

func (Lever) Model() world.BlockModel

func (Lever) NeighbourUpdateTick

func (l Lever) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Lever) RedstonePower

func (l Lever) RedstonePower(cube.Pos, *world.Tx, cube.Face) int

func (Lever) RedstoneStrongPower

func (l Lever) RedstoneStrongPower(_ cube.Pos, _ *world.Tx, face cube.Face) int

func (Lever) SideClosed

func (l Lever) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (Lever) UseOnBlock

func (l Lever) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type Light

type Light struct {
	Level int
	// contains filtered or unexported fields
}

func (Light) CanDisplace

func (s Light) CanDisplace(b world.Liquid) bool

func (Light) EncodeBlock

func (l Light) EncodeBlock() (name string, properties map[string]any)

func (Light) EncodeItem

func (l Light) EncodeItem() (name string, meta int16)

func (Light) Hash

func (l Light) Hash() (uint64, uint64)

func (Light) LightDiffusionLevel

func (Light) LightDiffusionLevel() uint8

func (Light) LightEmissionLevel

func (l Light) LightEmissionLevel() uint8

func (Light) Model

func (Light) Model() world.BlockModel

func (Light) ReplaceableBy

func (Light) ReplaceableBy(world.Block) bool

func (Light) SideClosed

func (Light) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

type LightDiffuser

type LightDiffuser interface {
	LightDiffusionLevel() uint8
}

type LightEmitter

type LightEmitter interface {
	LightEmissionLevel() uint8
}

type LilyPad

type LilyPad struct {
	// contains filtered or unexported fields
}

func (LilyPad) BreakInfo

func (l LilyPad) BreakInfo() BreakInfo

func (LilyPad) CompostChance

func (LilyPad) CompostChance() float64

func (LilyPad) EncodeBlock

func (LilyPad) EncodeBlock() (string, map[string]any)

func (LilyPad) EncodeItem

func (LilyPad) EncodeItem() (name string, meta int16)

func (LilyPad) HasLiquidDrops

func (LilyPad) HasLiquidDrops() bool

func (LilyPad) Hash

func (LilyPad) Hash() (uint64, uint64)

func (LilyPad) LightDiffusionLevel

func (LilyPad) LightDiffusionLevel() uint8

func (LilyPad) Model

func (LilyPad) Model() world.BlockModel

func (LilyPad) NeighbourUpdateTick

func (l LilyPad) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (LilyPad) UseOnBlock

func (l LilyPad) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type LiquidRemovable

type LiquidRemovable interface {
	HasLiquidDrops() bool
}

type LitPumpkin

type LitPumpkin struct {
	Facing cube.Direction
	// contains filtered or unexported fields
}

func (LitPumpkin) BreakInfo

func (l LitPumpkin) BreakInfo() BreakInfo

func (LitPumpkin) EncodeBlock

func (l LitPumpkin) EncodeBlock() (name string, properties map[string]any)

func (LitPumpkin) EncodeItem

func (l LitPumpkin) EncodeItem() (name string, meta int16)

func (LitPumpkin) FacingDirection

func (b LitPumpkin) FacingDirection() cube.Direction

func (LitPumpkin) Hash

func (l LitPumpkin) Hash() (uint64, uint64)

func (LitPumpkin) LightEmissionLevel

func (l LitPumpkin) LightEmissionLevel() uint8

func (LitPumpkin) Model

func (LitPumpkin) Model() world.BlockModel

func (LitPumpkin) UseOnBlock

func (l LitPumpkin) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (LitPumpkin) WithFacing

func (b LitPumpkin) WithFacing(facing cube.Direction) world.Block

type Log

type Log struct {
	Wood WoodType

	Stripped bool

	Axis cube.Axis
	// contains filtered or unexported fields
}

func (Log) BreakInfo

func (l Log) BreakInfo() BreakInfo

func (Log) EncodeBlock

func (l Log) EncodeBlock() (name string, properties map[string]any)

func (Log) EncodeItem

func (l Log) EncodeItem() (name string, meta int16)

func (Log) FlammabilityInfo

func (l Log) FlammabilityInfo() FlammabilityInfo

func (Log) FuelInfo

func (l Log) FuelInfo() item.FuelInfo

func (Log) Hash

func (l Log) Hash() (uint64, uint64)

func (Log) Instrument

func (Log) Instrument() sound.Instrument

func (Log) Model

func (Log) Model() world.BlockModel

func (Log) PillarAxis

func (b Log) PillarAxis() cube.Axis

func (Log) SmeltInfo

func (Log) SmeltInfo() item.SmeltInfo

func (Log) Strip

func (l Log) Strip() (world.Block, world.Sound, bool)

func (Log) UseOnBlock

func (l Log) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (Log) WithAxis

func (b Log) WithAxis(axis cube.Axis) world.Block

type Loom

type Loom struct {
	Facing cube.Direction
	// contains filtered or unexported fields
}

func (Loom) Activate

func (Loom) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (Loom) BreakInfo

func (l Loom) BreakInfo() BreakInfo

func (Loom) EncodeBlock

func (l Loom) EncodeBlock() (name string, properties map[string]interface{})

func (Loom) EncodeItem

func (Loom) EncodeItem() (name string, meta int16)

func (Loom) FacingDirection

func (b Loom) FacingDirection() cube.Direction

func (Loom) FuelInfo

func (Loom) FuelInfo() item.FuelInfo

func (Loom) Hash

func (l Loom) Hash() (uint64, uint64)

func (Loom) Instrument

func (Loom) Instrument() sound.Instrument

func (Loom) Model

func (Loom) Model() world.BlockModel

func (Loom) UseOnBlock

func (l Loom) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (Loom) WithFacing

func (b Loom) WithFacing(facing cube.Direction) world.Block

type Magma

type Magma struct {
	// contains filtered or unexported fields
}

func (Magma) BreakInfo

func (m Magma) BreakInfo() BreakInfo

func (Magma) EncodeBlock

func (Magma) EncodeBlock() (string, map[string]any)

func (Magma) EncodeItem

func (Magma) EncodeItem() (name string, meta int16)

func (Magma) EntityStepOn

func (Magma) EntityStepOn(_ cube.Pos, _ *world.Tx, e world.Entity)

func (Magma) Hash

func (Magma) Hash() (uint64, uint64)

func (Magma) Instrument

func (Magma) Instrument() sound.Instrument

func (Magma) LightEmissionLevel

func (Magma) LightEmissionLevel() uint8

func (Magma) Model

func (Magma) Model() world.BlockModel

type MagmaDamageSource

type MagmaDamageSource struct{}

func (MagmaDamageSource) AffectedByEnchantment

func (MagmaDamageSource) AffectedByEnchantment(e item.EnchantmentType) bool

func (MagmaDamageSource) Fire

func (MagmaDamageSource) Fire() bool

func (MagmaDamageSource) IgnoreTotem

func (MagmaDamageSource) IgnoreTotem() bool

func (MagmaDamageSource) ReducedByArmour

func (MagmaDamageSource) ReducedByArmour() bool

func (MagmaDamageSource) ReducedByResistance

func (MagmaDamageSource) ReducedByResistance() bool

type Melon

type Melon struct {
	// contains filtered or unexported fields
}

func (Melon) BreakInfo

func (m Melon) BreakInfo() BreakInfo

func (Melon) CompostChance

func (Melon) CompostChance() float64

func (Melon) EncodeBlock

func (Melon) EncodeBlock() (string, map[string]any)

func (Melon) EncodeItem

func (Melon) EncodeItem() (name string, meta int16)

func (Melon) Hash

func (Melon) Hash() (uint64, uint64)

func (Melon) Model

func (Melon) Model() world.BlockModel

type MelonSeeds

type MelonSeeds struct {
	Direction cube.Face
	// contains filtered or unexported fields
}

func (MelonSeeds) BoneMeal

func (m MelonSeeds) BoneMeal(pos cube.Pos, tx *world.Tx) item.BoneMealResult

func (MelonSeeds) BreakInfo

func (m MelonSeeds) BreakInfo() BreakInfo

func (MelonSeeds) CalculateGrowthChance

func (c MelonSeeds) CalculateGrowthChance(pos cube.Pos, tx *world.Tx) float64

func (MelonSeeds) CompostChance

func (MelonSeeds) CompostChance() float64

func (MelonSeeds) EncodeBlock

func (m MelonSeeds) EncodeBlock() (name string, properties map[string]any)

func (MelonSeeds) EncodeItem

func (m MelonSeeds) EncodeItem() (name string, meta int16)

func (MelonSeeds) GrowthStage

func (c MelonSeeds) GrowthStage() int

func (MelonSeeds) HasLiquidDrops

func (c MelonSeeds) HasLiquidDrops() bool

func (MelonSeeds) Hash

func (m MelonSeeds) Hash() (uint64, uint64)

func (MelonSeeds) NeighbourUpdateTick

func (m MelonSeeds) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (MelonSeeds) RandomTick

func (m MelonSeeds) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (MelonSeeds) SameCrop

func (MelonSeeds) SameCrop(c Crop) bool

func (MelonSeeds) UseOnBlock

func (m MelonSeeds) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type MossCarpet

type MossCarpet struct {
	// contains filtered or unexported fields
}

func (MossCarpet) BreakInfo

func (m MossCarpet) BreakInfo() BreakInfo

func (MossCarpet) CanDisplace

func (s MossCarpet) CanDisplace(b world.Liquid) bool

func (MossCarpet) CompostChance

func (MossCarpet) CompostChance() float64

func (MossCarpet) EncodeBlock

func (m MossCarpet) EncodeBlock() (string, map[string]any)

func (MossCarpet) EncodeItem

func (m MossCarpet) EncodeItem() (name string, meta int16)

func (MossCarpet) HasLiquidDrops

func (MossCarpet) HasLiquidDrops() bool

func (MossCarpet) Hash

func (MossCarpet) Hash() (uint64, uint64)

func (MossCarpet) LightDiffusionLevel

func (MossCarpet) LightDiffusionLevel() uint8

func (MossCarpet) Model

func (MossCarpet) Model() world.BlockModel

func (MossCarpet) NeighbourUpdateTick

func (m MossCarpet) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (MossCarpet) SideClosed

func (MossCarpet) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (MossCarpet) UseOnBlock

func (m MossCarpet) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

type Mud

type Mud struct {
	// contains filtered or unexported fields
}

func (Mud) BreakInfo

func (m Mud) BreakInfo() BreakInfo

func (Mud) EncodeBlock

func (Mud) EncodeBlock() (string, map[string]any)

func (Mud) EncodeItem

func (Mud) EncodeItem() (name string, meta int16)

func (Mud) Hash

func (Mud) Hash() (uint64, uint64)

func (Mud) Model

func (Mud) Model() world.BlockModel

func (Mud) SoilFor

func (Mud) SoilFor(block world.Block) bool

type MudBricks

type MudBricks struct {
	// contains filtered or unexported fields
}

func (MudBricks) BreakInfo

func (m MudBricks) BreakInfo() BreakInfo

func (MudBricks) EncodeBlock

func (MudBricks) EncodeBlock() (string, map[string]any)

func (MudBricks) EncodeItem

func (MudBricks) EncodeItem() (name string, meta int16)

func (MudBricks) Hash

func (MudBricks) Hash() (uint64, uint64)

func (MudBricks) Instrument

func (MudBricks) Instrument() sound.Instrument

func (MudBricks) Model

func (MudBricks) Model() world.BlockModel

type MuddyMangroveRoots

type MuddyMangroveRoots struct {
	Axis cube.Axis
	// contains filtered or unexported fields
}

func (MuddyMangroveRoots) BreakInfo

func (m MuddyMangroveRoots) BreakInfo() BreakInfo

func (MuddyMangroveRoots) EncodeBlock

func (m MuddyMangroveRoots) EncodeBlock() (string, map[string]any)

func (MuddyMangroveRoots) EncodeItem

func (MuddyMangroveRoots) EncodeItem() (name string, meta int16)

func (MuddyMangroveRoots) Hash

func (m MuddyMangroveRoots) Hash() (uint64, uint64)

func (MuddyMangroveRoots) Model

func (MuddyMangroveRoots) Model() world.BlockModel

func (MuddyMangroveRoots) PillarAxis

func (b MuddyMangroveRoots) PillarAxis() cube.Axis

func (MuddyMangroveRoots) SoilFor

func (MuddyMangroveRoots) SoilFor(block world.Block) bool

func (MuddyMangroveRoots) UseOnBlock

func (m MuddyMangroveRoots) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (MuddyMangroveRoots) WithAxis

func (b MuddyMangroveRoots) WithAxis(axis cube.Axis) world.Block

type NetherBrickFence

type NetherBrickFence struct {
	// contains filtered or unexported fields
}

func (NetherBrickFence) BreakInfo

func (n NetherBrickFence) BreakInfo() BreakInfo

func (NetherBrickFence) CanDisplace

func (s NetherBrickFence) CanDisplace(b world.Liquid) bool

func (NetherBrickFence) EncodeBlock

func (NetherBrickFence) EncodeBlock() (string, map[string]any)

func (NetherBrickFence) EncodeItem

func (NetherBrickFence) EncodeItem() (name string, meta int16)

func (NetherBrickFence) Hash

func (NetherBrickFence) Hash() (uint64, uint64)

func (NetherBrickFence) LightDiffusionLevel

func (NetherBrickFence) LightDiffusionLevel() uint8

func (NetherBrickFence) Model

func (n NetherBrickFence) Model() world.BlockModel

func (NetherBrickFence) SideClosed

func (NetherBrickFence) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

type NetherBricks

type NetherBricks struct {
	Type NetherBricksType
	// contains filtered or unexported fields
}

func (NetherBricks) BreakInfo

func (n NetherBricks) BreakInfo() BreakInfo

func (NetherBricks) EncodeBlock

func (n NetherBricks) EncodeBlock() (name string, properties map[string]any)

func (NetherBricks) EncodeItem

func (n NetherBricks) EncodeItem() (id string, meta int16)

func (NetherBricks) Hash

func (n NetherBricks) Hash() (uint64, uint64)

func (NetherBricks) Instrument

func (NetherBricks) Instrument() sound.Instrument

func (NetherBricks) Model

func (NetherBricks) Model() world.BlockModel

func (NetherBricks) SmeltInfo

func (n NetherBricks) SmeltInfo() item.SmeltInfo

type NetherBricksType

type NetherBricksType struct {
	// contains filtered or unexported fields
}

func ChiseledNetherBricks

func ChiseledNetherBricks() NetherBricksType

func CrackedNetherBricks

func CrackedNetherBricks() NetherBricksType

func NetherBricksTypes

func NetherBricksTypes() []NetherBricksType

func NormalNetherBricks

func NormalNetherBricks() NetherBricksType

func RedNetherBricks

func RedNetherBricks() NetherBricksType

func (NetherBricksType) Name

func (n NetherBricksType) Name() string

func (NetherBricksType) String

func (n NetherBricksType) String() string

func (NetherBricksType) Uint8

func (n NetherBricksType) Uint8() uint8

type NetherGoldOre

type NetherGoldOre struct {
	// contains filtered or unexported fields
}

func (NetherGoldOre) BreakInfo

func (n NetherGoldOre) BreakInfo() BreakInfo

func (NetherGoldOre) EncodeBlock

func (NetherGoldOre) EncodeBlock() (string, map[string]any)

func (NetherGoldOre) EncodeItem

func (NetherGoldOre) EncodeItem() (name string, meta int16)

func (NetherGoldOre) Hash

func (NetherGoldOre) Hash() (uint64, uint64)

func (NetherGoldOre) Model

func (NetherGoldOre) Model() world.BlockModel

func (NetherGoldOre) SmeltInfo

func (NetherGoldOre) SmeltInfo() item.SmeltInfo

type NetherQuartzOre

type NetherQuartzOre struct {
	// contains filtered or unexported fields
}

func (NetherQuartzOre) BreakInfo

func (q NetherQuartzOre) BreakInfo() BreakInfo

func (NetherQuartzOre) EncodeBlock

func (NetherQuartzOre) EncodeBlock() (string, map[string]any)

func (NetherQuartzOre) EncodeItem

func (NetherQuartzOre) EncodeItem() (name string, meta int16)

func (NetherQuartzOre) Hash

func (NetherQuartzOre) Hash() (uint64, uint64)

func (NetherQuartzOre) Instrument

func (NetherQuartzOre) Instrument() sound.Instrument

func (NetherQuartzOre) Model

func (NetherQuartzOre) Model() world.BlockModel

func (NetherQuartzOre) SmeltInfo

func (NetherQuartzOre) SmeltInfo() item.SmeltInfo

type NetherSprouts

type NetherSprouts struct {
	// contains filtered or unexported fields
}

func (NetherSprouts) BreakInfo

func (n NetherSprouts) BreakInfo() BreakInfo

func (NetherSprouts) CompostChance

func (NetherSprouts) CompostChance() float64

func (NetherSprouts) EncodeBlock

func (n NetherSprouts) EncodeBlock() (string, map[string]any)

func (NetherSprouts) EncodeItem

func (n NetherSprouts) EncodeItem() (name string, meta int16)

func (NetherSprouts) FlammabilityInfo

func (n NetherSprouts) FlammabilityInfo() FlammabilityInfo

func (NetherSprouts) HasLiquidDrops

func (n NetherSprouts) HasLiquidDrops() bool

func (NetherSprouts) Hash

func (NetherSprouts) Hash() (uint64, uint64)

func (NetherSprouts) LightDiffusionLevel

func (NetherSprouts) LightDiffusionLevel() uint8

func (NetherSprouts) Model

func (NetherSprouts) Model() world.BlockModel

func (NetherSprouts) NeighbourUpdateTick

func (n NetherSprouts) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (NetherSprouts) ReplaceableBy

func (NetherSprouts) ReplaceableBy(world.Block) bool

func (NetherSprouts) UseOnBlock

func (n NetherSprouts) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type NetherWart

type NetherWart struct {
	Age int
	// contains filtered or unexported fields
}

func (NetherWart) BreakInfo

func (n NetherWart) BreakInfo() BreakInfo

func (NetherWart) CompostChance

func (NetherWart) CompostChance() float64

func (NetherWart) EncodeBlock

func (n NetherWart) EncodeBlock() (name string, properties map[string]any)

func (NetherWart) EncodeItem

func (NetherWart) EncodeItem() (name string, meta int16)

func (NetherWart) HasLiquidDrops

func (n NetherWart) HasLiquidDrops() bool

func (NetherWart) Hash

func (n NetherWart) Hash() (uint64, uint64)

func (NetherWart) LightDiffusionLevel

func (NetherWart) LightDiffusionLevel() uint8

func (NetherWart) Model

func (NetherWart) Model() world.BlockModel

func (NetherWart) NeighbourUpdateTick

func (n NetherWart) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (NetherWart) RandomTick

func (n NetherWart) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (NetherWart) UseOnBlock

func (n NetherWart) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type NetherWartBlock

type NetherWartBlock struct {
	Warped bool
	// contains filtered or unexported fields
}

func (NetherWartBlock) BreakInfo

func (n NetherWartBlock) BreakInfo() BreakInfo

func (NetherWartBlock) CompostChance

func (NetherWartBlock) CompostChance() float64

func (NetherWartBlock) EncodeBlock

func (n NetherWartBlock) EncodeBlock() (name string, properties map[string]interface{})

func (NetherWartBlock) EncodeItem

func (n NetherWartBlock) EncodeItem() (name string, meta int16)

func (NetherWartBlock) Hash

func (n NetherWartBlock) Hash() (uint64, uint64)

func (NetherWartBlock) Model

func (NetherWartBlock) Model() world.BlockModel

type Netherite

type Netherite struct {
	// contains filtered or unexported fields
}

func (Netherite) BreakInfo

func (n Netherite) BreakInfo() BreakInfo

func (Netherite) EncodeBlock

func (Netherite) EncodeBlock() (string, map[string]any)

func (Netherite) EncodeItem

func (Netherite) EncodeItem() (name string, meta int16)

func (Netherite) Hash

func (Netherite) Hash() (uint64, uint64)

func (Netherite) Instrument

func (Netherite) Instrument() sound.Instrument

func (Netherite) Model

func (Netherite) Model() world.BlockModel

func (Netherite) PowersBeacon

func (Netherite) PowersBeacon() bool

type Netherrack

type Netherrack struct {
	// contains filtered or unexported fields
}

func (Netherrack) BreakInfo

func (n Netherrack) BreakInfo() BreakInfo

func (Netherrack) EncodeBlock

func (Netherrack) EncodeBlock() (string, map[string]any)

func (Netherrack) EncodeItem

func (Netherrack) EncodeItem() (name string, meta int16)

func (Netherrack) Hash

func (Netherrack) Hash() (uint64, uint64)

func (Netherrack) Instrument

func (Netherrack) Instrument() sound.Instrument

func (Netherrack) Model

func (Netherrack) Model() world.BlockModel

func (Netherrack) SmeltInfo

func (Netherrack) SmeltInfo() item.SmeltInfo

func (Netherrack) SoilFor

func (n Netherrack) SoilFor(block world.Block) bool

type Note

type Note struct {
	Pitch int

	Powered bool
	// contains filtered or unexported fields
}

func (Note) Activate

func (n Note) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, _ item.User, _ *item.UseContext) bool

func (Note) BreakInfo

func (n Note) BreakInfo() BreakInfo

func (Note) DecodeNBT

func (n Note) DecodeNBT(data map[string]any) any

func (Note) EncodeBlock

func (n Note) EncodeBlock() (name string, properties map[string]any)

func (Note) EncodeItem

func (n Note) EncodeItem() (name string, meta int16)

func (Note) EncodeNBT

func (n Note) EncodeNBT() map[string]any

func (Note) FuelInfo

func (Note) FuelInfo() item.FuelInfo

func (Note) Hash

func (Note) Hash() (uint64, uint64)

func (Note) Instrument

func (Note) Instrument() sound.Instrument

func (Note) Model

func (Note) Model() world.BlockModel

func (Note) RedstonePowerPostUpdate

func (n Note) RedstonePowerPostUpdate(pos cube.Pos, tx *world.Tx, before, after world.Block, _, _ int)

func (Note) RedstonePowerUpdate

func (n Note) RedstonePowerUpdate(pos cube.Pos, tx *world.Tx, power int) (world.Block, bool)

type Obsidian

type Obsidian struct {
	Crying bool
	// contains filtered or unexported fields
}

func (Obsidian) BreakInfo

func (o Obsidian) BreakInfo() BreakInfo

func (Obsidian) EncodeBlock

func (o Obsidian) EncodeBlock() (string, map[string]any)

func (Obsidian) EncodeItem

func (o Obsidian) EncodeItem() (name string, meta int16)

func (Obsidian) Frame

func (o Obsidian) Frame(dimension world.Dimension) bool

func (Obsidian) Hash

func (o Obsidian) Hash() (uint64, uint64)

func (Obsidian) Instrument

func (Obsidian) Instrument() sound.Instrument

func (Obsidian) LightEmissionLevel

func (o Obsidian) LightEmissionLevel() uint8

func (Obsidian) Model

func (Obsidian) Model() world.BlockModel

type OpenAction

type OpenAction struct {
	// contains filtered or unexported fields
}

func (OpenAction) BlockAction

func (OpenAction) BlockAction()

type OreType

type OreType struct {
	// contains filtered or unexported fields
}

func DeepslateOre

func DeepslateOre() OreType

func OreTypes

func OreTypes() []OreType

func StoneOre

func StoneOre() OreType

func (OreType) Hardness

func (o OreType) Hardness() float64

func (OreType) Name

func (o OreType) Name() string

func (OreType) Prefix

func (o OreType) Prefix() string

func (OreType) String

func (o OreType) String() string

func (OreType) Uint8

func (o OreType) Uint8() uint8

type OxidationType

type OxidationType struct {
	// contains filtered or unexported fields
}

func ExposedOxidation

func ExposedOxidation() OxidationType

func OxidationTypes

func OxidationTypes() []OxidationType

func OxidisedOxidation

func OxidisedOxidation() OxidationType

func UnoxidisedOxidation

func UnoxidisedOxidation() OxidationType

func WeatheredOxidation

func WeatheredOxidation() OxidationType

func (OxidationType) Decrease

func (s OxidationType) Decrease() (OxidationType, bool)

func (OxidationType) Increase

func (s OxidationType) Increase() (OxidationType, bool)

func (OxidationType) Name

func (s OxidationType) Name() string

func (OxidationType) String

func (s OxidationType) String() string

func (OxidationType) Uint8

func (s OxidationType) Uint8() uint8

type Oxidisable

type Oxidisable interface {
	world.Block

	CanOxidate() bool

	OxidationLevel() OxidationType

	WithOxidationLevel(OxidationType) Oxidisable
}

type PackedIce

type PackedIce struct {
	// contains filtered or unexported fields
}

func (PackedIce) BreakInfo

func (p PackedIce) BreakInfo() BreakInfo

func (PackedIce) EncodeBlock

func (PackedIce) EncodeBlock() (string, map[string]any)

func (PackedIce) EncodeItem

func (PackedIce) EncodeItem() (name string, meta int16)

func (PackedIce) Friction

func (p PackedIce) Friction() float64

func (PackedIce) Hash

func (PackedIce) Hash() (uint64, uint64)

func (PackedIce) Instrument

func (PackedIce) Instrument() sound.Instrument

func (PackedIce) Model

func (PackedIce) Model() world.BlockModel

type PackedMud

type PackedMud struct {
	// contains filtered or unexported fields
}

func (PackedMud) BreakInfo

func (p PackedMud) BreakInfo() BreakInfo

func (PackedMud) EncodeBlock

func (PackedMud) EncodeBlock() (string, map[string]any)

func (PackedMud) EncodeItem

func (PackedMud) EncodeItem() (name string, meta int16)

func (PackedMud) Hash

func (PackedMud) Hash() (uint64, uint64)

func (PackedMud) Model

func (PackedMud) Model() world.BlockModel

type Permutable

type Permutable interface {
	States() map[string][]any

	Permutations() []customblock.Permutation
}

type Pickable

type Pickable interface {
	Pick() item.Stack
}

type PinkPetals

type PinkPetals struct {
	AdditionalCount int

	Facing cube.Direction
	// contains filtered or unexported fields
}

func (PinkPetals) BoneMeal

func (p PinkPetals) BoneMeal(pos cube.Pos, tx *world.Tx) item.BoneMealResult

func (PinkPetals) BreakInfo

func (p PinkPetals) BreakInfo() BreakInfo

func (PinkPetals) CompostChance

func (PinkPetals) CompostChance() float64

func (PinkPetals) EncodeBlock

func (p PinkPetals) EncodeBlock() (string, map[string]any)

func (PinkPetals) EncodeItem

func (PinkPetals) EncodeItem() (name string, meta int16)

func (PinkPetals) FacingDirection

func (b PinkPetals) FacingDirection() cube.Direction

func (PinkPetals) FlammabilityInfo

func (p PinkPetals) FlammabilityInfo() FlammabilityInfo

func (PinkPetals) HasLiquidDrops

func (PinkPetals) HasLiquidDrops() bool

func (PinkPetals) Hash

func (p PinkPetals) Hash() (uint64, uint64)

func (PinkPetals) LightDiffusionLevel

func (PinkPetals) LightDiffusionLevel() uint8

func (PinkPetals) Model

func (PinkPetals) Model() world.BlockModel

func (PinkPetals) NeighbourUpdateTick

func (p PinkPetals) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (PinkPetals) UseOnBlock

func (p PinkPetals) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

func (PinkPetals) WithFacing

func (b PinkPetals) WithFacing(facing cube.Direction) world.Block

type Placer

type Placer interface {
	item.User
	PlaceBlock(pos cube.Pos, b world.Block, ctx *item.UseContext)
}

type Planks

type Planks struct {
	Wood WoodType
	// contains filtered or unexported fields
}

func (Planks) BreakInfo

func (p Planks) BreakInfo() BreakInfo

func (Planks) EncodeBlock

func (p Planks) EncodeBlock() (name string, properties map[string]any)

func (Planks) EncodeItem

func (p Planks) EncodeItem() (name string, meta int16)

func (Planks) FlammabilityInfo

func (p Planks) FlammabilityInfo() FlammabilityInfo

func (Planks) FuelInfo

func (p Planks) FuelInfo() item.FuelInfo

func (Planks) Hash

func (p Planks) Hash() (uint64, uint64)

func (Planks) Instrument

func (Planks) Instrument() sound.Instrument

func (Planks) Model

func (Planks) Model() world.BlockModel

func (Planks) RepairsWoodTools

func (p Planks) RepairsWoodTools() bool

type Podzol

type Podzol struct {
	// contains filtered or unexported fields
}

func (Podzol) BreakInfo

func (p Podzol) BreakInfo() BreakInfo

func (Podzol) EncodeBlock

func (Podzol) EncodeBlock() (string, map[string]any)

func (Podzol) EncodeItem

func (Podzol) EncodeItem() (name string, meta int16)

func (Podzol) Hash

func (Podzol) Hash() (uint64, uint64)

func (Podzol) Model

func (Podzol) Model() world.BlockModel

func (Podzol) Shovel

func (Podzol) Shovel() (world.Block, bool)

func (Podzol) SoilFor

func (p Podzol) SoilFor(block world.Block) bool

type PolishedBlackstoneBrick

type PolishedBlackstoneBrick struct {
	Cracked bool
	// contains filtered or unexported fields
}

func (PolishedBlackstoneBrick) BreakInfo

func (b PolishedBlackstoneBrick) BreakInfo() BreakInfo

func (PolishedBlackstoneBrick) EncodeBlock

func (b PolishedBlackstoneBrick) EncodeBlock() (string, map[string]any)

func (PolishedBlackstoneBrick) EncodeItem

func (b PolishedBlackstoneBrick) EncodeItem() (name string, meta int16)

func (PolishedBlackstoneBrick) Hash

func (PolishedBlackstoneBrick) Instrument

func (PolishedBlackstoneBrick) Instrument() sound.Instrument

func (PolishedBlackstoneBrick) Model

func (PolishedBlackstoneBrick) Model() world.BlockModel

func (PolishedBlackstoneBrick) SmeltInfo

func (b PolishedBlackstoneBrick) SmeltInfo() item.SmeltInfo

type PolishedCinnabar

type PolishedCinnabar struct {
	// contains filtered or unexported fields
}

func (PolishedCinnabar) BreakInfo

func (c PolishedCinnabar) BreakInfo() BreakInfo

func (PolishedCinnabar) EncodeBlock

func (PolishedCinnabar) EncodeBlock() (string, map[string]any)

func (PolishedCinnabar) EncodeItem

func (PolishedCinnabar) EncodeItem() (name string, meta int16)

func (PolishedCinnabar) Hash

func (PolishedCinnabar) Hash() (uint64, uint64)

func (PolishedCinnabar) Instrument

func (PolishedCinnabar) Instrument() sound.Instrument

func (PolishedCinnabar) Model

func (PolishedCinnabar) Model() world.BlockModel

type PolishedSulfur

type PolishedSulfur struct {
	// contains filtered or unexported fields
}

func (PolishedSulfur) BreakInfo

func (s PolishedSulfur) BreakInfo() BreakInfo

func (PolishedSulfur) EncodeBlock

func (PolishedSulfur) EncodeBlock() (string, map[string]any)

func (PolishedSulfur) EncodeItem

func (PolishedSulfur) EncodeItem() (name string, meta int16)

func (PolishedSulfur) Hash

func (PolishedSulfur) Hash() (uint64, uint64)

func (PolishedSulfur) Instrument

func (PolishedSulfur) Instrument() sound.Instrument

func (PolishedSulfur) Model

func (PolishedSulfur) Model() world.BlockModel

type PolishedTuff

type PolishedTuff struct {
	// contains filtered or unexported fields
}

func (PolishedTuff) BreakInfo

func (t PolishedTuff) BreakInfo() BreakInfo

func (PolishedTuff) EncodeBlock

func (t PolishedTuff) EncodeBlock() (string, map[string]any)

func (PolishedTuff) EncodeItem

func (t PolishedTuff) EncodeItem() (name string, meta int16)

func (PolishedTuff) Hash

func (PolishedTuff) Hash() (uint64, uint64)

func (PolishedTuff) Instrument

func (PolishedTuff) Instrument() sound.Instrument

func (PolishedTuff) Model

func (PolishedTuff) Model() world.BlockModel

type Portal

type Portal struct {
	Axis cube.Axis
	// contains filtered or unexported fields
}

func (Portal) EncodeBlock

func (p Portal) EncodeBlock() (string, map[string]any)

func (Portal) EntityInside

func (p Portal) EntityInside(_ cube.Pos, tx *world.Tx, e world.Entity)

func (Portal) HasLiquidDrops

func (p Portal) HasLiquidDrops() bool

func (Portal) Hash

func (p Portal) Hash() (uint64, uint64)

func (Portal) LightDiffusionLevel

func (Portal) LightDiffusionLevel() uint8

func (Portal) LightEmissionLevel

func (Portal) LightEmissionLevel() uint8

func (Portal) Model

func (p Portal) Model() world.BlockModel

func (Portal) NeighbourUpdateTick

func (p Portal) NeighbourUpdateTick(pos, neighbour cube.Pos, tx *world.Tx)

func (Portal) PillarAxis

func (b Portal) PillarAxis() cube.Axis

func (Portal) Portal

func (Portal) Portal() world.Dimension

func (Portal) WithAxis

func (b Portal) WithAxis(axis cube.Axis) world.Block

type PotDecoration

type PotDecoration interface {
	world.Item
	PotDecoration() bool
}

type Potato

type Potato struct {
	// contains filtered or unexported fields
}

func (Potato) AlwaysConsumable

func (p Potato) AlwaysConsumable() bool

func (Potato) BoneMeal

func (p Potato) BoneMeal(pos cube.Pos, tx *world.Tx) item.BoneMealResult

func (Potato) BreakInfo

func (p Potato) BreakInfo() BreakInfo

func (Potato) CalculateGrowthChance

func (c Potato) CalculateGrowthChance(pos cube.Pos, tx *world.Tx) float64

func (Potato) CompostChance

func (Potato) CompostChance() float64

func (Potato) Consume

func (p Potato) Consume(_ *world.Tx, c item.Consumer) item.Stack

func (Potato) ConsumeDuration

func (p Potato) ConsumeDuration() time.Duration

func (Potato) EncodeBlock

func (p Potato) EncodeBlock() (name string, properties map[string]any)

func (Potato) EncodeItem

func (p Potato) EncodeItem() (name string, meta int16)

func (Potato) GrowthStage

func (c Potato) GrowthStage() int

func (Potato) HasLiquidDrops

func (c Potato) HasLiquidDrops() bool

func (Potato) Hash

func (p Potato) Hash() (uint64, uint64)

func (Potato) NeighbourUpdateTick

func (c Potato) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Potato) RandomTick

func (p Potato) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (Potato) SameCrop

func (Potato) SameCrop(c Crop) bool

func (Potato) SmeltInfo

func (p Potato) SmeltInfo() item.SmeltInfo

func (Potato) UseOnBlock

func (p Potato) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type Prismarine

type Prismarine struct {
	Type PrismarineType
	// contains filtered or unexported fields
}

func (Prismarine) BreakInfo

func (p Prismarine) BreakInfo() BreakInfo

func (Prismarine) EncodeBlock

func (p Prismarine) EncodeBlock() (name string, properties map[string]any)

func (Prismarine) EncodeItem

func (p Prismarine) EncodeItem() (id string, meta int16)

func (Prismarine) Hash

func (p Prismarine) Hash() (uint64, uint64)

func (Prismarine) Instrument

func (Prismarine) Instrument() sound.Instrument

func (Prismarine) Model

func (Prismarine) Model() world.BlockModel

type PrismarineType

type PrismarineType struct {
	// contains filtered or unexported fields
}

func BrickPrismarine

func BrickPrismarine() PrismarineType

func DarkPrismarine

func DarkPrismarine() PrismarineType

func NormalPrismarine

func NormalPrismarine() PrismarineType

func PrismarineTypes

func PrismarineTypes() []PrismarineType

func (PrismarineType) Name

func (s PrismarineType) Name() string

func (PrismarineType) String

func (s PrismarineType) String() string

func (PrismarineType) Uint8

func (s PrismarineType) Uint8() uint8

type ProjectileHitter

type ProjectileHitter interface {
	ProjectileHit(pos cube.Pos, tx *world.Tx, e world.Entity, face cube.Face)
}

type Pumpkin

type Pumpkin struct {
	Carved bool

	Facing cube.Direction
	// contains filtered or unexported fields
}

func (Pumpkin) BreakInfo

func (p Pumpkin) BreakInfo() BreakInfo

func (Pumpkin) Carve

func (p Pumpkin) Carve(f cube.Face) (world.Block, bool)

func (Pumpkin) CompostChance

func (Pumpkin) CompostChance() float64

func (Pumpkin) DefencePoints

func (p Pumpkin) DefencePoints() float64

func (Pumpkin) EncodeBlock

func (p Pumpkin) EncodeBlock() (name string, properties map[string]any)

func (Pumpkin) EncodeItem

func (p Pumpkin) EncodeItem() (name string, meta int16)

func (Pumpkin) FacingDirection

func (b Pumpkin) FacingDirection() cube.Direction

func (Pumpkin) Hash

func (p Pumpkin) Hash() (uint64, uint64)

func (Pumpkin) Helmet

func (p Pumpkin) Helmet() bool

func (Pumpkin) Instrument

func (p Pumpkin) Instrument() sound.Instrument

func (Pumpkin) KnockBackResistance

func (p Pumpkin) KnockBackResistance() float64

func (Pumpkin) Model

func (Pumpkin) Model() world.BlockModel

func (Pumpkin) Toughness

func (p Pumpkin) Toughness() float64

func (Pumpkin) UseOnBlock

func (p Pumpkin) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (Pumpkin) WithFacing

func (b Pumpkin) WithFacing(facing cube.Direction) world.Block

type PumpkinSeeds

type PumpkinSeeds struct {
	Direction cube.Face
	// contains filtered or unexported fields
}

func (PumpkinSeeds) BoneMeal

func (p PumpkinSeeds) BoneMeal(pos cube.Pos, tx *world.Tx) item.BoneMealResult

func (PumpkinSeeds) BreakInfo

func (p PumpkinSeeds) BreakInfo() BreakInfo

func (PumpkinSeeds) CalculateGrowthChance

func (c PumpkinSeeds) CalculateGrowthChance(pos cube.Pos, tx *world.Tx) float64

func (PumpkinSeeds) CompostChance

func (PumpkinSeeds) CompostChance() float64

func (PumpkinSeeds) EncodeBlock

func (p PumpkinSeeds) EncodeBlock() (name string, properties map[string]any)

func (PumpkinSeeds) EncodeItem

func (p PumpkinSeeds) EncodeItem() (name string, meta int16)

func (PumpkinSeeds) GrowthStage

func (c PumpkinSeeds) GrowthStage() int

func (PumpkinSeeds) HasLiquidDrops

func (c PumpkinSeeds) HasLiquidDrops() bool

func (PumpkinSeeds) Hash

func (p PumpkinSeeds) Hash() (uint64, uint64)

func (PumpkinSeeds) NeighbourUpdateTick

func (p PumpkinSeeds) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (PumpkinSeeds) RandomTick

func (p PumpkinSeeds) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (PumpkinSeeds) SameCrop

func (PumpkinSeeds) SameCrop(c Crop) bool

func (PumpkinSeeds) UseOnBlock

func (p PumpkinSeeds) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type Punchable

type Punchable interface {
	Punch(pos cube.Pos, clickedFace cube.Face, tx *world.Tx, u item.User)
}

type Purpur

type Purpur struct {
	// contains filtered or unexported fields
}

func (Purpur) BreakInfo

func (p Purpur) BreakInfo() BreakInfo

func (Purpur) EncodeBlock

func (p Purpur) EncodeBlock() (name string, properties map[string]interface{})

func (Purpur) EncodeItem

func (p Purpur) EncodeItem() (name string, meta int16)

func (Purpur) Hash

func (Purpur) Hash() (uint64, uint64)

func (Purpur) Instrument

func (Purpur) Instrument() sound.Instrument

func (Purpur) Model

func (Purpur) Model() world.BlockModel

type PurpurPillar

type PurpurPillar struct {
	Axis cube.Axis
	// contains filtered or unexported fields
}

func (PurpurPillar) BreakInfo

func (p PurpurPillar) BreakInfo() BreakInfo

func (PurpurPillar) EncodeBlock

func (p PurpurPillar) EncodeBlock() (name string, properties map[string]interface{})

func (PurpurPillar) EncodeItem

func (p PurpurPillar) EncodeItem() (name string, meta int16)

func (PurpurPillar) Hash

func (p PurpurPillar) Hash() (uint64, uint64)

func (PurpurPillar) Instrument

func (PurpurPillar) Instrument() sound.Instrument

func (PurpurPillar) Model

func (PurpurPillar) Model() world.BlockModel

func (PurpurPillar) PillarAxis

func (b PurpurPillar) PillarAxis() cube.Axis

func (PurpurPillar) UseOnBlock

func (p PurpurPillar) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (PurpurPillar) WithAxis

func (b PurpurPillar) WithAxis(axis cube.Axis) world.Block

type Quartz

type Quartz struct {
	Smooth bool
	// contains filtered or unexported fields
}

func (Quartz) BreakInfo

func (q Quartz) BreakInfo() BreakInfo

func (Quartz) EncodeBlock

func (q Quartz) EncodeBlock() (name string, properties map[string]any)

func (Quartz) EncodeItem

func (q Quartz) EncodeItem() (name string, meta int16)

func (Quartz) Hash

func (q Quartz) Hash() (uint64, uint64)

func (Quartz) Instrument

func (Quartz) Instrument() sound.Instrument

func (Quartz) Model

func (Quartz) Model() world.BlockModel

func (Quartz) SmeltInfo

func (q Quartz) SmeltInfo() item.SmeltInfo

type QuartzBricks

type QuartzBricks struct {
	// contains filtered or unexported fields
}

func (QuartzBricks) BreakInfo

func (q QuartzBricks) BreakInfo() BreakInfo

func (QuartzBricks) EncodeBlock

func (QuartzBricks) EncodeBlock() (string, map[string]any)

func (QuartzBricks) EncodeItem

func (QuartzBricks) EncodeItem() (name string, meta int16)

func (QuartzBricks) Hash

func (QuartzBricks) Hash() (uint64, uint64)

func (QuartzBricks) Instrument

func (QuartzBricks) Instrument() sound.Instrument

func (QuartzBricks) Model

func (QuartzBricks) Model() world.BlockModel

type QuartzPillar

type QuartzPillar struct {
	Axis cube.Axis
	// contains filtered or unexported fields
}

func (QuartzPillar) BreakInfo

func (q QuartzPillar) BreakInfo() BreakInfo

func (QuartzPillar) EncodeBlock

func (q QuartzPillar) EncodeBlock() (name string, properties map[string]any)

func (QuartzPillar) EncodeItem

func (q QuartzPillar) EncodeItem() (name string, meta int16)

func (QuartzPillar) Hash

func (q QuartzPillar) Hash() (uint64, uint64)

func (QuartzPillar) Instrument

func (QuartzPillar) Instrument() sound.Instrument

func (QuartzPillar) Model

func (QuartzPillar) Model() world.BlockModel

func (QuartzPillar) PillarAxis

func (b QuartzPillar) PillarAxis() cube.Axis

func (QuartzPillar) UseOnBlock

func (q QuartzPillar) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (QuartzPillar) WithAxis

func (b QuartzPillar) WithAxis(axis cube.Axis) world.Block

type RawCopper

type RawCopper struct {
	// contains filtered or unexported fields
}

func (RawCopper) BreakInfo

func (r RawCopper) BreakInfo() BreakInfo

func (RawCopper) EncodeBlock

func (RawCopper) EncodeBlock() (string, map[string]any)

func (RawCopper) EncodeItem

func (RawCopper) EncodeItem() (name string, meta int16)

func (RawCopper) Hash

func (RawCopper) Hash() (uint64, uint64)

func (RawCopper) Instrument

func (RawCopper) Instrument() sound.Instrument

func (RawCopper) Model

func (RawCopper) Model() world.BlockModel

type RawGold

type RawGold struct {
	// contains filtered or unexported fields
}

func (RawGold) BreakInfo

func (g RawGold) BreakInfo() BreakInfo

func (RawGold) EncodeBlock

func (RawGold) EncodeBlock() (string, map[string]any)

func (RawGold) EncodeItem

func (RawGold) EncodeItem() (name string, meta int16)

func (RawGold) Hash

func (RawGold) Hash() (uint64, uint64)

func (RawGold) Instrument

func (RawGold) Instrument() sound.Instrument

func (RawGold) Model

func (RawGold) Model() world.BlockModel

type RawIron

type RawIron struct {
	// contains filtered or unexported fields
}

func (RawIron) BreakInfo

func (r RawIron) BreakInfo() BreakInfo

func (RawIron) EncodeBlock

func (RawIron) EncodeBlock() (string, map[string]any)

func (RawIron) EncodeItem

func (RawIron) EncodeItem() (name string, meta int16)

func (RawIron) Hash

func (RawIron) Hash() (uint64, uint64)

func (RawIron) Instrument

func (RawIron) Instrument() sound.Instrument

func (RawIron) Model

func (RawIron) Model() world.BlockModel

type RedstoneBlock

type RedstoneBlock struct {
	// contains filtered or unexported fields
}

func (RedstoneBlock) BreakInfo

func (r RedstoneBlock) BreakInfo() BreakInfo

func (RedstoneBlock) EncodeBlock

func (r RedstoneBlock) EncodeBlock() (string, map[string]any)

func (RedstoneBlock) EncodeItem

func (r RedstoneBlock) EncodeItem() (name string, meta int16)

func (RedstoneBlock) Hash

func (RedstoneBlock) Hash() (uint64, uint64)

func (RedstoneBlock) Model

func (RedstoneBlock) Model() world.BlockModel

func (RedstoneBlock) RedstoneNonConductive

func (RedstoneBlock) RedstoneNonConductive()

func (RedstoneBlock) RedstonePower

func (RedstoneBlock) RedstonePower(cube.Pos, *world.Tx, cube.Face) int

func (RedstoneBlock) RedstoneStrongPower

func (RedstoneBlock) RedstoneStrongPower(cube.Pos, *world.Tx, cube.Face) int

func (RedstoneBlock) UseOnBlock

func (r RedstoneBlock) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type RedstoneOre

type RedstoneOre struct {
	Type OreType

	Lit bool
	// contains filtered or unexported fields
}

func (RedstoneOre) Activate

func (r RedstoneOre) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (RedstoneOre) BreakInfo

func (r RedstoneOre) BreakInfo() BreakInfo

func (RedstoneOre) EncodeBlock

func (r RedstoneOre) EncodeBlock() (string, map[string]any)

func (RedstoneOre) EncodeItem

func (r RedstoneOre) EncodeItem() (name string, meta int16)

func (RedstoneOre) EntityStepOn

func (r RedstoneOre) EntityStepOn(pos cube.Pos, tx *world.Tx, e world.Entity)

func (RedstoneOre) Hash

func (r RedstoneOre) Hash() (uint64, uint64)

func (RedstoneOre) Instrument

func (RedstoneOre) Instrument() sound.Instrument

func (RedstoneOre) LightEmissionLevel

func (r RedstoneOre) LightEmissionLevel() uint8

func (RedstoneOre) Model

func (RedstoneOre) Model() world.BlockModel

func (RedstoneOre) Punch

func (r RedstoneOre) Punch(pos cube.Pos, _ cube.Face, tx *world.Tx, _ item.User)

func (RedstoneOre) RandomTick

func (r RedstoneOre) RandomTick(pos cube.Pos, tx *world.Tx, _ *rand.Rand)

func (RedstoneOre) SmeltInfo

func (RedstoneOre) SmeltInfo() item.SmeltInfo

type RedstoneTorch

type RedstoneTorch struct {
	Facing cube.Face

	Lit bool
	// contains filtered or unexported fields
}

func (RedstoneTorch) BreakInfo

func (t RedstoneTorch) BreakInfo() BreakInfo

func (RedstoneTorch) EncodeBlock

func (t RedstoneTorch) EncodeBlock() (name string, properties map[string]any)

func (RedstoneTorch) EncodeItem

func (RedstoneTorch) EncodeItem() (name string, meta int16)

func (RedstoneTorch) HasLiquidDrops

func (RedstoneTorch) HasLiquidDrops() bool

func (RedstoneTorch) Hash

func (t RedstoneTorch) Hash() (uint64, uint64)

func (RedstoneTorch) LightDiffusionLevel

func (RedstoneTorch) LightDiffusionLevel() uint8

func (RedstoneTorch) LightEmissionLevel

func (t RedstoneTorch) LightEmissionLevel() uint8

func (RedstoneTorch) Model

func (RedstoneTorch) Model() world.BlockModel

func (RedstoneTorch) NeighbourUpdateTick

func (t RedstoneTorch) NeighbourUpdateTick(pos, changed cube.Pos, tx *world.Tx)

func (RedstoneTorch) RedstonePower

func (t RedstoneTorch) RedstonePower(_ cube.Pos, _ *world.Tx, face cube.Face) int

func (RedstoneTorch) RedstonePowerActionUpdate

func (t RedstoneTorch) RedstonePowerActionUpdate(pos cube.Pos, tx *world.Tx, update world.RedstoneUpdate)

func (RedstoneTorch) RedstoneStrongPower

func (t RedstoneTorch) RedstoneStrongPower(pos cube.Pos, tx *world.Tx, face cube.Face) int

func (RedstoneTorch) ScheduledTick

func (t RedstoneTorch) ScheduledTick(pos cube.Pos, tx *world.Tx, _ *rand.Rand)

func (RedstoneTorch) UseOnBlock

func (t RedstoneTorch) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type RedstoneWire

type RedstoneWire struct {
	Power int
	// contains filtered or unexported fields
}

func (RedstoneWire) BreakInfo

func (r RedstoneWire) BreakInfo() BreakInfo

func (RedstoneWire) EncodeBlock

func (r RedstoneWire) EncodeBlock() (string, map[string]any)

func (RedstoneWire) EncodeItem

func (RedstoneWire) EncodeItem() (name string, meta int16)

func (RedstoneWire) HasLiquidDrops

func (RedstoneWire) HasLiquidDrops() bool

func (RedstoneWire) Hash

func (r RedstoneWire) Hash() (uint64, uint64)

func (RedstoneWire) LightDiffusionLevel

func (RedstoneWire) LightDiffusionLevel() uint8

func (RedstoneWire) MaterialColour

func (RedstoneWire) MaterialColour() string

func (RedstoneWire) Model

func (RedstoneWire) Model() world.BlockModel

func (RedstoneWire) NeighbourUpdateTick

func (r RedstoneWire) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (RedstoneWire) RedstonePower

func (r RedstoneWire) RedstonePower(pos cube.Pos, tx *world.Tx, face cube.Face) int

func (RedstoneWire) RedstonePowerUpdate

func (r RedstoneWire) RedstonePowerUpdate(_ cube.Pos, _ *world.Tx, power int) (world.Block, bool)

func (RedstoneWire) RedstoneRelayerNeighbours

func (RedstoneWire) RedstoneRelayerNeighbours(pos cube.Pos, tx *world.Tx) []cube.Pos

func (RedstoneWire) RedstoneSignalLoss

func (RedstoneWire) RedstoneSignalLoss(cube.Pos, *world.Tx) int

func (RedstoneWire) RedstoneWeaklyPowersBlocks

func (RedstoneWire) RedstoneWeaklyPowersBlocks() bool

func (RedstoneWire) SideClosed

func (RedstoneWire) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (RedstoneWire) TrimMaterial

func (RedstoneWire) TrimMaterial() string

func (RedstoneWire) UseOnBlock

func (r RedstoneWire) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type RedstoneWireStepDowner

type RedstoneWireStepDowner interface {
	CanRedstoneWireStepDown(pos, from cube.Pos, tx *world.Tx) bool
}

type ReinforcedDeepslate

type ReinforcedDeepslate struct {
	// contains filtered or unexported fields
}

func (ReinforcedDeepslate) BreakInfo

func (r ReinforcedDeepslate) BreakInfo() BreakInfo

func (ReinforcedDeepslate) EncodeBlock

func (ReinforcedDeepslate) EncodeBlock() (string, map[string]interface{})

func (ReinforcedDeepslate) EncodeItem

func (ReinforcedDeepslate) EncodeItem() (name string, meta int16)

func (ReinforcedDeepslate) Hash

func (ReinforcedDeepslate) Hash() (uint64, uint64)

func (ReinforcedDeepslate) Instrument

func (ReinforcedDeepslate) Instrument() sound.Instrument

func (ReinforcedDeepslate) Model

func (ReinforcedDeepslate) Model() world.BlockModel

type Replaceable

type Replaceable interface {
	ReplaceableBy(b world.Block) bool
}

type Resin

type Resin struct {
	// contains filtered or unexported fields
}

func (Resin) BreakInfo

func (r Resin) BreakInfo() BreakInfo

func (Resin) EncodeBlock

func (Resin) EncodeBlock() (string, map[string]any)

func (Resin) EncodeItem

func (Resin) EncodeItem() (name string, meta int16)

func (Resin) Hash

func (Resin) Hash() (uint64, uint64)

func (Resin) Model

func (Resin) Model() world.BlockModel

type ResinBricks

type ResinBricks struct {
	Chiseled bool
	// contains filtered or unexported fields
}

func (ResinBricks) BreakInfo

func (r ResinBricks) BreakInfo() BreakInfo

func (ResinBricks) EncodeBlock

func (r ResinBricks) EncodeBlock() (string, map[string]any)

func (ResinBricks) EncodeItem

func (r ResinBricks) EncodeItem() (name string, meta int16)

func (ResinBricks) Hash

func (r ResinBricks) Hash() (uint64, uint64)

func (ResinBricks) Instrument

func (ResinBricks) Instrument() sound.Instrument

func (ResinBricks) Model

func (ResinBricks) Model() world.BlockModel

type Sand

type Sand struct {
	Red bool
	// contains filtered or unexported fields
}

func (Sand) BreakInfo

func (s Sand) BreakInfo() BreakInfo

func (Sand) EncodeBlock

func (s Sand) EncodeBlock() (string, map[string]any)

func (Sand) EncodeItem

func (s Sand) EncodeItem() (name string, meta int16)

func (Sand) Hash

func (s Sand) Hash() (uint64, uint64)

func (Sand) Instrument

func (Sand) Instrument() sound.Instrument

func (Sand) Model

func (Sand) Model() world.BlockModel

func (Sand) NeighbourUpdateTick

func (s Sand) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Sand) SmeltInfo

func (Sand) SmeltInfo() item.SmeltInfo

func (Sand) SoilFor

func (s Sand) SoilFor(block world.Block) bool

func (Sand) Solidifies

func (g Sand) Solidifies(cube.Pos, *world.Tx) bool

type Sandstone

type Sandstone struct {
	Type SandstoneType

	Red bool
	// contains filtered or unexported fields
}

func (Sandstone) BreakInfo

func (s Sandstone) BreakInfo() BreakInfo

func (Sandstone) EncodeBlock

func (s Sandstone) EncodeBlock() (string, map[string]any)

func (Sandstone) EncodeItem

func (s Sandstone) EncodeItem() (name string, meta int16)

func (Sandstone) Hash

func (s Sandstone) Hash() (uint64, uint64)

func (Sandstone) Instrument

func (Sandstone) Instrument() sound.Instrument

func (Sandstone) Model

func (Sandstone) Model() world.BlockModel

func (Sandstone) SmeltInfo

func (s Sandstone) SmeltInfo() item.SmeltInfo

type SandstoneType

type SandstoneType struct {
	// contains filtered or unexported fields
}

func ChiseledSandstone

func ChiseledSandstone() SandstoneType

func CutSandstone

func CutSandstone() SandstoneType

func NormalSandstone

func NormalSandstone() SandstoneType

func SandstoneTypes

func SandstoneTypes() []SandstoneType

func SmoothSandstone

func SmoothSandstone() SandstoneType

func (SandstoneType) Name

func (s SandstoneType) Name() string

func (SandstoneType) String

func (s SandstoneType) String() string

func (SandstoneType) Uint8

func (s SandstoneType) Uint8() uint8

type SeaLantern

type SeaLantern struct {
	// contains filtered or unexported fields
}

func (SeaLantern) BreakInfo

func (s SeaLantern) BreakInfo() BreakInfo

func (SeaLantern) EncodeBlock

func (SeaLantern) EncodeBlock() (string, map[string]any)

func (SeaLantern) EncodeItem

func (SeaLantern) EncodeItem() (name string, meta int16)

func (SeaLantern) Hash

func (SeaLantern) Hash() (uint64, uint64)

func (SeaLantern) Instrument

func (SeaLantern) Instrument() sound.Instrument

func (SeaLantern) LightDiffusionLevel

func (SeaLantern) LightDiffusionLevel() uint8

func (SeaLantern) LightEmissionLevel

func (SeaLantern) LightEmissionLevel() uint8

func (SeaLantern) Model

func (SeaLantern) Model() world.BlockModel

type SeaPickle

type SeaPickle struct {
	AdditionalCount int

	Dead bool
	// contains filtered or unexported fields
}

func (SeaPickle) BoneMeal

func (s SeaPickle) BoneMeal(pos cube.Pos, tx *world.Tx) item.BoneMealResult

func (SeaPickle) BreakInfo

func (s SeaPickle) BreakInfo() BreakInfo

func (SeaPickle) CanDisplace

func (s SeaPickle) CanDisplace(b world.Liquid) bool

func (SeaPickle) CompostChance

func (SeaPickle) CompostChance() float64

func (SeaPickle) EncodeBlock

func (s SeaPickle) EncodeBlock() (string, map[string]any)

func (SeaPickle) EncodeItem

func (SeaPickle) EncodeItem() (name string, meta int16)

func (SeaPickle) FlammabilityInfo

func (SeaPickle) FlammabilityInfo() FlammabilityInfo

func (SeaPickle) HasLiquidDrops

func (SeaPickle) HasLiquidDrops() bool

func (SeaPickle) Hash

func (s SeaPickle) Hash() (uint64, uint64)

func (SeaPickle) LightDiffusionLevel

func (SeaPickle) LightDiffusionLevel() uint8

func (SeaPickle) LightEmissionLevel

func (s SeaPickle) LightEmissionLevel() uint8

func (SeaPickle) Model

func (SeaPickle) Model() world.BlockModel

func (SeaPickle) NeighbourUpdateTick

func (s SeaPickle) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (SeaPickle) SideClosed

func (SeaPickle) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (SeaPickle) SmeltInfo

func (SeaPickle) SmeltInfo() item.SmeltInfo

func (SeaPickle) UseOnBlock

func (s SeaPickle) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type ShortGrass

type ShortGrass struct {
	Double bool
	// contains filtered or unexported fields
}

func (ShortGrass) BoneMeal

func (g ShortGrass) BoneMeal(pos cube.Pos, tx *world.Tx) item.BoneMealResult

func (ShortGrass) BreakInfo

func (g ShortGrass) BreakInfo() BreakInfo

func (ShortGrass) CompostChance

func (g ShortGrass) CompostChance() float64

func (ShortGrass) EncodeBlock

func (g ShortGrass) EncodeBlock() (name string, properties map[string]any)

func (ShortGrass) EncodeItem

func (g ShortGrass) EncodeItem() (name string, meta int16)

func (ShortGrass) FlammabilityInfo

func (g ShortGrass) FlammabilityInfo() FlammabilityInfo

func (ShortGrass) HasLiquidDrops

func (g ShortGrass) HasLiquidDrops() bool

func (ShortGrass) Hash

func (ShortGrass) Hash() (uint64, uint64)

func (ShortGrass) LightDiffusionLevel

func (ShortGrass) LightDiffusionLevel() uint8

func (ShortGrass) Model

func (ShortGrass) Model() world.BlockModel

func (ShortGrass) NeighbourUpdateTick

func (g ShortGrass) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (ShortGrass) ReplaceableBy

func (ShortGrass) ReplaceableBy(world.Block) bool

func (ShortGrass) UseOnBlock

func (g ShortGrass) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type Shroomlight

type Shroomlight struct {
	// contains filtered or unexported fields
}

func (Shroomlight) BreakInfo

func (s Shroomlight) BreakInfo() BreakInfo

func (Shroomlight) CompostChance

func (Shroomlight) CompostChance() float64

func (Shroomlight) EncodeBlock

func (Shroomlight) EncodeBlock() (string, map[string]any)

func (Shroomlight) EncodeItem

func (Shroomlight) EncodeItem() (name string, meta int16)

func (Shroomlight) Hash

func (Shroomlight) Hash() (uint64, uint64)

func (Shroomlight) LightEmissionLevel

func (Shroomlight) LightEmissionLevel() uint8

func (Shroomlight) Model

func (Shroomlight) Model() world.BlockModel

type ShulkerBox

type ShulkerBox struct {
	Colour item.OptionalColour

	Facing cube.Face

	CustomName string
	// contains filtered or unexported fields
}

func NewShulkerBox

func NewShulkerBox() ShulkerBox

func (ShulkerBox) Activate

func (s ShulkerBox) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (ShulkerBox) AddViewer

func (s ShulkerBox) AddViewer(v ContainerViewer, tx *world.Tx, pos cube.Pos)

func (ShulkerBox) BreakInfo

func (s ShulkerBox) BreakInfo() BreakInfo

func (ShulkerBox) CanDisplace

func (s ShulkerBox) CanDisplace(b world.Liquid) bool

func (ShulkerBox) DecodeNBT

func (s ShulkerBox) DecodeNBT(data map[string]any) any

func (ShulkerBox) EncodeBlock

func (s ShulkerBox) EncodeBlock() (name string, properties map[string]any)

func (ShulkerBox) EncodeItem

func (s ShulkerBox) EncodeItem() (id string, meta int16)

func (ShulkerBox) EncodeNBT

func (s ShulkerBox) EncodeNBT() map[string]any

func (ShulkerBox) Hash

func (s ShulkerBox) Hash() (uint64, uint64)

func (ShulkerBox) Inventory

func (s ShulkerBox) Inventory(*world.Tx, cube.Pos) *inventory.Inventory

func (ShulkerBox) LightDiffusionLevel

func (ShulkerBox) LightDiffusionLevel() uint8

func (ShulkerBox) MaxCount

func (s ShulkerBox) MaxCount() int

func (ShulkerBox) Model

func (s ShulkerBox) Model() world.BlockModel

func (ShulkerBox) RemoveViewer

func (s ShulkerBox) RemoveViewer(v ContainerViewer, tx *world.Tx, pos cube.Pos)

func (ShulkerBox) ScheduledTick

func (s ShulkerBox) ScheduledTick(pos cube.Pos, tx *world.Tx, _ *rand.Rand)

func (ShulkerBox) UseOnBlock

func (s ShulkerBox) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (ShulkerBox) WithName

func (s ShulkerBox) WithName(a ...any) world.Item

type Sign

type Sign struct {
	Wood WoodType

	Attach Attachment

	Waxed bool

	Front SignText

	Back SignText
	// contains filtered or unexported fields
}

func (Sign) Activate

func (s Sign) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (Sign) BreakInfo

func (s Sign) BreakInfo() BreakInfo

func (Sign) CanDisplace

func (s Sign) CanDisplace(b world.Liquid) bool

func (Sign) DecodeNBT

func (s Sign) DecodeNBT(data map[string]any) any

func (Sign) Dye

func (s Sign) Dye(pos cube.Pos, userPos mgl64.Vec3, c item.Colour) (world.Block, bool)

func (Sign) EditingFrontSide

func (s Sign) EditingFrontSide(pos cube.Pos, userPos mgl64.Vec3) bool

func (Sign) EncodeBlock

func (s Sign) EncodeBlock() (name string, properties map[string]any)

func (Sign) EncodeItem

func (s Sign) EncodeItem() (name string, meta int16)

func (Sign) EncodeNBT

func (s Sign) EncodeNBT() map[string]any

func (Sign) FlammabilityInfo

func (s Sign) FlammabilityInfo() FlammabilityInfo

func (Sign) FuelInfo

func (s Sign) FuelInfo() item.FuelInfo

func (Sign) Hash

func (s Sign) Hash() (uint64, uint64)

func (Sign) Ink

func (s Sign) Ink(pos cube.Pos, userPos mgl64.Vec3, glowing bool) (world.Block, bool)

func (Sign) Instrument

func (Sign) Instrument() sound.Instrument

func (Sign) LightDiffusionLevel

func (Sign) LightDiffusionLevel() uint8

func (Sign) MaxCount

func (s Sign) MaxCount() int

func (Sign) Model

func (Sign) Model() world.BlockModel

func (Sign) NeighbourUpdateTick

func (s Sign) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Sign) SideClosed

func (s Sign) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (Sign) UseOnBlock

func (s Sign) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (Sign) Wax

func (s Sign) Wax(cube.Pos, mgl64.Vec3) (world.Block, bool)

type SignEditor

type SignEditor interface {
	OpenSign(pos cube.Pos, frontSide bool)
}

type SignText

type SignText struct {
	Text string

	BaseColour color.RGBA

	Glowing bool

	Owner string
}

type Skull

type Skull struct {
	Type SkullType

	Attach Attachment
	// contains filtered or unexported fields
}

func (Skull) BreakInfo

func (s Skull) BreakInfo() BreakInfo

func (Skull) CanDisplace

func (s Skull) CanDisplace(b world.Liquid) bool

func (Skull) DecodeNBT

func (s Skull) DecodeNBT(data map[string]interface{}) interface{}

func (Skull) DefencePoints

func (Skull) DefencePoints() float64

func (Skull) EncodeBlock

func (s Skull) EncodeBlock() (string, map[string]interface{})

func (Skull) EncodeItem

func (s Skull) EncodeItem() (name string, meta int16)

func (Skull) EncodeNBT

func (s Skull) EncodeNBT() map[string]interface{}

func (Skull) HasLiquidDrops

func (Skull) HasLiquidDrops() bool

func (Skull) Hash

func (s Skull) Hash() (uint64, uint64)

func (Skull) Helmet

func (Skull) Helmet() bool

func (Skull) KnockBackResistance

func (Skull) KnockBackResistance() float64

func (Skull) LightDiffusionLevel

func (Skull) LightDiffusionLevel() uint8

func (Skull) Model

func (s Skull) Model() world.BlockModel

func (Skull) SideClosed

func (Skull) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (Skull) Toughness

func (Skull) Toughness() float64

func (Skull) UseOnBlock

func (s Skull) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

type SkullType

type SkullType struct {
	// contains filtered or unexported fields
}

func CreeperHead

func CreeperHead() SkullType

func DragonHead

func DragonHead() SkullType

func PiglinHead

func PiglinHead() SkullType

func PlayerHead

func PlayerHead() SkullType

func SkeletonSkull

func SkeletonSkull() SkullType

func SkullTypes

func SkullTypes() []SkullType

func WitherSkeletonSkull

func WitherSkeletonSkull() SkullType

func ZombieHead

func ZombieHead() SkullType

func (SkullType) Name

func (s SkullType) Name() string

func (SkullType) String

func (s SkullType) String() string

func (SkullType) Uint8

func (s SkullType) Uint8() uint8

type Slab

type Slab struct {
	Block world.Block

	Top bool

	Double bool
}

func (Slab) BreakInfo

func (s Slab) BreakInfo() BreakInfo

func (Slab) CanDisplace

func (s Slab) CanDisplace(b world.Liquid) bool

func (Slab) CanRedstoneWireStepDown

func (s Slab) CanRedstoneWireStepDown(cube.Pos, cube.Pos, *world.Tx) bool

func (Slab) EncodeBlock

func (s Slab) EncodeBlock() (string, map[string]any)

func (Slab) EncodeItem

func (s Slab) EncodeItem() (string, int16)

func (Slab) FlammabilityInfo

func (s Slab) FlammabilityInfo() FlammabilityInfo

func (Slab) FuelInfo

func (s Slab) FuelInfo() item.FuelInfo

func (Slab) Hash

func (s Slab) Hash() (uint64, uint64)

func (Slab) Instrument

func (s Slab) Instrument() sound.Instrument

func (Slab) LightDiffusionLevel

func (s Slab) LightDiffusionLevel() uint8

func (Slab) Model

func (s Slab) Model() world.BlockModel

func (Slab) SideClosed

func (s Slab) SideClosed(pos, side cube.Pos, _ *world.Tx) bool

func (Slab) UseOnBlock

func (s Slab) UseOnBlock(pos cube.Pos, face cube.Face, clickPos mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

type Slime

type Slime struct {
	// contains filtered or unexported fields
}

func (Slime) BreakInfo

func (s Slime) BreakInfo() BreakInfo

func (Slime) EncodeBlock

func (Slime) EncodeBlock() (string, map[string]any)

func (Slime) EncodeItem

func (Slime) EncodeItem() (name string, meta int16)

func (Slime) EntityLand

func (Slime) EntityLand(_ cube.Pos, _ *world.Tx, e world.Entity, distance *float64)

func (Slime) Friction

func (Slime) Friction() float64

func (Slime) Hash

func (Slime) Hash() (uint64, uint64)

func (Slime) LightDiffusionLevel

func (Slime) LightDiffusionLevel() uint8

func (Slime) Model

func (Slime) Model() world.BlockModel

type SmithingTable

type SmithingTable struct {
	// contains filtered or unexported fields
}

func (SmithingTable) Activate

func (SmithingTable) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (SmithingTable) BreakInfo

func (s SmithingTable) BreakInfo() BreakInfo

func (SmithingTable) EncodeBlock

func (SmithingTable) EncodeBlock() (name string, properties map[string]interface{})

func (SmithingTable) EncodeItem

func (SmithingTable) EncodeItem() (name string, meta int16)

func (SmithingTable) Hash

func (SmithingTable) Hash() (uint64, uint64)

func (SmithingTable) Instrument

func (SmithingTable) Instrument() sound.Instrument

func (SmithingTable) Model

func (SmithingTable) Model() world.BlockModel

type Smoker

type Smoker struct {
	Facing cube.Direction

	Lit bool
	// contains filtered or unexported fields
}

func NewSmoker

func NewSmoker(face cube.Direction) Smoker

func (Smoker) Activate

func (s Smoker) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (Smoker) AddViewer

func (s Smoker) AddViewer(v ContainerViewer, _ *world.Tx, _ cube.Pos)

func (Smoker) BreakInfo

func (s Smoker) BreakInfo() BreakInfo

func (Smoker) DecodeNBT

func (s Smoker) DecodeNBT(data map[string]interface{}) interface{}

func (Smoker) Durations

func (s Smoker) Durations() (remaining time.Duration, max time.Duration, cook time.Duration)

func (Smoker) EncodeBlock

func (s Smoker) EncodeBlock() (name string, properties map[string]interface{})

func (Smoker) EncodeItem

func (s Smoker) EncodeItem() (name string, meta int16)

func (Smoker) EncodeNBT

func (s Smoker) EncodeNBT() map[string]interface{}

func (Smoker) Experience

func (s Smoker) Experience() int

func (Smoker) ExtractItem

func (s Smoker) ExtractItem(h Hopper, pos cube.Pos, tx *world.Tx) bool

func (Smoker) FacingDirection

func (b Smoker) FacingDirection() cube.Direction

func (Smoker) Hash

func (s Smoker) Hash() (uint64, uint64)

func (Smoker) InsertItem

func (s Smoker) InsertItem(h Hopper, pos cube.Pos, tx *world.Tx) bool

func (Smoker) Instrument

func (Smoker) Instrument() sound.Instrument

func (Smoker) Inventory

func (s Smoker) Inventory(*world.Tx, cube.Pos) *inventory.Inventory

func (Smoker) LightEmissionLevel

func (s Smoker) LightEmissionLevel() uint8

func (Smoker) Model

func (Smoker) Model() world.BlockModel

func (Smoker) RemoveViewer

func (s Smoker) RemoveViewer(v ContainerViewer, _ *world.Tx, _ cube.Pos)

func (Smoker) ResetExperience

func (s Smoker) ResetExperience() int

func (Smoker) Tick

func (s Smoker) Tick(_ int64, pos cube.Pos, tx *world.Tx)

func (Smoker) UseOnBlock

func (s Smoker) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

func (Smoker) WithFacing

func (b Smoker) WithFacing(facing cube.Direction) world.Block

type SmoothBasalt

type SmoothBasalt struct {
	// contains filtered or unexported fields
}

func (SmoothBasalt) BreakInfo

func (s SmoothBasalt) BreakInfo() BreakInfo

func (SmoothBasalt) EncodeBlock

func (SmoothBasalt) EncodeBlock() (string, map[string]any)

func (SmoothBasalt) EncodeItem

func (SmoothBasalt) EncodeItem() (name string, meta int16)

func (SmoothBasalt) Hash

func (SmoothBasalt) Hash() (uint64, uint64)

func (SmoothBasalt) Instrument

func (SmoothBasalt) Instrument() sound.Instrument

func (SmoothBasalt) Model

func (SmoothBasalt) Model() world.BlockModel

type Snow

type Snow struct {
	// contains filtered or unexported fields
}

func (Snow) BreakInfo

func (s Snow) BreakInfo() BreakInfo

func (Snow) EncodeBlock

func (Snow) EncodeBlock() (string, map[string]any)

func (Snow) EncodeItem

func (Snow) EncodeItem() (name string, meta int16)

func (Snow) Hash

func (Snow) Hash() (uint64, uint64)

func (Snow) Model

func (Snow) Model() world.BlockModel

type Soil

type Soil interface {
	SoilFor(world.Block) bool
}

type SoulSand

type SoulSand struct {
	// contains filtered or unexported fields
}

func (SoulSand) BreakInfo

func (s SoulSand) BreakInfo() BreakInfo

func (SoulSand) EncodeBlock

func (SoulSand) EncodeBlock() (string, map[string]any)

func (SoulSand) EncodeItem

func (SoulSand) EncodeItem() (name string, meta int16)

func (SoulSand) Hash

func (SoulSand) Hash() (uint64, uint64)

func (SoulSand) Instrument

func (s SoulSand) Instrument() sound.Instrument

func (SoulSand) Model

func (SoulSand) Model() world.BlockModel

func (SoulSand) SoilFor

func (s SoulSand) SoilFor(block world.Block) bool

type SoulSoil

type SoulSoil struct {
	// contains filtered or unexported fields
}

func (SoulSoil) BreakInfo

func (s SoulSoil) BreakInfo() BreakInfo

func (SoulSoil) EncodeBlock

func (SoulSoil) EncodeBlock() (string, map[string]any)

func (SoulSoil) EncodeItem

func (SoulSoil) EncodeItem() (name string, meta int16)

func (SoulSoil) Hash

func (SoulSoil) Hash() (uint64, uint64)

func (SoulSoil) Model

func (SoulSoil) Model() world.BlockModel

func (SoulSoil) SoilFor

func (s SoulSoil) SoilFor(block world.Block) bool

type Sponge

type Sponge struct {
	Wet bool
	// contains filtered or unexported fields
}

func (Sponge) BreakInfo

func (s Sponge) BreakInfo() BreakInfo

func (Sponge) EncodeBlock

func (s Sponge) EncodeBlock() (string, map[string]any)

func (Sponge) EncodeItem

func (s Sponge) EncodeItem() (name string, meta int16)

func (Sponge) Hash

func (s Sponge) Hash() (uint64, uint64)

func (Sponge) Model

func (Sponge) Model() world.BlockModel

func (Sponge) NeighbourUpdateTick

func (s Sponge) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Sponge) SmeltInfo

func (s Sponge) SmeltInfo() item.SmeltInfo

func (Sponge) UseOnBlock

func (s Sponge) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

type SporeBlossom

type SporeBlossom struct {
	// contains filtered or unexported fields
}

func (SporeBlossom) BreakInfo

func (s SporeBlossom) BreakInfo() BreakInfo

func (SporeBlossom) CompostChance

func (SporeBlossom) CompostChance() float64

func (SporeBlossom) EncodeBlock

func (s SporeBlossom) EncodeBlock() (string, map[string]any)

func (SporeBlossom) EncodeItem

func (s SporeBlossom) EncodeItem() (name string, meta int16)

func (SporeBlossom) FlammabilityInfo

func (SporeBlossom) FlammabilityInfo() FlammabilityInfo

func (SporeBlossom) HasLiquidDrops

func (s SporeBlossom) HasLiquidDrops() bool

func (SporeBlossom) Hash

func (SporeBlossom) Hash() (uint64, uint64)

func (SporeBlossom) LightDiffusionLevel

func (SporeBlossom) LightDiffusionLevel() uint8

func (SporeBlossom) Model

func (SporeBlossom) Model() world.BlockModel

func (SporeBlossom) NeighbourUpdateTick

func (s SporeBlossom) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (SporeBlossom) UseOnBlock

func (s SporeBlossom) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

type StainedGlass

type StainedGlass struct {
	Colour item.Colour
	// contains filtered or unexported fields
}

func (StainedGlass) BreakInfo

func (g StainedGlass) BreakInfo() BreakInfo

func (StainedGlass) DyeColour

func (b StainedGlass) DyeColour() item.Colour

func (StainedGlass) EncodeBlock

func (g StainedGlass) EncodeBlock() (name string, properties map[string]any)

func (StainedGlass) EncodeItem

func (g StainedGlass) EncodeItem() (name string, meta int16)

func (StainedGlass) Hash

func (g StainedGlass) Hash() (uint64, uint64)

func (StainedGlass) Instrument

func (StainedGlass) Instrument() sound.Instrument

func (StainedGlass) LightDiffusionLevel

func (StainedGlass) LightDiffusionLevel() uint8

func (StainedGlass) Model

func (StainedGlass) Model() world.BlockModel

func (StainedGlass) WithColour

func (b StainedGlass) WithColour(colour item.Colour) world.Block

type StainedGlassPane

type StainedGlassPane struct {
	Colour item.Colour
	// contains filtered or unexported fields
}

func (StainedGlassPane) BreakInfo

func (p StainedGlassPane) BreakInfo() BreakInfo

func (StainedGlassPane) CanDisplace

func (s StainedGlassPane) CanDisplace(b world.Liquid) bool

func (StainedGlassPane) DyeColour

func (b StainedGlassPane) DyeColour() item.Colour

func (StainedGlassPane) EncodeBlock

func (p StainedGlassPane) EncodeBlock() (name string, properties map[string]any)

func (StainedGlassPane) EncodeItem

func (p StainedGlassPane) EncodeItem() (name string, meta int16)

func (StainedGlassPane) Hash

func (p StainedGlassPane) Hash() (uint64, uint64)

func (StainedGlassPane) Instrument

func (StainedGlassPane) Instrument() sound.Instrument

func (StainedGlassPane) LightDiffusionLevel

func (StainedGlassPane) LightDiffusionLevel() uint8

func (StainedGlassPane) Model

func (StainedGlassPane) Model() world.BlockModel

func (StainedGlassPane) SideClosed

func (p StainedGlassPane) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (StainedGlassPane) WithColour

func (b StainedGlassPane) WithColour(colour item.Colour) world.Block

type StainedTerracotta

type StainedTerracotta struct {
	Colour item.Colour
	// contains filtered or unexported fields
}

func (StainedTerracotta) BreakInfo

func (t StainedTerracotta) BreakInfo() BreakInfo

func (StainedTerracotta) DyeColour

func (b StainedTerracotta) DyeColour() item.Colour

func (StainedTerracotta) EncodeBlock

func (t StainedTerracotta) EncodeBlock() (name string, properties map[string]any)

func (StainedTerracotta) EncodeItem

func (t StainedTerracotta) EncodeItem() (name string, meta int16)

func (StainedTerracotta) Hash

func (t StainedTerracotta) Hash() (uint64, uint64)

func (StainedTerracotta) Instrument

func (StainedTerracotta) Instrument() sound.Instrument

func (StainedTerracotta) Model

func (StainedTerracotta) Model() world.BlockModel

func (StainedTerracotta) SmeltInfo

func (t StainedTerracotta) SmeltInfo() item.SmeltInfo

func (StainedTerracotta) SoilFor

func (t StainedTerracotta) SoilFor(block world.Block) bool

func (StainedTerracotta) WithColour

func (b StainedTerracotta) WithColour(colour item.Colour) world.Block

type Stairs

type Stairs struct {
	Block world.Block

	UpsideDown bool

	Facing cube.Direction
	// contains filtered or unexported fields
}

func (Stairs) BreakInfo

func (s Stairs) BreakInfo() BreakInfo

func (Stairs) CanDisplace

func (s Stairs) CanDisplace(b world.Liquid) bool

func (Stairs) CanRedstoneWireStepDown

func (Stairs) CanRedstoneWireStepDown(cube.Pos, cube.Pos, *world.Tx) bool

func (Stairs) EncodeBlock

func (s Stairs) EncodeBlock() (name string, properties map[string]any)

func (Stairs) EncodeItem

func (s Stairs) EncodeItem() (name string, meta int16)

func (Stairs) FacingDirection

func (b Stairs) FacingDirection() cube.Direction

func (Stairs) FlammabilityInfo

func (s Stairs) FlammabilityInfo() FlammabilityInfo

func (Stairs) FuelInfo

func (s Stairs) FuelInfo() item.FuelInfo

func (Stairs) Hash

func (s Stairs) Hash() (uint64, uint64)

func (Stairs) Instrument

func (s Stairs) Instrument() sound.Instrument

func (Stairs) LightDiffusionLevel

func (Stairs) LightDiffusionLevel() uint8

func (Stairs) Model

func (s Stairs) Model() world.BlockModel

func (Stairs) SideClosed

func (s Stairs) SideClosed(pos, side cube.Pos, tx *world.Tx) bool

func (Stairs) UseOnBlock

func (s Stairs) UseOnBlock(pos cube.Pos, face cube.Face, clickPos mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (Stairs) WithFacing

func (b Stairs) WithFacing(facing cube.Direction) world.Block

type StartCrackAction

type StartCrackAction struct {
	BreakTime time.Duration
	// contains filtered or unexported fields
}

func (StartCrackAction) BlockAction

func (StartCrackAction) BlockAction()

type Stone

type Stone struct {
	Smooth bool
	// contains filtered or unexported fields
}

func (Stone) BreakInfo

func (s Stone) BreakInfo() BreakInfo

func (Stone) EncodeBlock

func (s Stone) EncodeBlock() (string, map[string]any)

func (Stone) EncodeItem

func (s Stone) EncodeItem() (name string, meta int16)

func (Stone) Hash

func (s Stone) Hash() (uint64, uint64)

func (Stone) Instrument

func (Stone) Instrument() sound.Instrument

func (Stone) Model

func (Stone) Model() world.BlockModel

func (Stone) SmeltInfo

func (s Stone) SmeltInfo() item.SmeltInfo

type StoneBricks

type StoneBricks struct {
	Type StoneBricksType
	// contains filtered or unexported fields
}

func (StoneBricks) BreakInfo

func (s StoneBricks) BreakInfo() BreakInfo

func (StoneBricks) EncodeBlock

func (s StoneBricks) EncodeBlock() (string, map[string]any)

func (StoneBricks) EncodeItem

func (s StoneBricks) EncodeItem() (name string, meta int16)

func (StoneBricks) Hash

func (s StoneBricks) Hash() (uint64, uint64)

func (StoneBricks) Instrument

func (StoneBricks) Instrument() sound.Instrument

func (StoneBricks) Model

func (StoneBricks) Model() world.BlockModel

func (StoneBricks) SmeltInfo

func (s StoneBricks) SmeltInfo() item.SmeltInfo

type StoneBricksType

type StoneBricksType struct {
	// contains filtered or unexported fields
}

func ChiseledStoneBricks

func ChiseledStoneBricks() StoneBricksType

func CrackedStoneBricks

func CrackedStoneBricks() StoneBricksType

func MossyStoneBricks

func MossyStoneBricks() StoneBricksType

func NormalStoneBricks

func NormalStoneBricks() StoneBricksType

func StoneBricksTypes

func StoneBricksTypes() []StoneBricksType

func (StoneBricksType) Name

func (s StoneBricksType) Name() string

func (StoneBricksType) String

func (s StoneBricksType) String() string

func (StoneBricksType) Uint8

func (s StoneBricksType) Uint8() uint8

type Stonecutter

type Stonecutter struct {
	Facing cube.Direction
	// contains filtered or unexported fields
}

func (Stonecutter) Activate

func (Stonecutter) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (Stonecutter) BreakInfo

func (s Stonecutter) BreakInfo() BreakInfo

func (Stonecutter) EncodeBlock

func (s Stonecutter) EncodeBlock() (name string, properties map[string]interface{})

func (Stonecutter) EncodeItem

func (Stonecutter) EncodeItem() (name string, meta int16)

func (Stonecutter) FacingDirection

func (b Stonecutter) FacingDirection() cube.Direction

func (Stonecutter) Hash

func (s Stonecutter) Hash() (uint64, uint64)

func (Stonecutter) Instrument

func (Stonecutter) Instrument() sound.Instrument

func (Stonecutter) Model

func (Stonecutter) Model() world.BlockModel

func (Stonecutter) UseOnBlock

func (s Stonecutter) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (Stonecutter) WithFacing

func (b Stonecutter) WithFacing(facing cube.Direction) world.Block

type StopCrackAction

type StopCrackAction struct {
	// contains filtered or unexported fields
}

func (StopCrackAction) BlockAction

func (StopCrackAction) BlockAction()

type String

type String struct {
	Attached bool

	Disarmed bool

	Powered bool

	Suspended bool
	// contains filtered or unexported fields
}

func (String) BreakInfo

func (s String) BreakInfo() BreakInfo

func (String) EncodeBlock

func (s String) EncodeBlock() (name string, properties map[string]any)

func (String) EncodeItem

func (s String) EncodeItem() (name string, meta int16)

func (String) HasLiquidDrops

func (s String) HasLiquidDrops() bool

func (String) Hash

func (s String) Hash() (uint64, uint64)

func (String) LightDiffusionLevel

func (String) LightDiffusionLevel() uint8

func (String) Model

func (String) Model() world.BlockModel

func (String) NeighbourUpdateTick

func (s String) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (String) UseOnBlock

func (s String) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type SugarCane

type SugarCane struct {
	Age int
	// contains filtered or unexported fields
}

func (SugarCane) BoneMeal

func (c SugarCane) BoneMeal(pos cube.Pos, tx *world.Tx) item.BoneMealResult

func (SugarCane) BreakInfo

func (c SugarCane) BreakInfo() BreakInfo

func (SugarCane) EncodeBlock

func (c SugarCane) EncodeBlock() (name string, properties map[string]any)

func (SugarCane) EncodeItem

func (c SugarCane) EncodeItem() (name string, meta int16)

func (SugarCane) HasLiquidDrops

func (c SugarCane) HasLiquidDrops() bool

func (SugarCane) Hash

func (c SugarCane) Hash() (uint64, uint64)

func (SugarCane) LightDiffusionLevel

func (SugarCane) LightDiffusionLevel() uint8

func (SugarCane) Model

func (SugarCane) Model() world.BlockModel

func (SugarCane) NeighbourUpdateTick

func (c SugarCane) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (SugarCane) RandomTick

func (c SugarCane) RandomTick(pos cube.Pos, tx *world.Tx, _ *rand.Rand)

func (SugarCane) UseOnBlock

func (c SugarCane) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

type Sulfur

type Sulfur struct {
	Chiseled bool
	// contains filtered or unexported fields
}

func (Sulfur) BreakInfo

func (s Sulfur) BreakInfo() BreakInfo

func (Sulfur) EncodeBlock

func (s Sulfur) EncodeBlock() (string, map[string]any)

func (Sulfur) EncodeItem

func (s Sulfur) EncodeItem() (name string, meta int16)

func (Sulfur) Hash

func (s Sulfur) Hash() (uint64, uint64)

func (Sulfur) Instrument

func (Sulfur) Instrument() sound.Instrument

func (Sulfur) Model

func (Sulfur) Model() world.BlockModel

type SulfurBricks

type SulfurBricks struct {
	// contains filtered or unexported fields
}

func (SulfurBricks) BreakInfo

func (s SulfurBricks) BreakInfo() BreakInfo

func (SulfurBricks) EncodeBlock

func (SulfurBricks) EncodeBlock() (string, map[string]any)

func (SulfurBricks) EncodeItem

func (SulfurBricks) EncodeItem() (name string, meta int16)

func (SulfurBricks) Hash

func (SulfurBricks) Hash() (uint64, uint64)

func (SulfurBricks) Instrument

func (SulfurBricks) Instrument() sound.Instrument

func (SulfurBricks) Model

func (SulfurBricks) Model() world.BlockModel

type TNT

type TNT struct {
	// contains filtered or unexported fields
}

func (TNT) Activate

func (t TNT) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, ctx *item.UseContext) bool

func (TNT) BreakInfo

func (t TNT) BreakInfo() BreakInfo

func (TNT) EncodeBlock

func (t TNT) EncodeBlock() (name string, properties map[string]interface{})

func (TNT) EncodeItem

func (t TNT) EncodeItem() (name string, meta int16)

func (TNT) Explode

func (t TNT) Explode(_ mgl64.Vec3, pos cube.Pos, tx *world.Tx, _ ExplosionConfig)

func (TNT) FlammabilityInfo

func (t TNT) FlammabilityInfo() FlammabilityInfo

func (TNT) Hash

func (TNT) Hash() (uint64, uint64)

func (TNT) Ignite

func (t TNT) Ignite(pos cube.Pos, tx *world.Tx, _ world.Entity) bool

func (TNT) Model

func (TNT) Model() world.BlockModel

func (TNT) ProjectileHit

func (t TNT) ProjectileHit(pos cube.Pos, tx *world.Tx, e world.Entity, _ cube.Face)

func (TNT) RedstoneNonConductive

func (TNT) RedstoneNonConductive()

func (TNT) RedstonePowerAction

func (t TNT) RedstonePowerAction(pos cube.Pos, tx *world.Tx, oldPower, newPower int)

type Terracotta

type Terracotta struct {
	// contains filtered or unexported fields
}

func (Terracotta) BreakInfo

func (t Terracotta) BreakInfo() BreakInfo

func (Terracotta) EncodeBlock

func (Terracotta) EncodeBlock() (string, map[string]any)

func (Terracotta) EncodeItem

func (Terracotta) EncodeItem() (name string, meta int16)

func (Terracotta) Hash

func (Terracotta) Hash() (uint64, uint64)

func (Terracotta) Instrument

func (Terracotta) Instrument() sound.Instrument

func (Terracotta) Model

func (Terracotta) Model() world.BlockModel

func (Terracotta) SoilFor

func (Terracotta) SoilFor(block world.Block) bool

type Torch

type Torch struct {
	Facing cube.Face

	Type FireType
	// contains filtered or unexported fields
}

func (Torch) BreakInfo

func (t Torch) BreakInfo() BreakInfo

func (Torch) EncodeBlock

func (t Torch) EncodeBlock() (name string, properties map[string]any)

func (Torch) EncodeItem

func (t Torch) EncodeItem() (name string, meta int16)

func (Torch) HasLiquidDrops

func (t Torch) HasLiquidDrops() bool

func (Torch) Hash

func (t Torch) Hash() (uint64, uint64)

func (Torch) LightDiffusionLevel

func (Torch) LightDiffusionLevel() uint8

func (Torch) LightEmissionLevel

func (t Torch) LightEmissionLevel() uint8

func (Torch) Model

func (Torch) Model() world.BlockModel

func (Torch) NeighbourUpdateTick

func (t Torch) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Torch) UseOnBlock

func (t Torch) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type Tuff

type Tuff struct {
	Chiseled bool
	// contains filtered or unexported fields
}

func (Tuff) BreakInfo

func (t Tuff) BreakInfo() BreakInfo

func (Tuff) EncodeBlock

func (t Tuff) EncodeBlock() (string, map[string]any)

func (Tuff) EncodeItem

func (t Tuff) EncodeItem() (name string, meta int16)

func (Tuff) Hash

func (t Tuff) Hash() (uint64, uint64)

func (Tuff) Instrument

func (Tuff) Instrument() sound.Instrument

func (Tuff) Model

func (Tuff) Model() world.BlockModel

type TuffBricks

type TuffBricks struct {
	Chiseled bool
	// contains filtered or unexported fields
}

func (TuffBricks) BreakInfo

func (t TuffBricks) BreakInfo() BreakInfo

func (TuffBricks) EncodeBlock

func (t TuffBricks) EncodeBlock() (string, map[string]any)

func (TuffBricks) EncodeItem

func (t TuffBricks) EncodeItem() (name string, meta int16)

func (TuffBricks) Hash

func (t TuffBricks) Hash() (uint64, uint64)

func (TuffBricks) Instrument

func (TuffBricks) Instrument() sound.Instrument

func (TuffBricks) Model

func (TuffBricks) Model() world.BlockModel

type Vines

type Vines struct {
	NorthDirection bool

	EastDirection bool

	SouthDirection bool

	WestDirection bool
	// contains filtered or unexported fields
}

func (Vines) Attachment

func (v Vines) Attachment(direction cube.Direction) bool

func (Vines) Attachments

func (v Vines) Attachments() (attachments []cube.Direction)

func (Vines) BreakInfo

func (v Vines) BreakInfo() BreakInfo

func (Vines) CanDisplace

func (s Vines) CanDisplace(b world.Liquid) bool

func (Vines) CompostChance

func (Vines) CompostChance() float64

func (Vines) EncodeBlock

func (v Vines) EncodeBlock() (string, map[string]any)

func (Vines) EncodeItem

func (Vines) EncodeItem() (name string, meta int16)

func (Vines) EntityInside

func (Vines) EntityInside(_ cube.Pos, _ *world.Tx, e world.Entity)

func (Vines) FlammabilityInfo

func (Vines) FlammabilityInfo() FlammabilityInfo

func (Vines) HasLiquidDrops

func (Vines) HasLiquidDrops() bool

func (Vines) Hash

func (v Vines) Hash() (uint64, uint64)

func (Vines) LightDiffusionLevel

func (Vines) LightDiffusionLevel() uint8

func (Vines) Model

func (Vines) Model() world.BlockModel

func (Vines) NeighbourUpdateTick

func (v Vines) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Vines) RandomTick

func (v Vines) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (Vines) ReplaceableBy

func (Vines) ReplaceableBy(world.Block) bool

func (Vines) SideClosed

func (Vines) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (Vines) UseOnBlock

func (v Vines) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

func (Vines) WithAttachment

func (v Vines) WithAttachment(direction cube.Direction, attached bool) Vines

type Wall

type Wall struct {
	Block world.Block

	NorthConnection WallConnectionType

	EastConnection WallConnectionType

	SouthConnection WallConnectionType

	WestConnection WallConnectionType

	Post bool
	// contains filtered or unexported fields
}

func (Wall) BreakInfo

func (w Wall) BreakInfo() BreakInfo

func (Wall) CanDisplace

func (s Wall) CanDisplace(b world.Liquid) bool

func (Wall) ConnectionType

func (w Wall) ConnectionType(direction cube.Direction) WallConnectionType

func (Wall) EncodeBlock

func (w Wall) EncodeBlock() (string, map[string]any)

func (Wall) EncodeItem

func (w Wall) EncodeItem() (string, int16)

func (Wall) Hash

func (w Wall) Hash() (uint64, uint64)

func (Wall) LightDiffusionLevel

func (Wall) LightDiffusionLevel() uint8

func (Wall) Model

func (w Wall) Model() world.BlockModel

func (Wall) NeighbourUpdateTick

func (w Wall) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Wall) SideClosed

func (Wall) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (Wall) UseOnBlock

func (w Wall) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (Wall) WithConnectionType

func (w Wall) WithConnectionType(direction cube.Direction, connection WallConnectionType) Wall

type WallConnectionType

type WallConnectionType struct {
	// contains filtered or unexported fields
}

func NoWallConnection

func NoWallConnection() WallConnectionType

func ShortWallConnection

func ShortWallConnection() WallConnectionType

func TallWallConnection

func TallWallConnection() WallConnectionType

func WallConnectionTypes

func WallConnectionTypes() []WallConnectionType

func (WallConnectionType) Height

func (w WallConnectionType) Height() float64

func (WallConnectionType) String

func (w WallConnectionType) String() string

func (WallConnectionType) Uint8

func (w WallConnectionType) Uint8() uint8

type Water

type Water struct {
	Still bool

	Depth int

	Falling bool
	// contains filtered or unexported fields
}

func (Water) BlastResistance

func (Water) BlastResistance() float64

func (Water) EncodeBlock

func (w Water) EncodeBlock() (name string, properties map[string]any)

func (Water) EntityInside

func (w Water) EntityInside(_ cube.Pos, _ *world.Tx, e world.Entity)

func (Water) FillBottle

func (w Water) FillBottle() (world.Block, item.Stack, bool)

func (Water) Harden

func (w Water) Harden(pos cube.Pos, tx *world.Tx, flownIntoBy *cube.Pos) bool

func (Water) HasLiquidDrops

func (Water) HasLiquidDrops() bool

func (Water) Hash

func (w Water) Hash() (uint64, uint64)

func (Water) LightDiffusionLevel

func (Water) LightDiffusionLevel() uint8

func (Water) LiquidDepth

func (w Water) LiquidDepth() int

func (Water) LiquidFalling

func (w Water) LiquidFalling() bool

func (Water) LiquidRemoveBlock

func (Water) LiquidRemoveBlock(pos cube.Pos, tx *world.Tx, removed world.Block)

func (Water) LiquidType

func (Water) LiquidType() string

func (Water) Model

func (Water) Model() world.BlockModel

func (Water) NeighbourUpdateTick

func (w Water) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (Water) ReplaceableBy

func (w Water) ReplaceableBy(b world.Block) bool

func (Water) ScheduledTick

func (w Water) ScheduledTick(pos cube.Pos, tx *world.Tx, _ *rand.Rand)

func (Water) SpreadDecay

func (Water) SpreadDecay() int

func (Water) WithDepth

func (w Water) WithDepth(depth int, falling bool) world.Liquid

type WheatSeeds

type WheatSeeds struct {
	// contains filtered or unexported fields
}

func (WheatSeeds) BoneMeal

func (s WheatSeeds) BoneMeal(pos cube.Pos, tx *world.Tx) item.BoneMealResult

func (WheatSeeds) BreakInfo

func (s WheatSeeds) BreakInfo() BreakInfo

func (WheatSeeds) CalculateGrowthChance

func (c WheatSeeds) CalculateGrowthChance(pos cube.Pos, tx *world.Tx) float64

func (WheatSeeds) CompostChance

func (WheatSeeds) CompostChance() float64

func (WheatSeeds) EncodeBlock

func (s WheatSeeds) EncodeBlock() (name string, properties map[string]any)

func (WheatSeeds) EncodeItem

func (s WheatSeeds) EncodeItem() (name string, meta int16)

func (WheatSeeds) GrowthStage

func (c WheatSeeds) GrowthStage() int

func (WheatSeeds) HasLiquidDrops

func (c WheatSeeds) HasLiquidDrops() bool

func (WheatSeeds) Hash

func (s WheatSeeds) Hash() (uint64, uint64)

func (WheatSeeds) NeighbourUpdateTick

func (c WheatSeeds) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (WheatSeeds) RandomTick

func (s WheatSeeds) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand)

func (WheatSeeds) SameCrop

func (WheatSeeds) SameCrop(c Crop) bool

func (WheatSeeds) UseOnBlock

func (s WheatSeeds) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

type Wood

type Wood struct {
	Wood WoodType

	Stripped bool

	Axis cube.Axis
	// contains filtered or unexported fields
}

func (Wood) BreakInfo

func (w Wood) BreakInfo() BreakInfo

func (Wood) EncodeBlock

func (w Wood) EncodeBlock() (name string, properties map[string]any)

func (Wood) EncodeItem

func (w Wood) EncodeItem() (name string, meta int16)

func (Wood) FlammabilityInfo

func (w Wood) FlammabilityInfo() FlammabilityInfo

func (Wood) FuelInfo

func (w Wood) FuelInfo() item.FuelInfo

func (Wood) Hash

func (w Wood) Hash() (uint64, uint64)

func (Wood) Instrument

func (Wood) Instrument() sound.Instrument

func (Wood) Model

func (Wood) Model() world.BlockModel

func (Wood) PillarAxis

func (b Wood) PillarAxis() cube.Axis

func (Wood) SmeltInfo

func (Wood) SmeltInfo() item.SmeltInfo

func (Wood) Strip

func (w Wood) Strip() (world.Block, world.Sound, bool)

func (Wood) UseOnBlock

func (w Wood) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) (used bool)

func (Wood) WithAxis

func (b Wood) WithAxis(axis cube.Axis) world.Block

type WoodDoor

type WoodDoor struct {
	Wood WoodType

	Facing cube.Direction

	Open bool

	Top bool

	Right bool
	// contains filtered or unexported fields
}

func (WoodDoor) Activate

func (d WoodDoor) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, _ item.User, _ *item.UseContext) bool

func (WoodDoor) BreakInfo

func (d WoodDoor) BreakInfo() BreakInfo

func (WoodDoor) CanDisplace

func (s WoodDoor) CanDisplace(b world.Liquid) bool

func (WoodDoor) EncodeBlock

func (d WoodDoor) EncodeBlock() (name string, properties map[string]any)

func (WoodDoor) EncodeItem

func (d WoodDoor) EncodeItem() (name string, meta int16)

func (WoodDoor) FacingDirection

func (b WoodDoor) FacingDirection() cube.Direction

func (WoodDoor) FlammabilityInfo

func (d WoodDoor) FlammabilityInfo() FlammabilityInfo

func (WoodDoor) FuelInfo

func (d WoodDoor) FuelInfo() item.FuelInfo

func (WoodDoor) Hash

func (d WoodDoor) Hash() (uint64, uint64)

func (WoodDoor) Instrument

func (WoodDoor) Instrument() sound.Instrument

func (WoodDoor) LightDiffusionLevel

func (WoodDoor) LightDiffusionLevel() uint8

func (WoodDoor) Model

func (d WoodDoor) Model() world.BlockModel

func (WoodDoor) NeighbourUpdateTick

func (d WoodDoor) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (WoodDoor) SideClosed

func (d WoodDoor) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (WoodDoor) UseOnBlock

func (d WoodDoor) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

func (WoodDoor) WithFacing

func (b WoodDoor) WithFacing(facing cube.Direction) world.Block

type WoodFence

type WoodFence struct {
	Wood WoodType
	// contains filtered or unexported fields
}

func (WoodFence) BreakInfo

func (w WoodFence) BreakInfo() BreakInfo

func (WoodFence) CanDisplace

func (s WoodFence) CanDisplace(b world.Liquid) bool

func (WoodFence) EncodeBlock

func (w WoodFence) EncodeBlock() (name string, properties map[string]any)

func (WoodFence) EncodeItem

func (w WoodFence) EncodeItem() (name string, meta int16)

func (WoodFence) FlammabilityInfo

func (w WoodFence) FlammabilityInfo() FlammabilityInfo

func (WoodFence) FuelInfo

func (w WoodFence) FuelInfo() item.FuelInfo

func (WoodFence) Hash

func (w WoodFence) Hash() (uint64, uint64)

func (WoodFence) Instrument

func (WoodFence) Instrument() sound.Instrument

func (WoodFence) LightDiffusionLevel

func (WoodFence) LightDiffusionLevel() uint8

func (WoodFence) Model

func (w WoodFence) Model() world.BlockModel

func (WoodFence) SideClosed

func (WoodFence) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

type WoodFenceGate

type WoodFenceGate struct {
	Wood WoodType

	Facing cube.Direction

	Open bool

	Lowered bool
	// contains filtered or unexported fields
}

func (WoodFenceGate) Activate

func (f WoodFenceGate) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, u item.User, _ *item.UseContext) bool

func (WoodFenceGate) BreakInfo

func (f WoodFenceGate) BreakInfo() BreakInfo

func (WoodFenceGate) CanDisplace

func (s WoodFenceGate) CanDisplace(b world.Liquid) bool

func (WoodFenceGate) EncodeBlock

func (f WoodFenceGate) EncodeBlock() (name string, properties map[string]any)

func (WoodFenceGate) EncodeItem

func (f WoodFenceGate) EncodeItem() (name string, meta int16)

func (WoodFenceGate) FacingDirection

func (b WoodFenceGate) FacingDirection() cube.Direction

func (WoodFenceGate) FlammabilityInfo

func (f WoodFenceGate) FlammabilityInfo() FlammabilityInfo

func (WoodFenceGate) FuelInfo

func (f WoodFenceGate) FuelInfo() item.FuelInfo

func (WoodFenceGate) Hash

func (f WoodFenceGate) Hash() (uint64, uint64)

func (WoodFenceGate) Instrument

func (WoodFenceGate) Instrument() sound.Instrument

func (WoodFenceGate) LightDiffusionLevel

func (WoodFenceGate) LightDiffusionLevel() uint8

func (WoodFenceGate) Model

func (f WoodFenceGate) Model() world.BlockModel

func (WoodFenceGate) NeighbourUpdateTick

func (f WoodFenceGate) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx)

func (WoodFenceGate) SideClosed

func (f WoodFenceGate) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (WoodFenceGate) UseOnBlock

func (f WoodFenceGate) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

func (WoodFenceGate) WithFacing

func (b WoodFenceGate) WithFacing(facing cube.Direction) world.Block

type WoodTrapdoor

type WoodTrapdoor struct {
	Wood WoodType

	Facing cube.Direction

	Open bool

	Top bool
	// contains filtered or unexported fields
}

func (WoodTrapdoor) Activate

func (t WoodTrapdoor) Activate(pos cube.Pos, _ cube.Face, tx *world.Tx, _ item.User, _ *item.UseContext) bool

func (WoodTrapdoor) BreakInfo

func (t WoodTrapdoor) BreakInfo() BreakInfo

func (WoodTrapdoor) CanDisplace

func (s WoodTrapdoor) CanDisplace(b world.Liquid) bool

func (WoodTrapdoor) EncodeBlock

func (t WoodTrapdoor) EncodeBlock() (name string, properties map[string]any)

func (WoodTrapdoor) EncodeItem

func (t WoodTrapdoor) EncodeItem() (name string, meta int16)

func (WoodTrapdoor) FacingDirection

func (b WoodTrapdoor) FacingDirection() cube.Direction

func (WoodTrapdoor) FlammabilityInfo

func (t WoodTrapdoor) FlammabilityInfo() FlammabilityInfo

func (WoodTrapdoor) FuelInfo

func (t WoodTrapdoor) FuelInfo() item.FuelInfo

func (WoodTrapdoor) Hash

func (t WoodTrapdoor) Hash() (uint64, uint64)

func (WoodTrapdoor) Instrument

func (WoodTrapdoor) Instrument() sound.Instrument

func (WoodTrapdoor) LightDiffusionLevel

func (WoodTrapdoor) LightDiffusionLevel() uint8

func (WoodTrapdoor) Model

func (t WoodTrapdoor) Model() world.BlockModel

func (WoodTrapdoor) SideClosed

func (t WoodTrapdoor) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool

func (WoodTrapdoor) UseOnBlock

func (t WoodTrapdoor) UseOnBlock(pos cube.Pos, face cube.Face, clickPos mgl64.Vec3, tx *world.Tx, user item.User, ctx *item.UseContext) bool

func (WoodTrapdoor) WithFacing

func (b WoodTrapdoor) WithFacing(facing cube.Direction) world.Block

type WoodType

type WoodType struct {
	// contains filtered or unexported fields
}

func AcaciaWood

func AcaciaWood() WoodType

func BambooWood

func BambooWood() WoodType

func BirchWood

func BirchWood() WoodType

func CherryWood

func CherryWood() WoodType

func CrimsonWood

func CrimsonWood() WoodType

func DarkOakWood

func DarkOakWood() WoodType

func JungleWood

func JungleWood() WoodType

func MangroveWood

func MangroveWood() WoodType

func OakWood

func OakWood() WoodType

func PaleOakWood

func PaleOakWood() WoodType

func SpruceWood

func SpruceWood() WoodType

func WarpedWood

func WarpedWood() WoodType

func WoodTypes

func WoodTypes() []WoodType

func (WoodType) Flammable

func (w WoodType) Flammable() bool

func (WoodType) Leaves

func (w WoodType) Leaves() (LeavesType, bool)

func (WoodType) Name

func (w WoodType) Name() string

func (WoodType) String

func (w WoodType) String() string

func (WoodType) Uint8

func (w WoodType) Uint8() uint8

type Wool

type Wool struct {
	Colour item.Colour
	// contains filtered or unexported fields
}

func (Wool) BreakInfo

func (w Wool) BreakInfo() BreakInfo

func (Wool) DyeColour

func (b Wool) DyeColour() item.Colour

func (Wool) EncodeBlock

func (w Wool) EncodeBlock() (name string, properties map[string]any)

func (Wool) EncodeItem

func (w Wool) EncodeItem() (name string, meta int16)

func (Wool) FlammabilityInfo

func (w Wool) FlammabilityInfo() FlammabilityInfo

func (Wool) Hash

func (w Wool) Hash() (uint64, uint64)

func (Wool) Instrument

func (w Wool) Instrument() sound.Instrument

func (Wool) Model

func (Wool) Model() world.BlockModel

func (Wool) WithColour

func (b Wool) WithColour(colour item.Colour) world.Block

type XPDropRange

type XPDropRange [2]int

func (XPDropRange) RandomValue

func (r XPDropRange) RandomValue() int

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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