| Modifier and Type | Class and Description |
|---|---|
class |
ListTag<T extends Tag<?>>
The
TAG_List tag. |
| Modifier and Type | Class and Description |
|---|---|
class |
ByteArrayTag
The
TAG_Byte_Array tag. |
class |
ByteTag
The
TAG_Byte tag. |
class |
CompoundTag
The
TAG_Compound tag. |
class |
DoubleTag
The
TAG_Double tag. |
class |
EndTag
The
TAG_End tag. |
class |
FloatTag
The
TAG_Float tag. |
class |
IntArrayTag |
class |
IntTag
The
TAG_Int tag. |
class |
ListTag<T extends Tag<?>>
The
TAG_List tag. |
class |
LongTag
The
TAG_Long tag. |
class |
ShortArrayTag |
class |
ShortTag
The
TAG_Short tag. |
class |
StringTag
The
TAG_String tag. |
| Modifier and Type | Method and Description |
|---|---|
abstract Tag<T> |
Tag.clone()
Clones the Tag
|
Tag<?> |
CompoundMap.get(Object key) |
Tag<?> |
CompoundMap.put(String key,
Tag<?> value) |
Tag<?> |
CompoundMap.put(Tag<?> tag)
Puts a tag in this map, getting the string from the tag
|
Tag |
CompoundMap.remove(Object key) |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Tag<?>> |
Tag.cloneMap(Map<String,Tag<?>> map)
Clones a Map
|
Set<Map.Entry<String,Tag<?>>> |
CompoundMap.entrySet() |
Class<? extends Tag<?>> |
TagType.getTagClass() |
static Class<? extends Tag> |
NBTUtils.getTypeClass(int type)
Deprecated.
|
Iterator<Tag<?>> |
CompoundMap.iterator() |
Collection<Tag<?>> |
CompoundMap.values() |
| Modifier and Type | Method and Description |
|---|---|
int |
Tag.compareTo(Tag other) |
static Boolean |
ByteTag.getBooleanValue(Tag<?> t) |
Tag<?> |
CompoundMap.put(String key,
Tag<?> value) |
Tag<?> |
CompoundMap.put(Tag<?> tag)
Puts a tag in this map, getting the string from the tag
|
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Tag<?>> |
Tag.cloneMap(Map<String,Tag<?>> map)
Clones a Map
|
static TagType |
TagType.getByTagClass(Class<? extends Tag<?>> clazz) |
static int |
NBTUtils.getTypeCode(Class<? extends Tag<?>> clazz)
Deprecated.
|
static String |
NBTUtils.getTypeName(Class<? extends Tag<?>> clazz)
Deprecated.
|
void |
CompoundMap.putAll(Map<? extends String,? extends Tag<?>> values) |
| Constructor and Description |
|---|
CompoundMap(HashMap<String,Tag<?>> initial)
Deprecated.
|
CompoundMap(Iterable<Tag<?>> initial,
boolean sort,
boolean reverse)
Creates an empty CompoundMap which is initialised using the given values
|
CompoundMap(List<Tag<?>> initial)
Creates a CompoundMap back by a LinkedHashMap, so insertion order is preserved.
The map is initialised using the values given in the List. |
CompoundMap(Map<String,Tag<?>> initial)
Creates a CompoundMap back by a LinkedHashMap, so insertion order is preserved.
The map is initialised using the values given in the Map. |
| Constructor and Description |
|---|
InvalidTagException(Tag t) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Tag<?>> |
FieldUtils.checkTagCast(Tag<?> tag,
Class<T> type)
Checks that a tag is not null and of the required type
|
| Modifier and Type | Method and Description |
|---|---|
Tag<?> |
BooleanField.getValue(String name,
Boolean value) |
Tag<?> |
ListField.getValue(String name,
List<T> value) |
Tag<T> |
BasicTagField.getValue(String name,
T value) |
Tag<?> |
Field.getValue(String name,
T value)
Convert a value to its serialized NBT form
|
Tag<?> |
FieldHolderField.getValue(String name,
T value) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Tag<?>> |
FieldUtils.checkTagCast(Tag<?> tag,
Class<T> type)
Checks that a tag is not null and of the required type
|
T |
BasicTagField.getValue(Tag<?> tag) |
Boolean |
BooleanField.getValue(Tag<?> tag) |
T |
Field.getValue(Tag<?> tag)
Get the value of this field from the given tag
|
T |
FieldHolderField.getValue(Tag<?> rawTag) |
List<T> |
ListField.getValue(Tag<?> tag) |
| Constructor and Description |
|---|
BasicTagField(Class<? extends Tag<T>> valueType) |
| Modifier and Type | Method and Description |
|---|---|
static List<Tag<?>> |
StringMapReader.readFile(File f) |
| Modifier and Type | Method and Description |
|---|---|
static List<Tag<?>> |
SimpleRegionFileReader.readFile(File f) |
| Modifier and Type | Method and Description |
|---|---|
Tag |
NBTInputStream.readTag()
Reads an NBT
Tag from the stream. |
| Modifier and Type | Method and Description |
|---|---|
void |
NBTOutputStream.writeTag(Tag<?> tag)
Writes a tag.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
NBTMapper.getTagValue(Tag<?> t,
Class<? extends T> clazz)
Takes in an NBT tag, sanely checks null status, and then returns it value.
|
static Object |
NBTMapper.toTagValue(Tag<?> t)
Takes in an NBT tag, sanely checks null status, and then returns its value.
|
static <T,U extends T> |
NBTMapper.toTagValue(Tag<?> t,
Class<? extends T> clazz,
U defaultValue)
Takes in an NBT tag, sanely checks null status, and then returns it value.
|
Copyright © 2011–2014 Flow Powered. All rights reserved.