public interface DamageableData extends DataManipulator<DamageableData,ImmutableDamageableData>
DataManipulator
for retaining the last known "attacker" for an
Entity
. Usually, the last attacker is known, however, due to
the lifetime of the game, the last attacker may "expire" or die, in which
case, the lastAttacker()
may have an Optional.absent()
value.Modifier and Type | Method and Description |
---|---|
OptionalValue<Living> |
lastAttacker()
Gets the
OptionalValue for the last attacker. |
OptionalValue<Double> |
lastDamage()
Gets the last amount of damage dealt as an optional value.
|
asImmutable, copy, fill, fill, from, set, set, set, set, transform
compareTo
toContainer
OptionalValue<Living> lastAttacker()
OptionalValue
for the last attacker.OptionalValue<Double> lastDamage()