DamageDataComponent

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 Instant lastCombatAction

getLastDamageTime

public Instant getLastDamageTime ()

Method getLastDamageTime.

setLastDamageTime

public void setLastDamageTime (@Nonnull final Instant lastDamageTime)

Method setLastDamageTime.

Parameters:
@Nonnull final Instant lastDamageTime

getLastChargeTime

public Instant getLastChargeTime ()

Method getLastChargeTime.

setLastChargeTime

public void setLastChargeTime (@Nonnull final Instant lastChargeTime)

Method setLastChargeTime.

Parameters:
@Nonnull final Instant lastChargeTime

getCurrentWielding

public WieldingInteraction getCurrentWielding ()

Method getCurrentWielding.

setCurrentWielding

public void setCurrentWielding (@Nullable final WieldingInteraction currentWielding)

Method setCurrentWielding.

Parameters:
@Nullable final WieldingInteraction currentWielding

clone

public Component clone ()

Method clone.