canUseBlock

Checks whether the given ctx passes block interaction permission checks.


suspend fun canUseBlock(tileEntity: TileEntity, item: ItemStack?, pos: BlockPos): Boolean

Checks if the tileEntity can interact with a block at that pos using that item.


suspend fun canUseBlock(player: OfflinePlayer, item: ItemStack?, pos: BlockPos): Boolean
fun canUseBlock(player: Player, item: ItemStack?, pos: BlockPos): Boolean

Checks if the player can interact with a block at that pos using that item.