| Package | Description | 
|---|---|
| de.tr7zw.changeme.nbtapi | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
NBTContainer
A Standalone  
NBTCompound implementation. | 
class  | 
NBTEntity
NBT class to access vanilla tags from Entities. 
 | 
class  | 
NBTFile
NBTCompound implementation backed by a File | 
class  | 
NBTItem
NBT class to access vanilla/custom tags on ItemStacks. 
 | 
class  | 
NBTListCompound
Cut down version of the  
NBTCompound for inside
 NBTCompoundList This Compound implementation is missing the ability
 for further subCompounds and Lists. | 
class  | 
NBTPersistentDataContainer  | 
class  | 
NBTTileEntity
NBT class to access vanilla tags from TileEntities. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
NBTCompound | 
NBTCompoundList.addCompound(NBTCompound comp)
Adds a copy of the Compound to the end of the List and returns it. 
 | 
NBTCompound | 
NBTCompound.addCompound(String name)
Creates a subCompound, or returns it if already provided 
 | 
NBTCompound | 
NBTCompound.extractDifference(ReadableNBT other)  | 
NBTCompound | 
NBTCompound.getCompound(String name)  | 
NBTCompound | 
NBTBlock.getData()  | 
NBTCompound | 
NBTCompound.getOrCreateCompound(String name)
The same as addCompound, just with a name that better reflects what it does 
 | 
NBTCompound | 
NBTCompound.getParent()  | 
NBTCompound | 
NBTList.getParent()  | 
NBTCompound | 
NBTChunk.getPersistentDataContainer()
Gets the NBTCompound used by spigots PersistentDataAPI. 
 | 
NBTCompound | 
NBTEntity.getPersistentDataContainer()
Gets the NBTCompound used by spigots PersistentDataAPI. 
 | 
NBTCompound | 
NBTTileEntity.getPersistentDataContainer()
Gets the NBTCompound used by spigots PersistentDataAPI. 
 | 
static NBTCompound | 
NBTFile.readFrom(File file)
Deprecated. 
 
Use NBT.readFile(file) 
 | 
static NBTCompound | 
NBTGameProfile.toNBT(com.mojang.authlib.GameProfile profile)
Deprecated.  
 | 
| Modifier and Type | Method and Description | 
|---|---|
NBTCompound | 
NBTCompoundList.addCompound(NBTCompound comp)
Adds a copy of the Compound to the end of the List and returns it. 
 | 
static void | 
NBTReflectionUtil.addNBTTagCompound(NBTCompound comp,
                 String name)
Creates a subCompound with a given name in the given NMS Compound 
 | 
static Object | 
NBTReflectionUtil.convertNBTCompoundtoNMSItem(NBTCompound nbtcompound)
Converts  
NBTCompound to NMS ItemStacks | 
static org.bukkit.inventory.ItemStack | 
NBTItem.convertNBTtoItem(NBTCompound comp)
Deprecated.  
 | 
static org.bukkit.inventory.ItemStack[] | 
NBTItem.convertNBTtoItemArray(NBTCompound comp)
Deprecated.  
 | 
static com.mojang.authlib.GameProfile | 
NBTGameProfile.fromNBT(NBTCompound compound)
Deprecated.  
 | 
static Object | 
NBTReflectionUtil.getData(NBTCompound comp,
       ReflectionMethod type,
       String key)
Gets data from the Compound 
 | 
static Object | 
NBTReflectionUtil.getEntry(NBTCompound comp,
        String key)  | 
static Set<String> | 
NBTReflectionUtil.getKeys(NBTCompound comp)
Gets the Keyset inside this Compound 
 | 
static <T> NBTList<T> | 
NBTReflectionUtil.getList(NBTCompound comp,
       String key,
       NBTType type,
       Class<T> clazz)
Returns the List saved with a given key. 
 | 
static NBTType | 
NBTReflectionUtil.getListType(NBTCompound comp,
           String key)  | 
static <T> T | 
NBTReflectionUtil.getObject(NBTCompound comp,
         String key,
         Class<T> type)
Uses Gson to load back a  
Serializable object from the Compound | 
static Object | 
NBTReflectionUtil.getToCompount(Object nbttag,
             NBTCompound comp)  | 
void | 
NBTCompound.mergeCompound(NBTCompound comp)
Merges all data from comp into this compound. 
 | 
static void | 
NBTReflectionUtil.mergeOtherNBTCompound(NBTCompound comp,
                     NBTCompound nbtcompoundSrc)
Merges the second  
NBTCompound into the first one | 
static void | 
NBTReflectionUtil.remove(NBTCompound comp,
      String key)
Deletes the given key 
 | 
static void | 
NBTFile.saveTo(File file,
      NBTCompound nbt)
Deprecated. 
 
Use NBT.writeFile(file, nbt) 
 | 
static void | 
NBTReflectionUtil.set(NBTCompound comp,
   String key,
   Object val)
Sets a key in a  
NBTCompound to a given value | 
static void | 
NBTReflectionUtil.setData(NBTCompound comp,
       ReflectionMethod type,
       String key,
       Object data)
Sets data inside the Compound 
 | 
static void | 
NBTReflectionUtil.setObject(NBTCompound comp,
         String key,
         Object value)
Uses Gson to set a  
Serializable value in a Compound | 
static boolean | 
NBTReflectionUtil.validCompound(NBTCompound comp)
Checks if the Compound is correctly linked to it's roots 
 | 
static void | 
NBTReflectionUtil.writeApiNBT(NBTCompound comp,
           OutputStream stream)
Writes a Compound to an OutputStream 
 | 
| Constructor and Description | 
|---|
NBTCompound(NBTCompound owner,
           String name)  | 
NBTCompound(NBTCompound owner,
           String name,
           boolean readOnly)  | 
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)  | 
Copyright © 2015–2025 tr7zw. All rights reserved.