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

Method getByWoolData

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

Gets the DyeColor with the given wool data value. @param data Wool data value to fetch @return The DyeColor representing the given value, or null if it doesn't exist @see #getByDyeData(byte) @deprecated Magic value

(final byte data)

Source from the content-addressed store, hash-verified

145 * @deprecated Magic value
146 */
147 @Deprecated
148 @Nullable
149 public static DyeColor getByWoolData(final byte data) {
150 int i = 0xff & data;
151 if (i >= BY_WOOL_DATA.length) {
152 return null;
153 }
154 return BY_WOOL_DATA[i];
155 }
156
157 /**
158 * Gets the DyeColor with the given dye data value.

Callers 11

getColorMethod · 0.95
loadMethod · 0.95
getColorMethod · 0.95
CraftMetaBannerMethod · 0.95
getColorMethod · 0.95
getPatternColorMethod · 0.95
getBodyColorMethod · 0.95
getCollarColorMethod · 0.95
getCollarColorMethod · 0.95
getColorMethod · 0.95
getColorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected