| Modifier and Type | Method and Description |
|---|---|
Tag |
SNBTIO.StringifiedNBTReader.parseTag(Tag tag) |
Tag |
SNBTIO.StringifiedNBTReader.readCompoundTag(String name) |
Tag |
SNBTIO.StringifiedNBTReader.readNextTag(String name) |
static Tag |
NBTIO.readTag(DataInput in)
Reads an NBT tag.
|
static Tag |
NBTIO.readTag(InputStream in)
Reads a big endian NBT tag.
|
static Tag |
SNBTIO.readTag(InputStream in)
Reads a stringified NBT tag.
|
static Tag |
NBTIO.readTag(InputStream in,
boolean littleEndian)
Reads an NBT tag.
|
| Modifier and Type | Method and Description |
|---|---|
Tag |
SNBTIO.StringifiedNBTReader.parseTag(Tag tag) |
static void |
NBTIO.writeTag(DataOutput out,
Tag tag)
Writes an NBT tag.
|
static void |
NBTIO.writeTag(OutputStream out,
Tag tag)
Writes an NBT tag in big endian.
|
static void |
SNBTIO.writeTag(OutputStream out,
Tag tag)
Writes a stringified NBT tag.
|
static void |
NBTIO.writeTag(OutputStream out,
Tag tag,
boolean littleEndian)
Writes an NBT tag.
|
static void |
SNBTIO.writeTag(OutputStream out,
Tag tag,
boolean linebreak)
Writes a stringified NBT tag.
|
void |
SNBTIO.StringifiedNBTWriter.writeTag(Tag tag,
boolean linebreak) |
void |
SNBTIO.StringifiedNBTWriter.writeTag(Tag tag,
boolean linebreak,
int depth) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
TagConverter<T extends Tag,V>
A converter that converts between a tag type and a value type.
|
| Modifier and Type | Method and Description |
|---|---|
static <V,T extends Tag> |
ConverterRegistry.convertToTag(String name,
V value)
Converts the given value to a tag.
|
static <T extends Tag,V> |
ConverterRegistry.convertToValue(T tag)
Converts the given tag to a value.
|
static <T extends Tag,V> |
ConverterRegistry.register(Class<T> tag,
Class<V> type,
TagConverter<T,V> converter)
Registers a converter.
|
static <T extends Tag,V> |
ConverterRegistry.unregister(Class<T> tag,
Class<V> type)
Unregisters a converter.
|
| Modifier and Type | Method and Description |
|---|---|
static Tag |
TagRegistry.createInstance(int id,
String tagName)
Creates an instance of the tag with the given id, using the String constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Class<? extends Tag> |
TagRegistry.getClassFor(int id)
Gets the tag class with the given id.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
TagRegistry.getIdFor(Class<? extends Tag> clazz)
Gets the id of the given tag class.
|
static void |
TagRegistry.register(int id,
Class<? extends Tag> tag)
Registers a tag class.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ByteArrayTag
A tag containing a byte array.
|
class |
ByteTag
A tag containing a byte.
|
class |
CompoundTag
A compound tag containing other tags.
|
class |
DoubleTag
A tag containing a double.
|
class |
FloatTag
A tag containing a float.
|
class |
IntArrayTag
A tag containing an integer array.
|
class |
IntTag
A tag containing an integer.
|
class |
ListTag
A tag containing a list of tags.
|
class |
LongArrayTag
A tag containing a long array.
|
class |
LongTag
A tag containing a long.
|
class |
ShortTag
A tag containing a short.
|
class |
StringTag
A tag containing a string.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Tag> |
ListTag.get(int index)
Gets the tag at the given index of this list tag.
|
<T extends Tag> |
CompoundTag.get(String tagName)
Gets the tag with the specified name.
|
<T extends Tag> |
CompoundTag.put(T tag)
Puts the tag into this compound tag.
|
<T extends Tag> |
CompoundTag.remove(String tagName)
Removes a tag from this compound tag.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Tag |
Tag.clone() |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Tag> |
ListTag.getElementType()
Gets the element type of the ListTag.
|
Map<String,Tag> |
CompoundTag.getValue() |
List<Tag> |
ListTag.getValue() |
Iterator<Tag> |
CompoundTag.iterator() |
Iterator<Tag> |
ListTag.iterator() |
Collection<Tag> |
CompoundTag.values()
Gets a collection of tags in this compound tag.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ListTag.add(Tag tag)
Adds a tag to this list tag.
|
boolean |
ListTag.remove(Tag tag)
Removes a tag from this list tag.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ListTag.setValue(List<Tag> value)
Sets the value of this tag.
|
void |
CompoundTag.setValue(Map<String,Tag> value)
Sets the value of this tag.
|
| Constructor and Description |
|---|
CompoundTag(String name,
Map<String,Tag> value)
Creates a tag with the specified name.
|
ListTag(String name,
Class<? extends Tag> type)
Creates an empty list tag with the specified name and type.
|
ListTag(String name,
List<Tag> value)
Creates a list tag with the specified name and value.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DoubleArrayTag
A tag containing a double array.
|
class |
FloatArrayTag
A tag containing a float array.
|
class |
ShortArrayTag
A tag containing a short array.
|
Copyright © 2021. All rights reserved.