public interface ImmutableDamageableData extends ImmutableDataManipulator<ImmutableDamageableData,DamageableData>
ImmutableDataManipulator
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 |
---|---|
ImmutableOptionalValue<Living> |
lastAttacker()
Gets the
ImmutableOptionalValue for the last attacker. |
ImmutableOptionalValue<Double> |
lastDamage()
Gets the last amount of damage dealt as an optional value.
|
asMutable, copy, with, with
compareTo
toContainer
ImmutableOptionalValue<Living> lastAttacker()
ImmutableOptionalValue
for the last attacker.ImmutableOptionalValue<Double> lastDamage()