Enum Class AbilityChargeTrigger

java.lang.Object
java.lang.Enum<AbilityChargeTrigger>
com.hypixel.hytale.builtin.abilities.trigger.AbilityChargeTrigger
All Implemented Interfaces:
Serializable, Comparable<AbilityChargeTrigger>, Constable

public enum AbilityChargeTrigger extends Enum<AbilityChargeTrigger>
When a AbilityCharges buff spends a charge and runs its per-activation interaction.
  • Enum Constant Details

    • OnPrimaryActivation

      public static final AbilityChargeTrigger OnPrimaryActivation
      The held item's primary interaction is triggered: it starts, or, when it launches a projectile, when the projectile leaves. Fires whether or not anything is hit, and the interaction runs on the carrier with no target.
    • OnHit

      public static final AbilityChargeTrigger OnHit
      The held item's interaction hits an entity: a direct hit, or a hit by a projectile it launched. The interaction runs on the carrier with the victim as target entity.
  • Method Details

    • values

      public static AbilityChargeTrigger[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AbilityChargeTrigger valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null