Contents
Class DamageCalculatorSystems.DamageSequence
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.damage.DamageCalculatorSystems.DamageSequence
- Enclosing class:
DamageCalculatorSystems
A damage sequence tracker for damage calculation.
-
Constructor Summary
ConstructorsConstructorDescriptionDamageSequence(DamageCalculatorSystems.Sequence sequence, DamageCalculator damageCalculator) Default Constructor for aDamageCalculatorSystems.DamageSequenceinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled to increment the number of sequential hits in this damage sequence.intvoidsetEntityStatOnHit(DamageEntityInteraction.EntityStatOnHit[] entityStatOnHit) Called to set the array of entity stats to modify on hit.
-
Constructor Details
-
DamageSequence
public DamageSequence(@Nonnull DamageCalculatorSystems.Sequence sequence, @Nonnull DamageCalculator damageCalculator) Default Constructor for aDamageCalculatorSystems.DamageSequenceinstance.- Parameters:
sequence- The sequence of hits for damage calculation.damageCalculator- The damage calculator used for this damage sequence.
-
-
Method Details
-
getSequentialHits
public int getSequentialHits()- Returns:
- the number of sequential hits in this damage sequence.
-
addSequentialHit
public void addSequentialHit()Called to increment the number of sequential hits in this damage sequence. -
getDamageCalculator
- Returns:
- the damage calculator used for this damage sequence.
-
getEntityStatOnHit
- Returns:
- the array of entity stats to modify on hit, or
nullif none are set.
-
setEntityStatOnHit
Called to set the array of entity stats to modify on hit.- Parameters:
entityStatOnHit- The array of entity stats to modify on hit.
-