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)
| 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()) { |