public class DamageDataComponent implements Component
Component for tracking damagedata state. Attach this component to entities that need to track damagedata data.
java.lang.Object > DamageDataComponent
Field Summary
lastCombatAction
private
Instant
lastCombatAction
Field lastCombatAction.
lastDamageTime
private
Instant
lastDamageTime
Field lastDamageTime.
currentWielding
private
WieldingInteraction
currentWielding
Field currentWielding.
lastChargeTime
private
Instant
lastChargeTime
Field lastChargeTime.
damageDataComponent
final
DamageDataComponent
damageDataComponent
Field damageDataComponent.
Method Detail
DamageDataComponent
public
public
DamageDataComponent
()
Method DamageDataComponent.
getComponentType
public
DamageDataComponent>
getComponentType
()
Method getComponentType.
getLastCombatAction
public
Instant
getLastCombatAction
()
Method getLastCombatAction.
setLastCombatAction
public
void
setLastCombatAction
(@Nonnull final Instant lastCombatAction)
Method setLastCombatAction.
- Parameters:
@Nonnull final InstantlastCombatAction
getLastDamageTime
public
Instant
getLastDamageTime
()
Method getLastDamageTime.
setLastDamageTime
public
void
setLastDamageTime
(@Nonnull final Instant lastDamageTime)
Method setLastDamageTime.
- Parameters:
@Nonnull final InstantlastDamageTime
getLastChargeTime
public
Instant
getLastChargeTime
()
Method getLastChargeTime.
setLastChargeTime
public
void
setLastChargeTime
(@Nonnull final Instant lastChargeTime)
Method setLastChargeTime.
- Parameters:
@Nonnull final InstantlastChargeTime
setCurrentWielding
Method setCurrentWielding.
- Parameters:
@Nullable final WieldingInteractioncurrentWielding