canBreak

Checks whether the given ctx passes break permission checks.


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

Checks if that tileEntity can break a block at that pos using that item.


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

Checks if that player can break a block at that pos using that item.