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

Method getByColor

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

Gets the DyeColor with the given color value. @param color Color value to get the dye by @return The DyeColor representing the given value, or null if it doesn't exist

(@NotNull final Color color)

Source from the content-addressed store, hash-verified

181 * it doesn't exist
182 */
183 @Nullable
184 public static DyeColor getByColor(@NotNull final Color color) {
185 return BY_COLOR.get(color);
186 }
187
188 /**
189 * Gets the DyeColor with the given firework color value.

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected