pub fn check_is_interaction_restricted(
instance: &Instance,
block_pos: &BlockPos,
game_mode: &GameMode,
inventory: &Inventory,
) -> 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.