Skip to main content

is_solid

Function is_solid 

Source
pub fn is_solid(state: u16) -> bool
Expand description

Returns whether a block state ID represents a solid (collidable) block.

Solid blocks prevent entity movement through them. Air, water, and a few other blocks are non-solid. This is a simplified check — a full implementation would use the block registry’s collision shape.