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
Vanilla ConcretePowderBlock behavior.
ConduitBlock
Behavior for vanilla conduit blocks.
CopperBulbBlock
Vanilla CopperBulbBlock, used directly by waxed bulb variants.
CraftingTableBlock
Behavior for the crafting table block.
DaylightDetectorBlock
Vanilla DaylightDetectorBlock behavior.
DetectorRailBlock
Vanilla detector rail digital behavior.
DoorBlock
Behavior for vanilla door blocks.
DragonEggBlock
Vanilla Dragon Egg behavior.
DropExperienceBlock
Vanilla DropExperienceBlock behavior.
EndGatewayBlock
Vanilla EndGatewayBlock replacement behavior.
EndPortalBlock
Vanilla EndPortalBlock replacement 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.
FrostedIceBlock
Vanilla FrostedIceBlock.
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
Vanilla IceBlock behavior.
IronBarsBlock
Behavior for bar blocks.
JukeboxBlock
Vanilla JukeboxBlock 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
Vanilla NetherrackBlock.
NoteBlock
Vanilla NoteBlock, including tuning, redstone playback, and instrument selection.
ObserverBlock
Vanilla ObserverBlock two-game-tick pulse behavior.
PistonBaseBlock
Vanilla PistonBaseBlock shared by normal and sticky pistons.
PistonHeadBlock
Vanilla piston-head block.
PotentSulfurBlock
Vanilla PotentSulfurBlock 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.
RedStoneWireBlock
Vanilla RedStoneWireBlock using DefaultRedstoneWireEvaluator.
RedstoneLampBlock
Vanilla RedstoneLampBlock, including its delayed turn-off edge.
RedstoneTorchBlock
Standing redstone torch (redstone_torch).
RedstoneWallTorchBlock
Wall redstone torch (redstone_wall_torch).
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.
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.
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).
TargetBlock
Vanilla TargetBlock behavior.
TorchBlock
Behavior for standing torch blocks (torch, soul_torch, copper_torch).
TrapDoorBlock
Behavior for vanilla trapdoor blocks.
TripWireBlock
Vanilla TripWireBlock behavior.
TripWireHookBlock
Vanilla TripWireHookBlock 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).
WallTorchBlock
Behavior for wall torch blocks (wall_torch, soul_wall_torch, copper_wall_torch).
WaterloggedTransparentBlock
Vanilla WaterloggedTransparentBlock 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.
WeatheringCopperDoorBlock
Weathering copper doors share door behavior and add copper aging.
WeatheringCopperFullBlock
Block behavior for WeatheringCopperFullBlock
WeatheringCopperGrateBlock
Vanilla WeatheringCopperGrateBlock 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

EnumsΒ§

PressurePlateSensitivity
Vanilla BlockSetType.PressurePlateSensitivity values.
WeatherState
Oxidation stages for copper blocks, matching vanilla’s WeatheringCopper.WeatherState.

FunctionsΒ§

is_facing_front_text
Calculates whether the player is facing the front of a sign.