Enum Pane.Priority
- All Implemented Interfaces:
Serializable
,Comparable<Pane.Priority>
,java.lang.constant.Constable
- Enclosing class:
Pane
An enum representing the rendering priorities for the panes. Uses a similar system to Bukkit's
EventPriority
system-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA higher priority, higher than defaultThe highest priority for production useA low priority, lower than defaultThe lowest priority, will be rendered firstThe highest priority, will always be called last, should not be used for production codeA normal priority, the default -
Method Summary
Modifier and TypeMethodDescriptionboolean
isGreaterThan
(@NotNull Pane.Priority priority) Whether this priority is greater than the priority specified.abstract boolean
isLessThan
(@NotNull Pane.Priority priority) Whether this priority is less than the priority specified.static Pane.Priority
Returns the enum constant of this type with the specified name.static Pane.Priority[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LOWEST
The lowest priority, will be rendered first -
LOW
A low priority, lower than default -
NORMAL
A normal priority, the default -
HIGH
A higher priority, higher than default -
HIGHEST
The highest priority for production use -
MONITOR
The highest priority, will always be called last, should not be used for production code
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
isLessThan
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
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
-