DamageCalculatorSystems.SequenceModifier
Package: com.hypixel.hytale.server.core.modules.entity.damage
public static class DamageCalculatorSystems.SequenceModifier extends DamageEventSystemA DamageEventSystem that applies sequential hit damage scaling. Runs after the gather and filter damage groups but before DamageSystems.ApplyDamage. For each damage event with a DAMAGE_SEQUENCE meta entry, it reduces damage based on the number of sequential hits using the damage calculator’s sequentialModifierStep and sequentialModifierMinimum. Also processes entity stat modifications on hit (e.g., restoring stamina to the attacker).
Methods
Section titled “Methods”@Nonnull@Overridepublic Set<Dependency<EntityStore>> getDependencies()Returns dependencies ensuring execution after gather/filter groups and before ApplyDamage.
@Nonnull@Overridepublic Query<EntityStore> getQuery()Returns an empty archetype query (matches all entities).
public void handle(int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull Damage damage)If the damage amount is positive and the event has a DAMAGE_SEQUENCE meta, applies sequential scaling: amount * max(1 - step * hits, minimum). Increments the hit counter and processes any EntityStatOnHit entries on the source entity.
Related Types
Section titled “Related Types”- DamageCalculatorSystems — parent class
- DamageCalculatorSystems.DamageSequence — the meta data read by this system
- DamageEventSystem — base class
- DamageSystems.ApplyDamage — runs after this system