Class EntityDamage
java.lang.Object
net.minestom.server.entity.damage.Damage
net.minestom.server.entity.damage.EntityDamage
- All Implemented Interfaces:
Taggable, TagReadable, TagWritable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the "attacker" of the damage.Gets the source of the damage.Methods inherited from class Damage
buildDeathMessage, buildDeathScreenText, fromEntity, fromPlayer, fromPosition, fromProjectile, getAmount, getGenericSound, getPlayerSound, getSound, getSourcePosition, getType, getTypeId, setAmount, tagHandlerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Taggable
getAndSetTag, getAndUpdateTag, getTag, hasTag, removeTag, setTag, updateAndGetTag, updateTag
-
Constructor Details
-
EntityDamage
-
-
Method Details
-
getSource
-
getAttacker
Description copied from class:DamageGets 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:
getAttackerin classDamage- Returns:
- the attacker
-