Function azalea::interact::check_is_interaction_restricted

source ·
pub fn check_is_interaction_restricted(
    instance: &Instance,
    block_pos: &BlockPos,
    game_mode: &GameMode,
    inventory: &InventoryComponent
) -> bool
Expand description

Whether we can’t interact with the block, based on your gamemode. If this is false, then we can interact with the block.

Passing the inventory, block position, and instance is necessary for the adventure mode check.