Contents
Enum Class StatChangeDirection
java.lang.Object
java.lang.Enum<StatChangeDirection>
com.hypixel.hytale.server.core.modules.entitystats.StatChangeDirection
- All Implemented Interfaces:
Serializable, Comparable<StatChangeDirection>, Constable
Direction of a stat value change, used to scope stat-change suppression (see
EntityStatMap.setStatChangeSuppressed(int, StatChangeDirection, boolean)). BOTH is the composite a stat holds when
something suppresses its increases and its decreases at the same time.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleancovers(StatChangeDirection other) Whether suppressing this direction also suppressesother.union(StatChangeDirection other) This direction combined withother(BOTHwhen they differ).static StatChangeDirectionReturns the enum constant of this class with the specified name.static StatChangeDirection[]values()Returns an array containing the constants of this enum class, in the order they are declared.without(StatChangeDirection other) This direction withotherremoved, ornullwhen nothing remains.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
RAISE
Value-increasing changes (heal, regen, refill). -
LOWER
Value-decreasing changes (damage, oxygen drain, drain). -
BOTH
Both directions.
-
-
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
-
covers
Whether suppressing this direction also suppressesother. -
union
This direction combined withother(BOTHwhen they differ). -
without
This direction withotherremoved, ornullwhen nothing remains.
-