Enum Class NodePriority

java.lang.Object
java.lang.Enum<NodePriority>
dev.satyrn.papermc.api.configuration.v1.NodePriority
All Implemented Interfaces:
Serializable, Comparable<NodePriority>, Constable

public enum NodePriority extends Enum<NodePriority>
Used to determine whether a node should be superceded or supercede existing items in the node child list.
Since:
1.10.0
Author:
Isabel Maskrey
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The high priority value, which is only overwritten by HIGHEST priority nodes.
    The highest priority value, which is never overwritten.
    The low priority value, which is only overwritten by NORMAL to HIGHEST priority nodes.
    The lowest priority value, which is always overwritten, even by new LOWEST priority nodes.
    The normal priority value, which is only overwritten by HIGH or HIGHEST priority nodes.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the priority value of this enum entry.
    Returns the enum constant of this class with the specified name.
    static NodePriority[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • LOWEST

      public static final NodePriority LOWEST
      The lowest priority value, which is always overwritten, even by new LOWEST priority nodes.
    • LOW

      public static final NodePriority LOW
      The low priority value, which is only overwritten by NORMAL to HIGHEST priority nodes.
    • NORMAL

      public static final NodePriority NORMAL
      The normal priority value, which is only overwritten by HIGH or HIGHEST priority nodes.
    • HIGH

      public static final NodePriority HIGH
      The high priority value, which is only overwritten by HIGHEST priority nodes.
    • HIGHEST

      public static final NodePriority HIGHEST
      The highest priority value, which is never overwritten.
  • Method Details

    • values

      public static NodePriority[] 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 NodePriority 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()
      Gets the priority value of this enum entry.
      Returns:
      The priority of the enum entry.
      Since:
      1.10.0