| Package | Description |
|---|---|
| xyz.nickr.nbt | |
| xyz.nickr.nbt.tags |
| Modifier and Type | Method and Description |
|---|---|
static NBTTag |
NBTCodec.createTag(byte id)
Attempts to create an NBTTag given a type ID.
|
NBTTag |
NBTCodec.decode(io.netty.buffer.ByteBuf buf,
NBTCompression compression)
Decodes a
NBTTag from a given ByteBuf, using a specified NBTCompression method. |
NBTTag |
NBTCodec.decode(InputStream in,
NBTCompression compression)
Decodes a
NBTTag from a given InputStream, using a specified NBTCompression method. |
| Modifier and Type | Method and Description |
|---|---|
void |
NBTCodec.encode(io.netty.buffer.ByteBuf buf,
NBTTag tag,
NBTCompression compression)
Encodes an
NBTTag to a given ByteBuf, using a specified NBTCompression method. |
void |
NBTCodec.encode(OutputStream out,
NBTTag tag,
NBTCompression compression)
Encodes an
NBTTag to a given OutputStream, using a specified NBTCompression method. |
| Modifier and Type | Class and Description |
|---|---|
class |
ByteArrayTag
Represents a
NBTTag containing a byte array. |
class |
ByteTag
Represents a
NBTTag containing a byte. |
class |
CompoundTag
Represents a
NBTTag containing multiple named tags short. |
class |
DoubleTag
Represents a
NBTTag containing a double. |
class |
EndTag
|
class |
FloatTag
Represents a
NBTTag containing a float. |
class |
IntArrayTag
Represents a
NBTTag containing an int array. |
class |
IntTag
Represents a
NBTTag containing an int. |
class |
ListTag
Represents a
NBTTag containing a list of unnamed NBTTags of the same type. |
class |
LongTag
Represents a
NBTTag containing a long. |
class |
NumberTag |
class |
ShortTag
Represents a
NBTTag containing a short. |
class |
StringTag
Represents a
NBTTag containing a String. |
| Modifier and Type | Method and Description |
|---|---|
<T extends NBTTag> |
NBTTag.read(io.netty.buffer.ByteBuf buf)
Reads data into this tag from the given buffer with the given byte order.
|
<T extends NBTTag> |
NBTTag.setName(String name)
Sets this tag's name.
|
<T extends NBTTag> |
NBTTag.write(io.netty.buffer.ByteBuf buf)
Writes data from this tag into the given buffer with the given byte order.
|
| Modifier and Type | Method and Description |
|---|---|
NBTTag |
ListTag.get(int index)
Gets the n-th
NBTTag to be added to this tag. |
| Modifier and Type | Method and Description |
|---|---|
Optional<NBTTag> |
CompoundTag.get(String name)
Gets the tag contained in this compound tag with a given name.
|
Iterator<NBTTag> |
ListTag.iterator() |
Iterator<NBTTag> |
CompoundTag.iterator() |
List<NBTTag> |
ListTag.list()
Gets a list representation of the
NBTTags in this list tag. |
Map<String,NBTTag> |
CompoundTag.map()
Gets this compound tag as a map of Strings to
NBTTags. |
Spliterator<NBTTag> |
ListTag.spliterator() |
Spliterator<NBTTag> |
CompoundTag.spliterator() |
Collection<NBTTag> |
CompoundTag.values()
Gets this compound tag as a collection of
NBTTags. |
| Modifier and Type | Method and Description |
|---|---|
void |
ListTag.add(NBTTag tag)
Adds a tag to this compound tag.
|
void |
CompoundTag.add(NBTTag tag)
Adds a tag to this compound tag.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ListTag.set(List<NBTTag> tags)
Sets the backing list of tags to be the given one.
|
void |
CompoundTag.set(Map<String,NBTTag> tags)
Sets the backing list of tags to be the given one.
|
| Constructor and Description |
|---|
CompoundTag(NBTTag... tags)
Creates a CompoundTag containing the given
NBTTags. |
ListTag(NBTTag... tags)
Creates a ListTag containing the given
NBTTags. |
Copyright © 2016. All rights reserved.