|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Warning.WarningState> org.bukkit.Warning.WarningState
public static enum Warning.WarningState
This represents the states that server verbose for warnings may be.
Enum Constant Summary | |
---|---|
DEFAULT
Indicates each warning would default to the configured Warning annotation, or always if annotation not found. |
|
OFF
Indicates no warnings should be printed for deprecated items. |
|
ON
Indicates all warnings should be printed for deprecated items. |
Method Summary | |
---|---|
boolean |
printFor(Warning warning)
This method checks the provided warning should be printed for this state |
static Warning.WarningState |
value(String value)
This method returns the corresponding warning state for the given string value. |
static Warning.WarningState |
valueOf(String name)
Returns 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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Warning.WarningState ON
public static final Warning.WarningState OFF
public static final Warning.WarningState DEFAULT
Warning
annotation, or always if annotation not found.
Method Detail |
---|
public static final Warning.WarningState[] values()
for(Warning.WarningState c : Warning.WarningState.values()) System.out.println(c);
public static Warning.WarningState valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic boolean printFor(Warning warning)
warning
- The warning annotation added to a deprecated item
Warning.value()
, true otherwise.public static Warning.WarningState value(String value)
value
- The string value to check
DEFAULT
if not found, or the respective WarningState
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |