Expand description
Block behavior trait and registry.
Re-exportsยง
pub use context::BlockCollisionBoxes;pub use context::BlockCollisionContext;pub use context::BlockEntityCreation;pub use context::BlockLootContext;pub use context::EntityFallDamage;pub use context::EntityFallOnContext;pub use context::EntityFallOnFacts;pub use context::EntityLandingContext;pub use context::PickupResult;pub use context::RailBehavior;pub use registry::BlockBehaviorRegistry;pub use registry::DefaultBlockBehavior;
Modulesยง
- collision ๐
- context ๐
- registry ๐
- waterlogging ๐
Traitsยง
- Block
Behavior - Trait defining the behavior of a block.
Functionsยง
- default_
can_ ๐be_ replaced - Vanilla
BlockBehaviour.canBeReplaced(BlockState, BlockPlaceContext). - drop_
from_ ๐block_ interact_ loot_ table - Gets random loot from a given loot table reference and other factors, and returns
each item from it in a
Vec.