Package | Description |
---|---|
com.comphenix.protocol.utility | |
com.comphenix.protocol.wrappers.nbt | |
com.comphenix.protocol.wrappers.nbt.io |
Modifier and Type | Method and Description |
---|---|
NbtCompound |
StreamSerializer.deserializeCompound(java.io.DataInputStream input)
Read or deserialize an NBT compound from a input stream.
|
Modifier and Type | Method and Description |
---|---|
void |
StreamSerializer.serializeCompound(java.io.DataOutputStream output,
NbtCompound compound)
Write or serialize a NBT compound to the given output stream.
|
Modifier and Type | Method and Description |
---|---|
static NbtCompound |
NbtFactory.asCompound(NbtBase<?> tag)
Attempt to cast this NBT tag as a compund.
|
static NbtCompound |
NbtFactory.fromFile(java.lang.String file)
Load a NBT compound from a GZIP compressed file.
|
static NbtCompound |
NbtFactory.fromNMSCompound(java.lang.Object handle)
Retrieve the NBT compound from a given NMS handle.
|
NbtCompound |
NbtCompound.getCompound(java.lang.String key)
Retrieve the compound (map) value of an entry identified by a given key.
|
NbtCompound |
NbtCompound.getCompoundOrDefault(java.lang.String key)
Retrieve a compound (map) value by its key, or create a new compound if it doesn't exist.
|
static NbtCompound |
NbtFactory.ofCompound(java.lang.String name)
Construct a new NBT compound wrapper.
|
static NbtCompound |
NbtFactory.ofCompound(java.lang.String name,
java.util.Collection<? extends NbtBase<?>> list)
Construct a new NBT compound initialized with a given list of NBT values.
|
<T> NbtCompound |
NbtCompound.put(NbtBase<T> entry)
Set a entry based on its name.
|
NbtCompound |
NbtCompound.put(NbtCompound compound)
Associate a NBT compound with its name as key.
|
<T> NbtCompound |
NbtCompound.put(NbtList<T> list)
Associate a NBT list with the given key.
|
NbtCompound |
NbtCompound.put(java.lang.String key,
byte value)
Associate a NBT byte value with the given key.
|
NbtCompound |
NbtCompound.put(java.lang.String key,
byte[] value)
Associate a NBT byte array value with the given key.
|
<T> NbtCompound |
NbtCompound.put(java.lang.String key,
java.util.Collection<? extends NbtBase<T>> list)
Associate a new NBT list with the given key.
|
NbtCompound |
NbtCompound.put(java.lang.String key,
double value)
Associate a NBT double value with the given key.
|
NbtCompound |
NbtCompound.put(java.lang.String key,
float value)
Associate a NBT float value with the given key.
|
NbtCompound |
NbtCompound.put(java.lang.String key,
int value)
Associate a NBT integer value with the given key.
|
NbtCompound |
NbtCompound.put(java.lang.String key,
int[] value)
Associate a NBT integer array value with the given key.
|
NbtCompound |
NbtCompound.put(java.lang.String key,
long value)
Associate a NBT long value with the given key.
|
NbtCompound |
NbtCompound.put(java.lang.String key,
NbtBase<?> entry)
Inserts an entry after cloning it and renaming it to "key".
|
NbtCompound |
NbtCompound.put(java.lang.String key,
short value)
Associate a NBT short value with the given key.
|
NbtCompound |
NbtCompound.put(java.lang.String key,
java.lang.String value)
Associate a NBT string value with the given key.
|
NbtCompound |
NbtCompound.putObject(java.lang.String key,
java.lang.Object value)
Associates a given Java primitive value, list, map or NbtBase> with a certain key.
|
Modifier and Type | Method and Description |
---|---|
NbtCompound |
NbtCompound.put(NbtCompound compound)
Associate a NBT compound with its name as key.
|
static void |
NbtFactory.setItemTag(org.bukkit.inventory.ItemStack stack,
NbtCompound compound)
Set the NBT compound tag of a given item stack.
|
static void |
NbtFactory.toFile(NbtCompound compound,
java.lang.String file)
Save a NBT compound to a new compressed file, overwriting any existing files in the process.
|
boolean |
NbtVisitor.visitEnter(NbtCompound compound)
Begin visiting a compound node that contains multiple child nodes of different types.
|
boolean |
NbtVisitor.visitLeave(NbtCompound compound)
Stop visiting a compound node.
|
Modifier and Type | Method and Description |
---|---|
NbtCompound |
NbtBinarySerializer.deserializeCompound(java.io.DataInput source)
Load an NBT compound from a stream.
|
NbtCompound |
NbtTextSerializer.deserializeCompound(java.lang.String input)
Deserialize a NBT compound from a base-64 encoded string.
|
NbtCompound |
NbtConfigurationSerializer.deserializeCompound(org.bukkit.configuration.file.YamlConfiguration root,
java.lang.String nodeName)
Read a NBT compound from a root configuration.
|