Enum Class EventValueRegistry.Flag

java.lang.Object
java.lang.Enum<EventValueRegistry.Flag>
org.skriptlang.skript.bukkit.lang.eventvalue.EventValueRegistry.Flag
All Implemented Interfaces:
Serializable, Comparable<EventValueRegistry.Flag>, Constable
Enclosing interface:
EventValueRegistry

public static enum EventValueRegistry.Flag extends Enum<EventValueRegistry.Flag>
Flags used during event value resolution.
  • Enum Constant Details

    • FALLBACK_TO_DEFAULT_TIME_STATE

      public static final EventValueRegistry.Flag FALLBACK_TO_DEFAULT_TIME_STATE
      If resolution fails for the requested time state, fall back to the default time state (NOW).
    • ALLOW_CONVERSION

      public static final EventValueRegistry.Flag ALLOW_CONVERSION
      Allow converters to be used to satisfy the requested value type.
  • Method Details

    • values

      public static EventValueRegistry.Flag[] 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 EventValueRegistry.Flag 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