| 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(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(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(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,
String name)
Create a new NBT wrapper from a given type.
|
static <T> NbtWrapper<T> |
NbtFactory.ofWrapper(NbtType type,
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 |
|---|---|
Object |
NbtConfigurationSerializer.toNodeValue(Object value,
NbtType type) |
Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.