Skip to main content

can_hold_any_fluid_state

Function can_hold_any_fluid_state 

Source
pub fn can_hold_any_fluid_state(state: BlockStateId) -> bool
Expand description

Checks if a block state can hold any fluid, without world access.

Vanilla equivalent: FlowingFluid.canHoldAnyFluid(BlockState). Uses blocksMotion() check instead of has_collision — vanilla’s blocksMotion() = block != Cobweb && block != BambooSapling && isSolid().