public class NbtTypes
extends Object
-
Field Summary
Fields
| Modifier and Type |
Field |
Description |
private static NbtType<?>[] |
VALUES |
|
-
Constructor Summary
Constructors
| Constructor |
Description |
NbtTypes() |
|
-
Method Summary
| Modifier and Type |
Method |
Description |
static NbtType<?> |
byId(int id) |
Gets the associated NBT type for a given id.
|
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
VALUES
private static final NbtType<?>[] VALUES
-
Constructor Details
-
NbtTypes
public NbtTypes()
-
Method Details
-
byId
public static NbtType<?> byId(
int id)
Gets the associated
NBT type for a given
id.
This method does not support id aliases.
- Returns:
- the NBT type, or an invalid type if there is no type with the given
id