com.massivecraft.factions.zcore.nbtapi

## Class NBTReflectionUtil

- java.lang.Object
- - com.massivecraft.factions.zcore.nbtapi.NBTReflectionUtil

-     public class NBTReflectionUtil
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NBTReflectionUtil()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `addNBTTagCompound(NBTCompound comp, java.lang.String name)`
    `static void` | `addOtherNBTCompound(NBTCompound comp, NBTCompound nbtcompound)`
    `static java.lang.Object` | `convertNBTCompoundtoNMSItem(NBTCompound nbtcompound)`
    `static NBTContainer` | `convertNMSItemtoNBTCompound(java.lang.Object nmsitem)`
    `static java.lang.Boolean` | `getBoolean(NBTCompound comp, java.lang.String key)`
    `static org.bukkit.inventory.ItemStack` | `getBukkitItemStack(java.lang.Object item)`
    `static java.lang.Byte` | `getByte(NBTCompound comp, java.lang.String key)`
    `static byte[]` | `getByteArray(NBTCompound comp, java.lang.String key)`
    `static java.lang.String` | `getContent(NBTCompound comp, java.lang.String key)`
    `protected static java.lang.Class<?>` | `getCraftWorld()`
    `static java.lang.Double` | `getDouble(NBTCompound comp, java.lang.String key)`
    `static java.lang.Object` | `getEntityNBTTagCompound(java.lang.Object nmsitem)`
    `static java.lang.Float` | `getFloat(NBTCompound comp, java.lang.String key)`
    `static java.lang.Integer` | `getInt(NBTCompound comp, java.lang.String key)`
    `static int[]` | `getIntArray(NBTCompound comp, java.lang.String key)`
    `static java.lang.Object` | `getItemRootNBTTagCompound(java.lang.Object nmsitem)`
    `static java.util.Set<java.lang.String>` | `getKeys(NBTCompound comp)`
    `static NBTList` | `getList(NBTCompound comp, java.lang.String key, NBTType type)`
    `static java.lang.Long` | `getLong(NBTCompound comp, java.lang.String key)`
    `protected static java.lang.Class<?>` | `getMojangsonParser()`
    `protected static java.lang.Class<?>` | `getNBTBase()`
    `protected static java.lang.Class<?>` | `getNBTCompressedStreamTools()`
    `protected static java.lang.Class<?>` | `getNBTTagCompound()`
    `protected static java.lang.Class<?>` | `getNBTTagString()`
    `static java.lang.Object` | `getNewNBTTag()`
    `static java.lang.Object` | `getNMSEntity(org.bukkit.entity.Entity entity)`
    `protected static java.lang.Class<?>` | `getNMSItemStack()`
    `static java.lang.Object` | `getNMSItemStack(org.bukkit.inventory.ItemStack item)`
    `static <T> T` | `getObject(NBTCompound comp, java.lang.String key, java.lang.Class<T> type)`
    `static java.lang.Short` | `getShort(NBTCompound comp, java.lang.String key)`
    `static java.lang.String` | `getString(NBTCompound comp, java.lang.String key)`
    `static java.lang.Object` | `getSubNBTTagCompound(java.lang.Object compound, java.lang.String name)`
    `protected static java.lang.Class<?>` | `getTileEntity()`
    `static java.lang.Object` | `getTileEntityNBTTagCompound(org.bukkit.block.BlockState tile)`
    `static java.lang.Object` | `gettoCompount(java.lang.Object nbttag, NBTCompound comp)`
    `static byte` | `getType(NBTCompound comp, java.lang.String key)`
    `static java.lang.Boolean` | `hasKey(NBTCompound comp, java.lang.String key)`
    `static java.lang.Object` | `parseNBT(java.lang.String json)`
    `static java.lang.Object` | `readNBTFile(java.io.FileInputStream stream)`
    `static void` | `remove(NBTCompound comp, java.lang.String key)`
    `static java.lang.Object` | `saveNBTFile(java.lang.Object nbt, java.io.FileOutputStream stream)`
    `static void` | `set(NBTCompound comp, java.lang.String key, java.lang.Object val)`
    `static void` | `setBoolean(NBTCompound comp, java.lang.String key, java.lang.Boolean d)`
    `static void` | `setByte(NBTCompound comp, java.lang.String key, java.lang.Byte f)`
    `static void` | `setByteArray(NBTCompound comp, java.lang.String key, byte[] b)`
    `static void` | `setDouble(NBTCompound comp, java.lang.String key, java.lang.Double d)`
    `static java.lang.Object` | `setEntityNBTTag(java.lang.Object NBTTag, java.lang.Object NMSItem)`
    `static void` | `setFloat(NBTCompound comp, java.lang.String key, java.lang.Float f)`
    `static void` | `setInt(NBTCompound comp, java.lang.String key, java.lang.Integer i)`
    `static void` | `setIntArray(NBTCompound comp, java.lang.String key, int[] i)`
    `static void` | `setLong(NBTCompound comp, java.lang.String key, java.lang.Long f)`
    `static java.lang.Object` | `setNBTTag(java.lang.Object NBTTag, java.lang.Object NMSItem)`
    `static void` | `setObject(NBTCompound comp, java.lang.String key, java.lang.Object value)`
    `static void` | `setShort(NBTCompound comp, java.lang.String key, java.lang.Short f)`
    `static void` | `setString(NBTCompound comp, java.lang.String key, java.lang.String text)`
    `static void` | `setTileEntityNBTTagCompound(org.bukkit.block.BlockState tile, java.lang.Object comp)`
    `static java.lang.Boolean` | `valideCompound(NBTCompound comp)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### NBTReflectionUtil

          public NBTReflectionUtil()

  - ### Method Detail

    - #### getNBTBase

          protected static java.lang.Class<?> getNBTBase()

    - #### getNBTTagString

          protected static java.lang.Class<?> getNBTTagString()

    - #### getNMSItemStack

          protected static java.lang.Class<?> getNMSItemStack()

    - #### getNBTTagCompound

          protected static java.lang.Class<?> getNBTTagCompound()

    - #### getNBTCompressedStreamTools

          protected static java.lang.Class<?> getNBTCompressedStreamTools()

    - #### getMojangsonParser

          protected static java.lang.Class<?> getMojangsonParser()

    - #### getTileEntity

          protected static java.lang.Class<?> getTileEntity()

    - #### getCraftWorld

          protected static java.lang.Class<?> getCraftWorld()

    - #### getNewNBTTag

          public static java.lang.Object getNewNBTTag()

    - #### setNBTTag

          public static java.lang.Object setNBTTag(java.lang.Object NBTTag,
                                                   java.lang.Object NMSItem)

    - #### getNMSItemStack

          public static java.lang.Object getNMSItemStack(org.bukkit.inventory.ItemStack item)

    - #### getNMSEntity

          public static java.lang.Object getNMSEntity(org.bukkit.entity.Entity entity)

    - #### parseNBT

          public static java.lang.Object parseNBT(java.lang.String json)

    - #### readNBTFile

          public static java.lang.Object readNBTFile(java.io.FileInputStream stream)

    - #### saveNBTFile

          public static java.lang.Object saveNBTFile(java.lang.Object nbt,
                                                     java.io.FileOutputStream stream)

    - #### getBukkitItemStack

          public static org.bukkit.inventory.ItemStack getBukkitItemStack(java.lang.Object item)

    - #### getItemRootNBTTagCompound

          public static java.lang.Object getItemRootNBTTagCompound(java.lang.Object nmsitem)

    - #### convertNBTCompoundtoNMSItem

          public static java.lang.Object convertNBTCompoundtoNMSItem(NBTCompound nbtcompound)

    - #### convertNMSItemtoNBTCompound

          public static NBTContainer convertNMSItemtoNBTCompound(java.lang.Object nmsitem)

    - #### getEntityNBTTagCompound

          public static java.lang.Object getEntityNBTTagCompound(java.lang.Object nmsitem)

    - #### setEntityNBTTag

          public static java.lang.Object setEntityNBTTag(java.lang.Object NBTTag,
                                                         java.lang.Object NMSItem)

    - #### getTileEntityNBTTagCompound

          public static java.lang.Object getTileEntityNBTTagCompound(org.bukkit.block.BlockState tile)

    - #### setTileEntityNBTTagCompound

          public static void setTileEntityNBTTagCompound(org.bukkit.block.BlockState tile,
                                                         java.lang.Object comp)

    - #### getSubNBTTagCompound

          public static java.lang.Object getSubNBTTagCompound(java.lang.Object compound,
                                                              java.lang.String name)

    - #### addNBTTagCompound

          public static void addNBTTagCompound(NBTCompound comp,
                                               java.lang.String name)

    - #### valideCompound

          public static java.lang.Boolean valideCompound(NBTCompound comp)

    - #### gettoCompount

          public static java.lang.Object gettoCompount(java.lang.Object nbttag,
                                                       NBTCompound comp)

    - #### addOtherNBTCompound

          public static void addOtherNBTCompound(NBTCompound comp,
                                                 NBTCompound nbtcompound)

    - #### setString

          public static void setString(NBTCompound comp,
                                       java.lang.String key,
                                       java.lang.String text)

    - #### getString

          public static java.lang.String getString(NBTCompound comp,
                                                   java.lang.String key)

    - #### getContent

          public static java.lang.String getContent(NBTCompound comp,
                                                    java.lang.String key)

    - #### setInt

          public static void setInt(NBTCompound comp,
                                    java.lang.String key,
                                    java.lang.Integer i)

    - #### getInt

          public static java.lang.Integer getInt(NBTCompound comp,
                                                 java.lang.String key)

    - #### setByteArray

          public static void setByteArray(NBTCompound comp,
                                          java.lang.String key,
                                          byte[] b)

    - #### getByteArray

          public static byte[] getByteArray(NBTCompound comp,
                                            java.lang.String key)

    - #### setIntArray

          public static void setIntArray(NBTCompound comp,
                                         java.lang.String key,
                                         int[] i)

    - #### getIntArray

          public static int[] getIntArray(NBTCompound comp,
                                          java.lang.String key)

    - #### setFloat

          public static void setFloat(NBTCompound comp,
                                      java.lang.String key,
                                      java.lang.Float f)

    - #### getFloat

          public static java.lang.Float getFloat(NBTCompound comp,
                                                 java.lang.String key)

    - #### setLong

          public static void setLong(NBTCompound comp,
                                     java.lang.String key,
                                     java.lang.Long f)

    - #### getLong

          public static java.lang.Long getLong(NBTCompound comp,
                                               java.lang.String key)

    - #### setShort

          public static void setShort(NBTCompound comp,
                                      java.lang.String key,
                                      java.lang.Short f)

    - #### getShort

          public static java.lang.Short getShort(NBTCompound comp,
                                                 java.lang.String key)

    - #### setByte

          public static void setByte(NBTCompound comp,
                                     java.lang.String key,
                                     java.lang.Byte f)

    - #### getByte

          public static java.lang.Byte getByte(NBTCompound comp,
                                               java.lang.String key)

    - #### setDouble

          public static void setDouble(NBTCompound comp,
                                       java.lang.String key,
                                       java.lang.Double d)

    - #### getDouble

          public static java.lang.Double getDouble(NBTCompound comp,
                                                   java.lang.String key)

    - #### getType

          public static byte getType(NBTCompound comp,
                                     java.lang.String key)

    - #### setBoolean

          public static void setBoolean(NBTCompound comp,
                                        java.lang.String key,
                                        java.lang.Boolean d)

    - #### getBoolean

          public static java.lang.Boolean getBoolean(NBTCompound comp,
                                                     java.lang.String key)

    - #### set

          public static void set(NBTCompound comp,
                                 java.lang.String key,
                                 java.lang.Object val)

    - #### getList

          public static NBTList getList(NBTCompound comp,
                                        java.lang.String key,
                                        NBTType type)

    - #### setObject

          public static void setObject(NBTCompound comp,
                                       java.lang.String key,
                                       java.lang.Object value)

    - #### getObject

          public static <T> T getObject(NBTCompound comp,
                                        java.lang.String key,
                                        java.lang.Class<T> type)

    - #### remove

          public static void remove(NBTCompound comp,
                                    java.lang.String key)

    - #### hasKey

          public static java.lang.Boolean hasKey(NBTCompound comp,
                                                 java.lang.String key)

    - #### getKeys

          public static java.util.Set<java.lang.String> getKeys(NBTCompound comp)