Skip to main content

multiface_can_survive

Function multiface_can_survive 

Source
pub(super) fn multiface_can_survive(
    state: BlockStateId,
    world: &dyn LevelReader,
    pos: BlockPos,
) -> bool
Expand description

Vanilla MultifaceBlock.canSurvive.

Every direction whose face property is true must have a neighbor that allows attachment, and at least one face must be set. Subclasses without a face property for a given direction (vanilla’s isFaceSupported) treat that face as not set, hence try_get_value(...).unwrap_or(false).