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>

public static enum ContextValue.State extends Enum<ContextValue.State>
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.
  • Enum Constant Details

    • PAST

      public static final ContextValue.State PAST
      The context value indicates something before the event happened.
    • PRESENT

      public static final ContextValue.State PRESENT
      The context value indicates something during the event.
    • FUTURE

      public static final ContextValue.State 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

      public static ContextValue.State[] 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

      public static ContextValue.State valueOf(String name)
      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 name
      NullPointerException - if the argument is null