Enum Class TickPriority
- All Implemented Interfaces:
Serializable, Comparable<TickPriority>, Constable
The order scheduled ticks due on the same game tick run in: every
EXTREMELY_HIGH tick
first, then every VERY_HIGH one, and so on. Ticks of the same priority run in the order
they were scheduled.
Repeaters rely on it: one turning on runs before one turning off, so that a line of them never flickers.
- Since:
- 0.1.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRuns before every other tick.Runs after every other tick.Runs right afterVERY_HIGH.Runs right afterNORMAL.The default priority.Runs right afterEXTREMELY_HIGH.Runs right afterLOW. -
Method Summary
Modifier and TypeMethodDescriptionstatic TickPriorityReturns the enum constant of this class with the specified name.static TickPriority[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXTREMELY_HIGH
Runs before every other tick. -
VERY_HIGH
Runs right afterEXTREMELY_HIGH. -
HIGH
Runs right afterVERY_HIGH. -
NORMAL
The default priority. -
LOW
Runs right afterNORMAL. -
VERY_LOW
Runs right afterLOW. -
EXTREMELY_LOW
Runs after every other tick.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-