Package | Description |
---|---|
com.comphenix.protocol.wrappers.nbt | |
com.comphenix.protocol.wrappers.nbt.io |
Modifier and Type | Method and Description |
---|---|
NbtType |
NbtList.getElementType()
Get the type of each element.
|
NbtType |
NbtBase.getType()
Retrieve the type of this NBT element.
|
static NbtType |
NbtType.getTypeFromClass(java.lang.Class<?> clazz)
Retrieve an NBT type from the given Java class.
|
static NbtType |
NbtType.getTypeFromID(int rawID)
Retrieve an NBT type from a given raw ID.
|
static NbtType |
NbtType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NbtType[] |
NbtType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
NbtBase<?> |
NbtCompound.getValueOrDefault(java.lang.String key,
NbtType type)
Retrieve a value by its key, or assign and return a new NBT element if it doesn't exist.
|
static <T> NbtWrapper<T> |
NbtFactory.ofWrapper(NbtType type,
java.lang.String name)
Create a new NBT wrapper from a given type.
|
static <T> NbtWrapper<T> |
NbtFactory.ofWrapper(NbtType type,
java.lang.String name,
T value)
Create a new NBT wrapper from a given type.
|
void |
NbtList.setElementType(NbtType type)
Set the type of each element.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
NbtConfigurationSerializer.toNodeValue(java.lang.Object value,
NbtType type) |