Enum Class OrderPriority

java.lang.Object
java.lang.Enum<OrderPriority>
com.hypixel.hytale.component.dependency.OrderPriority
All Implemented Interfaces:
Serializable, Comparable<OrderPriority>, Constable

public enum OrderPriority extends Enum<OrderPriority>
An enum that represents the priority of a dependency.

Integer.MIN_VALUE represents the highest priority, while Integer.MAX_VALUE represents the lowest priority.

  • Enum Constant Details

    • CLOSEST

      public static final OrderPriority CLOSEST
      Closest - The highest priority dependency.
    • CLOSE

      public static final OrderPriority CLOSE
      Close - A high priority dependency.
    • NORMAL

      public static final OrderPriority NORMAL
      Normal - A normal priority dependency.
    • FURTHER

      public static final OrderPriority FURTHER
      Further - A low priority dependency.
    • FURTHEST

      public static final OrderPriority FURTHEST
      Furthest - The lowest priority dependency.
  • Method Details

    • values

      public static OrderPriority[] 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 OrderPriority 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
    • getValue

      public int getValue()
      Returns:
      the integer value of the priority.