Enum Class EventValue.Validation

java.lang.Object
java.lang.Enum<EventValue.Validation>
org.skriptlang.skript.bukkit.lang.eventvalue.EventValue.Validation
All Implemented Interfaces:
Serializable, Comparable<EventValue.Validation>, Constable
Enclosing interface:
EventValue<E extends org.bukkit.event.Event,V>

public static enum EventValue.Validation extends Enum<EventValue.Validation>
Represents the validation status of an event value against an event context.
  • Enum Constant Details

    • VALID

      public static final EventValue.Validation VALID
      The event value is valid for the given event context.
    • INVALID

      public static final EventValue.Validation INVALID
      The event value is invalid for the given event context and should be ignored.
    • ABORT

      public static final EventValue.Validation ABORT
      The event value is invalid for the given event context and indicates an error that should stop the resolution process.
  • Method Details

    • values

      public static EventValue.Validation[] 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 EventValue.Validation 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