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, setAmount, tagHandler
-
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
-