| Package | Description |
|---|---|
| com.comphenix.protocol.wrappers.nbt | |
| com.comphenix.protocol.wrappers.nbt.io |
| Modifier and Type | Method and Description |
|---|---|
static <T> NbtWrapper<T> |
NbtFactory.fromBase(NbtBase<T> base)
Get a NBT wrapper from a NBT base.
|
static NbtWrapper<?> |
NbtFactory.fromItemTag(org.bukkit.inventory.ItemStack stack)
Construct a wrapper for an NBT tag stored (in memory) in an item stack.
|
static <T> NbtWrapper<T> |
NbtFactory.fromNMS(Object handle)
Deprecated.
|
static <T> NbtWrapper<T> |
NbtFactory.fromNMS(Object handle,
String name)
Initialize a NBT wrapper with a name.
|
static <T> NbtWrapper<T> |
NbtFactory.ofWrapper(Class<?> type,
String name,
T value)
Create a new NBT wrapper from a given type.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
<TType> NbtWrapper<TType> |
NbtConfigurationSerializer.deserialize(org.bukkit.configuration.ConfigurationSection root,
String nodeName)
Read a NBT tag from a root configuration.
|
<TType> NbtWrapper<TType> |
NbtBinarySerializer.deserialize(DataInput source)
Load an NBT tag from a stream.
|
<TType> NbtWrapper<TType> |
NbtTextSerializer.deserialize(String input)
Deserialize a NBT tag from a base-64 encoded string.
|
Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.