Enum Class ContextValue.State
java.lang.Object
java.lang.Enum<ContextValue.State>
io.github.syst3ms.skriptparser.registration.context.ContextValue.State
- All Implemented Interfaces:
Serializable, Comparable<ContextValue.State>, Constable
- Enclosing class:
ContextValue<C extends TriggerContext, T>
An enum to indicate the relative position in time between two similar context values.
Note that this is just to indicate time difference. There isn't a different treatment
for different states.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe context value indicates something that changed during the event related to its state in the past, or something that will change after the event.The context value indicates something before the event happened.The context value indicates something during the event. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContextValue.StateReturns the enum constant of this class with the specified name.static ContextValue.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PAST
The context value indicates something before the event happened. -
PRESENT
The context value indicates something during the event. -
FUTURE
The context value indicates something that changed during the event related to its state in the past, or something that will change after the event.
-
-
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
-