java.lang.Object
java.lang.Enum<Pane.Priority>
com.github.stefvanschie.inventoryframework.pane.Pane.Priority
All Implemented Interfaces:
Serializable, Comparable<Pane.Priority>, java.lang.constant.Constable
Enclosing class:
Pane

public static enum Pane.Priority extends Enum<Pane.Priority>
An enum representing the rendering priorities for the panes. Uses a similar system to Bukkit's EventPriority system
  • Enum Constant Details

    • LOWEST

      public static final Pane.Priority LOWEST
      The lowest priority, will be rendered first
    • LOW

      public static final Pane.Priority LOW
      A low priority, lower than default
    • NORMAL

      public static final Pane.Priority NORMAL
      A normal priority, the default
    • HIGH

      public static final Pane.Priority HIGH
      A higher priority, higher than default
    • HIGHEST

      public static final Pane.Priority HIGHEST
      The highest priority for production use
    • MONITOR

      public static final Pane.Priority MONITOR
      The highest priority, will always be called last, should not be used for production code
  • Method Details

    • values

      public static Pane.Priority[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Pane.Priority valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • isLessThan

      @Contract(pure=true) public abstract boolean isLessThan(@NotNull @NotNull Pane.Priority priority)
      Whether this priority is less than the priority specified.
      Parameters:
      priority - the priority to compare against
      Returns:
      true if this priority is less than the specified priority, false otherwise
      Since:
      0.8.0
    • isGreaterThan

      @Contract(pure=true) public boolean isGreaterThan(@NotNull @NotNull Pane.Priority priority)
      Whether this priority is greater than the priority specified.
      Parameters:
      priority - the priority to compare against
      Returns:
      true if this priority is greater than the specified priority, false otherwise
      Since:
      0.8.0