Package | Description |
---|---|
com.comphenix.protocol.wrappers.nbt | |
com.comphenix.protocol.wrappers.nbt.io |
Modifier and Type | Method and Description |
---|---|
static NbtList<?> |
NbtFactory.asList(NbtBase<?> tag)
Attempt to cast this NBT tag as a list.
|
<T> NbtList<T> |
NbtCompound.getList(java.lang.String key)
Retrieve the NBT list value of an entry identified by a given key.
|
<T> NbtList<T> |
NbtCompound.getListOrDefault(java.lang.String key)
Retrieve a NBT list value by its key, or create a new list if it doesn't exist.
|
static <T> NbtList<T> |
NbtFactory.ofList(java.lang.String name,
java.util.Collection<? extends T> elements)
Construct a NBT list of out a list of values.
|
static <T> NbtList<T> |
NbtFactory.ofList(java.lang.String name,
T... elements)
Construct a NBT list of out an array of values.
|
Modifier and Type | Method and Description |
---|---|
<T> NbtCompound |
NbtCompound.put(NbtList<T> list)
Associate a NBT list with the given key.
|
boolean |
NbtVisitor.visitEnter(NbtList<?> list)
Begin visiting a list node that contains multiple child nodes of the same type.
|
boolean |
NbtVisitor.visitLeave(NbtList<?> list)
Stop visiting a list node.
|
Modifier and Type | Method and Description |
---|---|
<T> NbtList<T> |
NbtBinarySerializer.deserializeList(java.io.DataInput source)
Load an NBT list from a stream.
|
<T> NbtList<T> |
NbtTextSerializer.deserializeList(java.lang.String input)
Deserialize a NBT list from a base-64 encoded string.
|
<T> NbtList<T> |
NbtConfigurationSerializer.deserializeList(org.bukkit.configuration.file.YamlConfiguration root,
java.lang.String nodeName)
Read a NBT compound from a root configuration.
|