Skip to main content

Module blocks

Module blocks 

Source
Expand description

Block behavior implementations for vanilla blocks.

The actual behavior registration is auto-generated from classes.json. See src/generated/behaviors.rs for the generated registration code.

Re-exportsยง

pub use vegetation::*;

Modulesยง

building ๐Ÿ”’
colored ๐Ÿ”’
container ๐Ÿ”’
decoration ๐Ÿ”’
face_attached_horizontal_directional_block ๐Ÿ”’
Shared vanilla face-attached horizontal placement and support behavior.
falling ๐Ÿ”’
Vanilla falling-block behaviors.
fluid ๐Ÿ”’
portal ๐Ÿ”’
redstone ๐Ÿ”’
utils ๐Ÿ”’
vegetation
Block behavior implementations for crops and feature-placed vegetation.

Structsยง

AmethystBlock
Vanilla AmethystBlock behavior shared by amethyst blocks and clusters.
AmethystClusterBlock
Behavior for vanilla amethyst clusters blocks.
AnvilBlock
Behavior for Anvils
BannerBlock
Shared behavior for standing banner blocks
BarrelBlock
Behavior for barrel blocks.
BarrierBlock
Vanilla BarrierBlock liquid-container behavior.
BeaconBlock
Behavior for the beacon block.
BedBlock
Behavior for beds
BeehiveBlock
Behavior for beehive and bee nest blocks.
BellBlock
Vanilla BellBlock, including placement, ringing, and redstone activation.
BlastFurnaceBlock
Vanilla blast-furnace block behavior.
BrushableBlock
Vanilla archaeology block behavior for suspicious sand and suspicious gravel.
BubbleColumnBlock
Vanilla BubbleColumnBlock column propagation and fluid state.
BuddingAmethystBlock
Behavior for vanilla budding amethyst blocks.
ButtonBlock
Behavior for all button block variants.
CakeBlock
Behavior for Cakes
CampfireBlock
Behavior for campfires and soul campfires.
CandleBlock
Behavior for all Candle type blocks
CandleCakeBlock
Behavior for Candle Cakes TODO:
CauldronBlock
Vanilla empty cauldron behavior.
CeilingHangingSignBlock
Behavior for ceiling hanging sign blocks.
ChainBlock
Behavior for chain blocks (iron chain, waxed copper chains).
ChiseledBookShelfBlock
Direct-interaction behavior for Vanillaโ€™s chiseled bookshelf.
ComparatorBlock
Vanilla ComparatorBlock, including persisted output and item-frame input.
ComposterBlock
Vanilla composter behavior required by analog signal readers.
ConcretePowderBlock
Concrete powder block behavior.
ConduitBlock
Behavior for vanilla conduit blocks.
CopperBulbBlock
Vanilla CopperBulbBlock, used directly by waxed bulb variants.
CopperChestBlock
Copper chest behaviour
CraftingTableBlock
Behavior for the crafting table block.
DaylightDetectorBlock
Daylight detector block behavior.
DetectorRailBlock
Vanilla detector rail digital behavior.
DoorBlock
Behavior for vanilla door blocks.
DragonEggBlock
Dragon egg block behavior.
DropExperienceBlock
Experience-dropping block behavior.
EnchantingTableBlock
Behavior for the enchanting table.
EndGatewayBlock
End gateway block behavior.
EndPortalBlock
End portal block behavior.
EndPortalFrameBlock
Behavior for end portal frame blocks.
EndRodBlock
End rods use the clicked face for their orientation and reverse against an aligned rod.
EnderChestBlock
The ender chest block behavior.
FallingBlock
Shared server-side behavior of vanilla FallingBlock.
FenceBlock
Behavior for fence blocks.
FenceGateBlock
Behavior for all fence gate variants.
FireBlock
Behavior for fire blocks.
FlowerPotBlock
Implements the FlowerPotBlock behaviour.
FrostedIceBlock
Frosted ice block behavior.
FurnaceBlock
Vanilla furnace block behavior.
GlazedTerracottaBlock
Vanilla GlazedTerracottaBlock placement facing.
GrindstoneBlock
Behavior for Grindstone
HayBlock
Behavior for hay blocks.
HeavyCoreBlock
Behavior for vanilla heavy core block.
HoneyBlock
Behavior for honey blocks.
IceBlock
Ice block behavior.
IronBarsBlock
Behavior for bar blocks.
JukeboxBlock
Jukebox block behavior.
LadderBlock
Behavior for ladders.
LanternBlock
Behavior for all non-weathering Lantern type blocks
LavaCauldronBlock
Behavior for lava cauldrons.
LayeredCauldronBlock
Vanilla layered water and powder-snow cauldron behavior.
LeverBlock
Vanilla LeverBlock source behavior.
LightningRodBlock
Lightning rod behavior.
LiquidBlock
Behavior for liquid blocks (water and lava).
MagmaBlock
Behavior for magma blocks.
MovingPistonBlock
Vanilla transient moving-piston block.
MudBlock
Behavior for mud blocks.
NetherPortalBlock
Behavior for the nether portal block.
NetherrackBlock
Netherrack block behavior.
NoteBlock
Vanilla NoteBlock, including tuning, redstone playback, and instrument selection.
ObserverBlock
Vanilla ObserverBlock two-game-tick pulse behavior.
PiglinWallSkullBlock
Behavior for piglin wall skull blocks.
PistonBaseBlock
Vanilla PistonBaseBlock shared by normal and sticky pistons.
PistonHeadBlock
Vanilla piston-head block.
PlayerHeadBlock
Behavior for player head blocks.
PlayerWallHeadBlock
Behavior for player wall head blocks.
PotentSulfurBlock
Potent sulfur block behavior.
PowderSnowBlock
Behavior for powder snow blocks.
PoweredBlock
Vanilla PoweredBlock, used by the redstone block.
PoweredRailBlock
Vanilla powered-rail behavior, also used by activator rails.
PressurePlateBlock
Vanilla on/off pressure plates, including wood and stone variants.
RailBlock
Vanilla ordinary rail, including ordered curve and junction switching.
RedStoneOreBlock
Vanilla RedStoneOreBlock behavior shared by both ore variants.
RedstoneLampBlock
Vanilla RedstoneLampBlock, including its delayed turn-off edge.
RedstoneTorchBlock
Standing redstone torch (redstone_torch).
RedstoneWallTorchBlock
Wall redstone torch (redstone_wall_torch).
RedstoneWireBlock
Vanilla RedStoneWireBlock using DefaultRedstoneWireEvaluator.
RepeaterBlock
Vanilla RepeaterBlock, including side locking and scheduled pulse behavior.
RespawnAnchorBlock
Vanilla respawn anchor
RotatedPillarBlock
Behavior for rotated pillar blocks (logs, pillars, etc.).
SandBlock
Vanilla SandBlock behavior.
ScaffoldingBlock
Vanilla scaffolding placement, stability, falling, and collision behavior.
ShulkerBoxBlock
Behavior for shulker box blocks.
Skull
Builder for skull items
SkullBlock
Behavior for default skull blocks (skeleton, zombie, creeper, dragon).
SkullData
Data stored by a skull
SkullType
A skull kind and its floor and wall blocks
SlabBlock
Behavior for slab blocks.
SlimeBlock
Behavior for slime blocks.
SmokerBlock
Vanilla smoker block behavior.
SnowLayerBlock
Vanilla SnowLayerBlock survival.
SoulFireBlock
Behavior for soul fire survival.
SoulSandBlock
Soul sand. Mobs will not pathfind through this block.
SpawnerBlock
Behavior for normal mob spawner blocks.
SpongeBlock
Sponge behavior
StainedGlassBlock
All solid colored glass blocks.
StainedGlassPaneBlock
All glass colored pane blocks
StairBlock
Behavior for stair blocks.
StandingSignBlock
Behavior for standing sign blocks (placed on ground).
StrawBedBlock
straw bed
TargetBlock
Target block behavior.
TntBlock
Vanilla TNT block behavior.
TorchBlock
Behavior for standing torch blocks (torch, soul_torch, copper_torch).
TrapDoorBlock
Behavior for vanilla trapdoor blocks.
TripWireBlock
Tripwire block behavior.
TripWireHookBlock
Tripwire hook block behavior.
WallBannerBlock
Shared behavior for wall banner blocks
WallBlock
Behavior for wall blocks.
WallHangingSignBlock
Behavior for wall hanging sign blocks.
WallSignBlock
Behavior for wall sign blocks (attached to walls).
WallSkullBlock
Behavior for default wall skull blocks (skeleton, zombie, creeper, dragon).
WallTorchBlock
Behavior for wall torch blocks (wall_torch, soul_wall_torch, copper_wall_torch).
WaterloggedTransparentBlock
Waterlogged transparent block behavior.
WeatheringCopper
Composable helper for copper weathering/oxidation logic.
WeatheringCopperBarsBlock
Behavior for copper bar blocks.
WeatheringCopperBulbBlock
Unwaxed copper bulbs with vanilla oxidation behavior.
WeatheringCopperChainBlock
Behavior for weathering copper chain blocks.
WeatheringCopperChestBlock
Copper chest behaviour
WeatheringCopperDoorBlock
Weathering copper doors share door behavior and add copper aging.
WeatheringCopperFullBlock
Block behavior for WeatheringCopperFullBlock
WeatheringCopperGrateBlock
Weathering copper grate block behavior.
WeatheringCopperSlabBlock
Weathering copper slabs share slab shape/fluid behavior and add copper aging.
WeatheringCopperStairBlock
Weathering copper stairs share the stair shape rules and add copper aging.
WeatheringCopperTrapDoorBlock
Behavior for vanilla copper trapdoor blocks.
WeatheringLanternBlock
Behavior for all weathering Lantern type blocks
WeatheringLightningRodBlock
Behavior for all weathering lightning rod type blocks
WebBlock
Behavior for cobwebs.
WeightedPressurePlateBlock
Vanilla weighted pressure plate with analog output based on entity count.
WetSpongeBlock
Wet sponge behavior
WitherSkullBlock
Behavior for wither skull blocks.
WitherWallSkullBlock
Behavior for wither wall skull blocks.

Enumsยง

InvalidPlacementError
Error during Skull placement
PressurePlateSensitivity
Vanilla BlockSetType.PressurePlateSensitivity values.
SkullPlacement
How a skull is attached when placed as a block
WeatherState
Oxidation stages for copper blocks, matching vanillaโ€™s WeatheringCopper.WeatherState.

Functionsยง

facing_text_slot
Calculates which side of a sign the player is facing.

Type Aliasesยง

SkullTypeRef
Static reference to a skull type