Package org.bukkit
Enum Warning.WarningState
- All Implemented Interfaces:
- Serializable,- Comparable<Warning.WarningState>,- java.lang.constant.Constable
- Enclosing class:
- Warning
This represents the states that server verbose for warnings may be.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptionbooleanThis method checks the provided warning should be printed for this statestatic Warning.WarningStateThis method returns the corresponding warning state for the given string value.static Warning.WarningStateReturns the enum constant of this type with the specified name.static Warning.WarningState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
ONIndicates all warnings should be printed for deprecated items.
- 
OFFIndicates no warnings should be printed for deprecated items.
- 
DEFAULTIndicates each warning would default to the configuredWarningannotation, or always if annotation not found.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
printForThis method checks the provided warning should be printed for this state- Parameters:
- warning- The warning annotation added to a deprecated item
- Returns:
- ON is always True
- OFF is always false
- DEFAULT is false if and only if annotation is not null and
     specifies false for Warning.value(), true otherwise.
 
 
- 
valueThis method returns the corresponding warning state for the given string value.- Parameters:
- value- The string value to check
- Returns:
- DEFAULTif not found, or the respective WarningState
 
 
-