Package | Description |
---|---|
de.tr7zw.changeme.nbtapi | |
de.tr7zw.changeme.nbtapi.iface |
Modifier and Type | Method and Description |
---|---|
static NBTType |
NBTReflectionUtil.getListType(NBTCompound comp,
String key) |
NBTType |
NBTCompound.getListType(String name)
Returns the type of the list, null if not a list
|
NBTType |
NBTList.getType() |
NBTType |
NBTCompound.getType(String name) |
static NBTType |
NBTType.valueOf(int id) |
static NBTType |
NBTType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NBTType[] |
NBTType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static <T> NBTList<T> |
NBTReflectionUtil.getList(NBTCompound comp,
String key,
NBTType type,
Class<T> clazz)
Returns the List saved with a given key.
|
Constructor and Description |
---|
NBTCompoundList(NBTCompound owner,
String name,
NBTType type,
Object list) |
NBTDoubleList(NBTCompound owner,
String name,
NBTType type,
Object list) |
NBTFloatList(NBTCompound owner,
String name,
NBTType type,
Object list) |
NBTIntArrayList(NBTCompound owner,
String name,
NBTType type,
Object list) |
NBTIntegerList(NBTCompound owner,
String name,
NBTType type,
Object list) |
NBTList(NBTCompound owner,
String name,
NBTType type,
Object list) |
NBTLongList(NBTCompound owner,
String name,
NBTType type,
Object list) |
NBTStringList(NBTCompound owner,
String name,
NBTType type,
Object list) |
NBTUUIDList(NBTCompound owner,
String name,
NBTType type,
Object list) |
Modifier and Type | Method and Description |
---|---|
NBTType |
ReadableNBT.getListType(String name)
Returns the type of the list, null if not a list
|
NBTType |
ReadableNBTList.getType()
Returns the type of this tag
|
NBTType |
ReadableNBT.getType(String name) |
Modifier and Type | Method and Description |
---|---|
default boolean |
ReadableNBT.hasTag(String key,
NBTType type)
Checks whether the provided key exists and has the specified type
|
Copyright © 2015–2024 tr7zw. All rights reserved.