public interface HealingSource
Cause
for damage on the Entity
being
damaged. Usually the HealingSource
will have different properties
based on the source of damage, such as EntityHealingSource
s,
BlockHealingSource
s, and FallingBlockHealingSource
s.
Almost always, the HealingSource
will be the first element in
the Cause
of the event. Any additional modifiers that "aid" the
Cause
of the event will be listed subsequently.
Modifier and Type | Method and Description |
---|---|
DamageType |
getDamageType() |
boolean |
isAbsolute()
Gets whether this
HealingSource can not be modified and the
damage is absolute. |
boolean |
isBypassingArmor()
Gets whether this
HealingSource will deal damage that
bypasses any armor. |
boolean |
isDifficultyScaled()
Gets whether this
HealingSource 's damage is scaled by
Difficulty . |
boolean |
isExplosion()
Gets whether this
HealingSource is an explosion. |
boolean |
isMagic()
Gets whether this
HealingSource is considered to be magical
damage, such as potions, or other sources. |
boolean |
isStarvationBased()
Gets whether this
HealingSource is starvation based, and
therefor should be considered to bypass armor and other resistances. |
DamageType getDamageType()
boolean isAbsolute()
HealingSource
can not be modified and the
damage is absolute.boolean isBypassingArmor()
HealingSource
will deal damage that
bypasses any armor.boolean isDifficultyScaled()
HealingSource
's damage is scaled by
Difficulty
.boolean isExplosion()
HealingSource
is an explosion.boolean isStarvationBased()
HealingSource
is starvation based, and
therefor should be considered to bypass armor and other resistances.boolean isMagic()
HealingSource
is considered to be magical
damage, such as potions, or other sources.