MCPcopy Create free account
hub / github.com/PaperMC/Paper / getByWoolData

Method getByWoolData

paper-api/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) @apiNote Internal Use Only

(final byte data)

Source from the content-addressed store, hash-verified

145 * @apiNote Internal Use Only
146 */
147 @org.jetbrains.annotations.ApiStatus.Internal // Paper
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 15

getByDataMethod · 0.95
getByWoolDataMethod · 0.95
getColorMethod · 0.95
bootstrapMethod · 0.95
convertMethod · 0.95
loadMethod · 0.95
getColorMethod · 0.95
getColorMethod · 0.95
CraftMetaBannerMethod · 0.95
shieldToBannerHackMethod · 0.95
CraftMetaShieldMethod · 0.95
getColorMethod · 0.95

Calls

no outgoing calls

Tested by 2

getByDataMethod · 0.76
getByWoolDataMethod · 0.76