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(java.lang.Object handle)
Initialize a NBT wrapper.
|
static <T> NbtWrapper<T> |
NbtFactory.ofWrapper(java.lang.Class<?> type,
java.lang.String name,
T value)
Create a new NBT wrapper from a given type.
|
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.
|
Modifier and Type | Method and Description |
---|---|
<TType> NbtWrapper<TType> |
NbtConfigurationSerializer.deserialize(org.bukkit.configuration.ConfigurationSection root,
java.lang.String nodeName)
Read a NBT tag from a root configuration.
|
<TType> NbtWrapper<TType> |
NbtBinarySerializer.deserialize(java.io.DataInput source)
Load an NBT tag from a stream.
|
<TType> NbtWrapper<TType> |
NbtTextSerializer.deserialize(java.lang.String input)
Deserialize a NBT tag from a base-64 encoded string.
|