Class EntityProjectileDamage
java.lang.Object
net.minestom.server.entity.damage.Damage
net.minestom.server.entity.damage.EntityProjectileDamage
- All Implemented Interfaces:
Taggable, TagReadable, TagWritable
Represents damage inflicted by an entity, via a projectile.
-
Constructor Summary
ConstructorsConstructorDescriptionEntityProjectileDamage(@Nullable Entity shooter, Entity projectile, float amount) -
Method Summary
Modifier and TypeMethodDescriptionGets the projectile responsible for the damage.Gets the shooter of the projectile.Gets the direct source of the damage.Methods inherited from class Damage
buildDeathMessage, buildDeathScreenText, fromEntity, fromPlayer, fromPosition, fromProjectile, getAmount, getAttacker, 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
-
EntityProjectileDamage
-
-
Method Details
-
getProjectile
Gets the projectile responsible for the damage.- Returns:
- the projectile
-
getShooter
-
getSource
-