canHurtEntity

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

Checks if the tileEntity can hurt the entity with this item.


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

Checks if the player can hurt the entity with this item.