Class EntityProjectileDamage
java.lang.Object
net.minestom.server.entity.damage.DamageType
net.minestom.server.entity.damage.EntityProjectileDamage
- All Implemented Interfaces:
Taggable
,TagReadable
,TagWritable
Represents damage inflicted by an entity, via a projectile.
-
Field Summary
Fields inherited from class net.minestom.server.entity.damage.DamageType
GRAVITY, ON_FIRE, VOID
-
Constructor Summary
ConstructorsConstructorDescriptionEntityProjectileDamage
(@Nullable Entity shooter, @NotNull Entity projectile) -
Method Summary
Methods inherited from class net.minestom.server.entity.damage.DamageType
buildDeathMessage, buildDeathScreenText, fromEntity, fromPlayer, fromProjectile, getGenericSound, getIdentifier, getPlayerSound, getSound, tagHandler
-
Constructor Details
-
EntityProjectileDamage
-
-
Method Details
-
getProjectile
Gets the projectile responsible for the damage.- Returns:
- the projectile
-
getShooter
Gets the shooter of the projectile.- Returns:
- the shooter of the projectile, null if not any
-