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::AzaleaBlock;
pub use vegetation::BambooSaplingBlock;
pub use vegetation::BambooStalkBlock;
pub use vegetation::BeetrootBlock;
pub use vegetation::CactusBlock;
pub use vegetation::CactusFlowerBlock;
pub use vegetation::CarrotBlock;
pub use vegetation::CocoaBlock;
pub use vegetation::CoralBlock;
pub use vegetation::CropBlock;
pub use vegetation::DoublePlantBlock;
pub use vegetation::FlowerBlock;
pub use vegetation::MangroveLeavesBlock;
pub use vegetation::NetherSproutsBlock;
pub use vegetation::NetherWartBlock;
pub use vegetation::PitcherCropBlock;
pub use vegetation::PotatoBlock;
pub use vegetation::PumpkinBlock;
pub use vegetation::RootedDirtBlock;
pub use vegetation::SeagrassBlock;
pub use vegetation::SugarCaneBlock;
pub use vegetation::SweetBerryBushBlock;
pub use vegetation::TallFlowerBlock;
pub use vegetation::TallGrassBlock;
pub use vegetation::TallSeagrassBlock;
pub use vegetation::TintedParticleLeavesBlock;
pub use vegetation::TorchflowerCropBlock;
pub use vegetation::UntintedParticleLeavesBlock;
pub use vegetation::BaseCoralFanBlock;
pub use vegetation::BaseCoralPlantBlock;
pub use vegetation::BaseCoralWallFanBlock;
pub use vegetation::BigDripleafBlock;
pub use vegetation::BigDripleafStemBlock;
pub use vegetation::BushBlock;
pub use vegetation::CarpetBlock;
pub use vegetation::CaveVinesBlock;
pub use vegetation::CaveVinesPlantBlock;
pub use vegetation::ChorusFlowerBlock;
pub use vegetation::ChorusPlantBlock;
pub use vegetation::CoralFanBlock;
pub use vegetation::CoralPlantBlock;
pub use vegetation::CoralWallFanBlock;
pub use vegetation::DirtPathBlock;
pub use vegetation::DryVegetationBlock;
pub use vegetation::EyeblossomBlock;
pub use vegetation::EyeblossomType;
pub use vegetation::FarmlandBlock;
pub use vegetation::FireflyBushBlock;
pub use vegetation::FlowerBedBlock;
pub use vegetation::GlowLichenBlock;
pub use vegetation::HangingMossBlock;
pub use vegetation::HangingRootsBlock;
pub use vegetation::KelpBlock;
pub use vegetation::KelpPlantBlock;
pub use vegetation::LeafLitterBlock;
pub use vegetation::LilyPadBlock;
pub use vegetation::MangrovePropaguleBlock;
pub use vegetation::MossyCarpetBlock;
pub use vegetation::MushroomBlock;
pub use vegetation::NetherFungusBlock;
pub use vegetation::NetherRootsBlock;
pub use vegetation::PointedDripstoneBlock;
pub use vegetation::SaplingBlock;
pub use vegetation::SculkVeinBlock;
pub use vegetation::SeaPickleBlock;
pub use vegetation::ShortDryGrassBlock;
pub use vegetation::SmallDripleafBlock;
pub use vegetation::SporeBlossomBlock;
pub use vegetation::SulfurSpikeBlock;
pub use vegetation::TallDryGrassBlock;
pub use vegetation::TwistingVinesBlock;
pub use vegetation::TwistingVinesPlantBlock;
pub use vegetation::VineBlock;
pub use vegetation::WeepingVinesBlock;
pub use vegetation::WeepingVinesPlantBlock;
pub use vegetation::WitherRoseBlock;
pub use vegetation::WoolCarpetBlock;

ModulesΒ§

building πŸ”’
colored πŸ”’
container πŸ”’
decoration πŸ”’
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
BarrelBlock
Behavior for barrel blocks.
BarrierBlock
Vanilla BarrierBlock liquid-container behavior.
BedBlock
Behavior for beds.
BeehiveBlock
Behavior for beehive and bee nest blocks.
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 TODO:
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).
ComparatorBlock
Vanilla ComparatorBlock, including persisted output and item-frame input.
ComposterBlock
Vanilla composter behavior required by analog signal readers.
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.
EndGatewayBlock
Vanilla EndGatewayBlock replacement behavior.
EndPortalBlock
Vanilla EndPortalBlock replacement behavior.
EndPortalFrameBlock
Behavior for end portal frame blocks.
FenceBlock
Behavior for fence blocks.
FenceGateBlock
Behavior for all fence gate variants.
FireBlock
Behavior for fire blocks.
GlazedTerracottaBlock
Vanilla GlazedTerracottaBlock placement facing.
HayBlock
Behavior for hay blocks.
HoneyBlock
Behavior for honey blocks.
IceBlock
Vanilla IceBlock behavior.
IronBarsBlock
Behavior for bar blocks.
LadderBlock
Behavior for ladders.
LavaCauldronBlock
Behavior for lava cauldrons.
LayeredCauldronBlock
Vanilla layered water and powder-snow cauldron behavior.
LeverBlock
Vanilla LeverBlock source 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.
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 behavior required by analog signal readers.
RotatedPillarBlock
Behavior for rotated pillar blocks (logs, pillars, etc.).
ScaffoldingBlock
Vanilla scaffolding collision-shape behavior.
SlabBlock
Behavior for slab blocks.
SlimeBlock
Behavior for slime blocks.
SnowLayerBlock
Vanilla SnowLayerBlock survival.
SoulFireBlock
Behavior for soul fire survival.
SpongeBlock
Sponge behavior
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.
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.
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.