public interface ImmutableDamagingData extends ImmutableDataManipulator<ImmutableDamagingData,DamagingData>
ImmutableDataManipulator for an owner that will deal a certain amount of
damage on the next "attack". Usually applicable to Arrows and other
Projectiles.| Modifier and Type | Method and Description |
|---|---|
ImmutableValue<Double> |
damage()
Gets the damage this projectile will deal to an
Entity if hit. |
ImmutableMapValue<EntityType,Double> |
damageForEntityTypes()
Gets the
ImmutableMapValue for representing the custom damage
values to use if the owner strikes an entity of that type. |
asMutable, copy, with, withgetContentVersion, toContainerImmutableValue<Double> damage()
Entity if hit.ImmutableMapValue<EntityType,Double> damageForEntityTypes()
ImmutableMapValue for representing the custom damage
values to use if the owner strikes an entity of that type.
Note that in events, the damage defined for the provided
EntityType will take priority over the "default" damage as
defined from damage().