Contents
Enum Class AbilityChargeTrigger
java.lang.Object
java.lang.Enum<AbilityChargeTrigger>
com.hypixel.hytale.builtin.abilities.trigger.AbilityChargeTrigger
- All Implemented Interfaces:
Serializable, Comparable<AbilityChargeTrigger>, Constable
When a
AbilityCharges buff spends a charge and runs its per-activation interaction.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe held item's interaction hits an entity: a direct hit, or a hit by a projectile it launched.The held item's primary interaction is triggered: it starts, or, when it launches a projectile, when the projectile leaves. -
Method Summary
Modifier and TypeMethodDescriptionstatic AbilityChargeTriggerReturns the enum constant of this class with the specified name.static AbilityChargeTrigger[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
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
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
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
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 nameNullPointerException- if the argument is null
-