Class AbilityCharges

java.lang.Object
com.hypixel.hytale.builtin.abilities.trigger.AbilityCharges
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class AbilityCharges extends Object implements Component<EntityStore>
The buffs granted by ability casts that run an authored interaction each time their trigger fires (see AbilityChargeTrigger; today both triggers are weapon attacks) until their charges or the buff run out. One carrier holds one AbilityCharges.Entry per buff effect, so buffs from different abilities (a poison imbue and a wind strike) coexist and each spends its own charges. Recasting an ability replaces its own entry only. The interaction runs server-simulated on the carrier with the cast's ImpactModifiers snapshot in context, so its nodes resolve the rune values the cast did, whatever was cast since.
  • Field Details

    • UNLIMITED

      public static final int UNLIMITED
      Remaining value of a buff with no charge limit: it lasts as long as its effect.
      See Also:
  • Constructor Details

    • AbilityCharges

      public AbilityCharges()
    • AbilityCharges

      public AbilityCharges(@Nonnull AbilityCharges.Entry entry)
  • Method Details