Package org.skriptlang.skript.util
Interface Priority
- All Superinterfaces:
Comparable<Priority>
Priorities are used for things like ordering syntax and loading structures in a specific order.
-
Method Summary
Modifier and TypeMethodDescription@Unmodifiable Collection
<Priority> after()
static Priority
Constructs a new priority that is afterpriority
.static Priority
base()
@Unmodifiable Collection
<Priority> before()
static Priority
Constructs a new priority that is beforepriority
.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
base
- Returns:
- A base priority for other priorities to build relationships off of.
-
before
Constructs a new priority that is beforepriority
. Note that this method will not make any changes to theafter()
ofpriority
.- Parameters:
priority
- The priority that will be after the returned priority.- Returns:
- A priority that is before
priority
.
-
after
Constructs a new priority that is afterpriority
. Note that this method will not make any changes to thebefore()
ofpriority
.- Parameters:
priority
- The priority that will be before the returned priority.- Returns:
- A priority that is after
priority
.
-
after
@Unmodifiable Collection<Priority> after()- Returns:
- A collection of all priorities this priority is known to be after.
-
before
@Unmodifiable Collection<Priority> before()- Returns:
- A collection of all priorities this priority is known to be before.
-