canUseBlockAsync

fun canUseBlockAsync(tileEntity: TileEntity, item: ItemStack?, pos: BlockPos): CompletableFuture<Boolean>

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


fun canUseBlockAsync(player: OfflinePlayer, item: ItemStack?, pos: BlockPos): CompletableFuture<Boolean>

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