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

Method legacyValueOf

src/main/java/org/bukkit/DyeColor.java:207–211  ·  view source on GitHub ↗

Gets the DyeColor for the given name, possibly doing legacy transformations. @param name dye name @return dye color @deprecated legacy use only

(@Nullable String name)

Source from the content-addressed store, hash-verified

205 * @deprecated legacy use only
206 */
207 @Deprecated
208 @NotNull
209 public static DyeColor legacyValueOf(@Nullable String name) {
210 return "SILVER".equals(name) ? DyeColor.LIGHT_GRAY : DyeColor.valueOf(name);
211 }
212
213 static {
214 BY_WOOL_DATA = values();

Callers 2

CraftMetaBannerMethod · 0.95
PatternMethod · 0.95

Calls 2

equalsMethod · 0.65
valueOfMethod · 0.45

Tested by

no test coverage detected