Skip to main content

can_attach_to_multiface

Function can_attach_to_multiface 

Source
pub(super) fn can_attach_to_multiface(
    world: &dyn LevelReader,
    neighbor_pos: BlockPos,
    direction_to_neighbor: Direction,
) -> bool
Expand description

Vanilla MultifaceBlock.canAttachTo(level, directionTowardsNeighbor, neighborPos, neighborState).

Returns whether the block at neighbor_pos has a full face on the side facing back toward us. Checks the support shape first, then the collision shape, matching vanilla’s Block.isFaceFull OR pattern.