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 Arrow
s and other
Projectile
s.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, with
getContentVersion, toContainer
ImmutableValue<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()
.