DamageCalculatorSystems.DamageSequence
Package: com.hypixel.hytale.server.core.modules.entity.damage
public static class DamageCalculatorSystems.DamageSequenceTracks the state of sequential hits within a damage interaction chain. Attached to Damage events via the DamageCalculatorSystems.DAMAGE_SEQUENCE meta key. Wraps a Sequence hit counter, a DamageCalculator configuration, and optional entity stat modifications on hit.
Constructor
Section titled “Constructor”public DamageSequence(@Nonnull DamageCalculatorSystems.Sequence sequence, @Nonnull DamageCalculator damageCalculator)Creates a damage sequence with a hit counter and damage calculator configuration.
Methods
Section titled “Methods”public int getSequentialHits()Returns the current number of sequential hits from the underlying Sequence.
public void addSequentialHit()Increments the sequential hit counter.
@Nonnullpublic DamageCalculator getDamageCalculator()Returns the DamageCalculator configuration controlling sequential damage scaling.
@Nullablepublic DamageEntityInteraction.EntityStatOnHit[] getEntityStatOnHit()Returns the array of entity stat modifications to apply on each hit, or null.
public void setEntityStatOnHit(@Nullable DamageEntityInteraction.EntityStatOnHit[] entityStatOnHit)Sets the entity stat modifications to apply on hit.
Related Types
Section titled “Related Types”- DamageCalculatorSystems — parent class
- DamageCalculatorSystems.Sequence — the hit counter
- DamageCalculatorSystems.SequenceModifier — system that reads this data
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.