| Package | Description |
|---|---|
| com.github.steveice10.opennbt.conversion | |
| com.github.steveice10.opennbt.tag | |
| com.github.steveice10.opennbt.tag.builtin |
| 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(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)
Creates an instance of the tag with the given id, using the String constructor.
|
| 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,
Supplier<? extends Tag> supplier)
Registers a tag class.
|
static void |
TagRegistry.register(int id,
Class<? extends Tag> tag,
Supplier<? extends Tag> supplier)
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 |
NumberTag
Abstract class representing a number tag, containing methods to return primitive number types.
|
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.
|
<T extends Tag> |
CompoundTag.put(String tagName,
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 |
|---|---|
Set<Map.Entry<String,Tag>> |
CompoundTag.entrySet()
Gets the entry set of this compound tag.
|
Class<? extends Tag> |
ListTag.getElementType()
Gets the element type of the ListTag.
|
List<Tag> |
ListTag.getValue() |
Map<String,Tag> |
CompoundTag.getValue() |
Iterator<Tag> |
ListTag.iterator() |
Iterator<Map.Entry<String,Tag>> |
CompoundTag.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 |
CompoundTag.setValue(LinkedHashMap<String,Tag> value)
Sets the value of this tag without wrapping the map.
|
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(LinkedHashMap<String,Tag> value)
Creates a tag without wrapping the map.
|
CompoundTag(Map<String,Tag> value)
Creates a tag.
|
ListTag(List<Tag> value)
Creates a list tag and value.
|
Copyright © 2021. All rights reserved.