canInteractWithEntity

suspend fun canInteractWithEntity(tileEntity: TileEntity, entity: Entity, item: ItemStack?): Boolean

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


suspend fun canInteractWithEntity(player: OfflinePlayer, entity: Entity, item: ItemStack?): Boolean
fun canInteractWithEntity(player: Player, entity: Entity, item: ItemStack?): Boolean

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