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

public enum StatChangeDirection extends Enum<StatChangeDirection>
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.
  • Enum Constant Details

  • Method Details

    • values

      public static StatChangeDirection[] 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 StatChangeDirection 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
    • covers

      public boolean covers(@Nonnull StatChangeDirection other)
      Whether suppressing this direction also suppresses other.
    • union

      @Nonnull public StatChangeDirection union(@Nonnull StatChangeDirection other)
      This direction combined with other (BOTH when they differ).
    • without

      @Nullable public StatChangeDirection without(@Nonnull StatChangeDirection other)
      This direction with other removed, or null when nothing remains.