public interface DamagingData extends DataManipulator<DamagingData,ImmutableDamagingData>
DataManipulator
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 |
---|---|
MutableBoundedValue<Double> |
damage()
Gets the damage this projectile will deal to a
Living
if hit. |
MapValue<EntityType,Double> |
damageForEntity()
Gets the
MapValue for representing the custom damage
values to use if the owner strikes an entity of that type. |
asImmutable, copy, fill, fill, from, set, set, set, set, transform
getContentVersion, toContainer
MutableBoundedValue<Double> damage()
Living
if hit.Keys.ATTACK_DAMAGE
MapValue<EntityType,Double> damageForEntity()
MapValue
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()
.
Keys.DAMAGE_ENTITY_MAP