canHurtEntityAsync

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

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


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

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