damage

abstract fun damage(source: DamageSource, damage: Float): Boolean

Damages this entity with the given source.

Return

true if damaging this entity was successful, false otherwise

Parameters

source

the source of the damage

damage

the damage amount