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

Method getByData

paper-api/src/main/java/org/bukkit/CoalType.java:41–45  ·  view source on GitHub ↗

Gets the type of coal with the given data value @param data Data value to fetch @return The CoalType representing the given value, or null if it doesn't exist @deprecated Magic value

(final byte data)

Source from the content-addressed store, hash-verified

39 * @deprecated Magic value
40 */
41 @Deprecated(since = "1.6.2")
42 @Nullable
43 public static CoalType getByData(final byte data) {
44 return BY_DATA.get(data);
45 }
46
47 static {
48 for (CoalType type : values()) {

Callers 2

getByDataMethod · 0.95
getTypeMethod · 0.95

Calls 1

getMethod · 0.65

Tested by 1

getByDataMethod · 0.76