| 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(DataInputStream input)
Read or deserialize an NBT compound from a input stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
StreamSerializer.serializeCompound(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(String file)
Load a NBT compound from a GZIP compressed file.
|
static NbtCompound |
NbtFactory.fromNMSCompound(Object handle)
Retrieve the NBT compound from a given NMS handle.
|
NbtCompound |
NbtCompound.getCompound(String key)
Retrieve the compound (map) value of an entry identified by a given key.
|
NbtCompound |
NbtCompound.getCompoundOrDefault(String key)
Retrieve a compound (map) value by its key, or create a new compound if it doesn't exist.
|
static NbtCompound |
NbtFactory.ofCompound(String name)
Construct a new NBT compound wrapper.
|
static NbtCompound |
NbtFactory.ofCompound(String name,
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(String key,
byte value)
Associate a NBT byte value with the given key.
|
NbtCompound |
NbtCompound.put(String key,
byte[] value)
Associate a NBT byte array value with the given key.
|
<T> NbtCompound |
NbtCompound.put(String key,
Collection<? extends NbtBase<T>> list)
Associate a new NBT list with the given key.
|
NbtCompound |
NbtCompound.put(String key,
double value)
Associate a NBT double value with the given key.
|
NbtCompound |
NbtCompound.put(String key,
float value)
Associate a NBT float value with the given key.
|
NbtCompound |
NbtCompound.put(String key,
int value)
Associate a NBT integer value with the given key.
|
NbtCompound |
NbtCompound.put(String key,
int[] value)
Associate a NBT integer array value with the given key.
|
NbtCompound |
NbtCompound.put(String key,
long value)
Associate a NBT long value with the given key.
|
NbtCompound |
NbtCompound.put(String key,
NbtBase<?> entry)
Inserts an entry after cloning it and renaming it to "key".
|
NbtCompound |
NbtCompound.put(String key,
short value)
Associate a NBT short value with the given key.
|
NbtCompound |
NbtCompound.put(String key,
String value)
Associate a NBT string value with the given key.
|
NbtCompound |
NbtCompound.putObject(String key,
Object value)
Associates a given Java primitive value, list, map or NbtBase with a certain key.
|
static NbtCompound |
NbtFactory.readBlockState(org.bukkit.block.Block block)
Retrieve the NBT tile entity that represents the given block.
|
| 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,
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.
|
static void |
NbtFactory.writeBlockState(org.bukkit.block.Block target,
NbtCompound blockState)
Write to the NBT tile entity in the given block.
|
| Modifier and Type | Method and Description |
|---|---|
NbtCompound |
NbtBinarySerializer.deserializeCompound(DataInput source)
Load an NBT compound from a stream.
|
NbtCompound |
NbtTextSerializer.deserializeCompound(String input)
Deserialize a NBT compound from a base-64 encoded string.
|
NbtCompound |
NbtConfigurationSerializer.deserializeCompound(org.bukkit.configuration.file.YamlConfiguration root,
String nodeName)
Read a NBT compound from a root configuration.
|
Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.