Skip to main content

still_valid_block

Function still_valid_block 

Source
pub fn still_valid_block(
    world: &World,
    pos: BlockPos,
    block: BlockRef,
    player: &Player,
) -> bool
Expand description

Vanilla’s static AbstractContainerMenu.stillValid(access, player, block), renamed so it does not read as MenuKind::still_valid: the block at pos is still block and the player is within reach.