canUseBlockAsync

fun canUseBlockAsync(tileEntity: TileEntity, item: ItemStack?, block: Block): CompletableFuture<Boolean>

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


fun canUseBlockAsync(player: OfflinePlayer, item: ItemStack?, block: Block): CompletableFuture<Boolean>

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