Class DamageCalculatorSystems.DamageSequence

java.lang.Object
com.hypixel.hytale.server.core.modules.entity.damage.DamageCalculatorSystems.DamageSequence
Enclosing class:
DamageCalculatorSystems

public static class DamageCalculatorSystems.DamageSequence extends Object
A damage sequence tracker for damage calculation.
  • Constructor Details

  • 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

      @Nonnull public DamageCalculator getDamageCalculator()
      Returns:
      the damage calculator used for this damage sequence.
    • getEntityStatOnHit

      @Nullable public DamageEntityInteraction.EntityStatOnHit[] getEntityStatOnHit()
      Returns:
      the array of entity stats to modify on hit, or null if none are set.
    • setEntityStatOnHit

      public void setEntityStatOnHit(@Nullable DamageEntityInteraction.EntityStatOnHit[] entityStatOnHit)
      Called to set the array of entity stats to modify on hit.
      Parameters:
      entityStatOnHit - The array of entity stats to modify on hit.