Class DamageMemory
java.lang.Object
com.hypixel.hytale.builtin.npccombatactionevaluator.memory.DamageMemory
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
-
Field Summary
FieldsFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDamage(float damage) voidvoidclone()static ComponentType<EntityStore, DamageMemory> floatfloattoString()Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
recentDamage
private float recentDamage -
totalCombatDamage
private float totalCombatDamage
-
-
Constructor Details
-
DamageMemory
public DamageMemory()
-
-
Method Details
-
getComponentType
-
getRecentDamage
public float getRecentDamage() -
getTotalCombatDamage
public float getTotalCombatDamage() -
addDamage
public void addDamage(float damage) -
clearRecentDamage
public void clearRecentDamage() -
clearTotalDamage
public void clearTotalDamage() -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Overrides:
clonein classObject
-
toString
-