Class EntityDamage
java.lang.Object
net.minestom.server.entity.damage.Damage
net.minestom.server.entity.damage.EntityDamage
- All Implemented Interfaces:
Taggable
,TagReadable
,TagWritable
Represents damage inflicted by an
Entity
.-
Constructor Summary
-
Method Summary
Methods inherited from class net.minestom.server.entity.damage.Damage
buildDeathMessage, buildDeathScreenText, fromEntity, fromPlayer, fromPosition, fromProjectile, getAmount, getGenericSound, getPlayerSound, getSound, getSourcePosition, getType, getTypeId, setAmount, tagHandler
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minestom.server.tag.Taggable
getAndSetTag, getAndUpdateTag, getTag, hasTag, removeTag, setTag, updateAndGetTag, updateTag
-
Constructor Details
-
EntityDamage
-
-
Method Details
-
getSource
Gets the source of the damage. -
getAttacker
Description copied from class:Damage
Gets the "attacker" of the damage. This is the indirect cause of the damage, like the shooter of a projectile, or null if there was none.- Overrides:
getAttacker
in classDamage
- Returns:
- the attacker
-