canUseItemAsync

fun canUseItemAsync(tileEntity: TileEntity, item: ItemStack, location: Location): CompletableFuture<Boolean>

Checks if the tileEntity can use that item at that location.


fun canUseItemAsync(player: OfflinePlayer, item: ItemStack, location: Location): CompletableFuture<Boolean>

Checks if the player can use that item at that location.