Skip to content

DamageCalculatorSystems.DamageSequence

Package: com.hypixel.hytale.server.core.modules.entity.damage

public static class DamageCalculatorSystems.DamageSequence

Tracks 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.

public DamageSequence(@Nonnull DamageCalculatorSystems.Sequence sequence, @Nonnull DamageCalculator damageCalculator)

Creates a damage sequence with a hit counter and damage calculator configuration.

public int getSequentialHits()

Returns the current number of sequential hits from the underlying Sequence.

public void addSequentialHit()

Increments the sequential hit counter.

@Nonnull
public DamageCalculator getDamageCalculator()

Returns the DamageCalculator configuration controlling sequential damage scaling.

@Nullable
public 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.

Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.