canInteractWithEntityAsync

fun canInteractWithEntityAsync(tileEntity: TileEntity, entity: Entity, item: ItemStack?): CompletableFuture<Boolean>

Checks if the tileEntity can interact with the entity while holding that item.


fun canInteractWithEntityAsync(player: OfflinePlayer, entity: Entity, item: ItemStack?): CompletableFuture<Boolean>

Checks if the player can interact with the entity while holding that item.