MCPcopy Create free account
hub / github.com/Teneted/Tenet / value

Method value

src/main/java/org/bukkit/Warning.java:84–94  ·  view source on GitHub ↗

This method returns the corresponding warning state for the given string value. @param value The string value to check @return #DEFAULT if not found, or the respective WarningState

(@Nullable final String value)

Source from the content-addressed store, hash-verified

82 * WarningState
83 */
84 @NotNull
85 public static WarningState value(@Nullable final String value) {
86 if (value == null) {
87 return DEFAULT;
88 }
89 WarningState state = values.get(value.toLowerCase());
90 if (state == null) {
91 return DEFAULT;
92 }
93 return state;
94 }
95 }
96
97 /**

Callers 2

CraftServerMethod · 0.95
reloadMethod · 0.95

Calls 2

toLowerCaseMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected