public void mergeCompound(NBTCompound comp){ NBTReflectionUtil.addOtherNBTCompound(this, comp); }
protected String getContent(String key) { return NBTReflectionUtil.getContent(this, key); }
public Boolean hasKey(String key) { Boolean b = (Boolean) NBTReflectionUtil.getData(this, ReflectionMethod.COMPOUND_HAS_KEY, key); if(b == null)return false; return b; }
protected Object getCompound() { return NBTReflectionUtil.getEntityNBTTagCompound(NBTReflectionUtil.getNMSEntity(ent)); }
public Set<String> getKeys() { return NBTReflectionUtil.getKeys(this); }
public NBTList getList(String name, NBTType type) { return NBTReflectionUtil.getList(this, name, type); }
public static NBTContainer convertItemtoNBT(ItemStack item){ return NBTReflectionUtil.convertNMSItemtoNBTCompound(ReflectionMethod.ITEMSTACK_NMSCOPY.run(null, item)); }
public static ItemStack convertNBTtoItem(NBTCompound comp){ return (ItemStack) ReflectionMethod.ITEMSTACK_BUKKITMIRROR.run(null, NBTReflectionUtil.convertNBTCompoundtoNMSItem(comp)); }
protected Object getCompound() { return NBTReflectionUtil.getItemRootNBTTagCompound(ReflectionMethod.ITEMSTACK_NMSCOPY.run(null, bukkitItem)); }
public NBTCompound addCompound(String name) { if(getType(name) == NBTType.NBTTagCompound)return getCompound(name); NBTReflectionUtil.addNBTTagCompound(this, name); return getCompound(name); }
public Float getFloat(String key) { return (Float) NBTReflectionUtil.getData(this, ReflectionMethod.COMPOUND_GET_FLOAT, key); }
public Double getDouble(String key) { return (Double) NBTReflectionUtil.getData(this, ReflectionMethod.COMPOUND_GET_DOUBLE, key); }
public int[] getIntArray(String key) { return (int[]) NBTReflectionUtil.getData(this, ReflectionMethod.COMPOUND_GET_INTARRAY, key); }
public Short getShort(String key) { return (Short) NBTReflectionUtil.getData(this, ReflectionMethod.COMPOUND_GET_SHORT, key); }
public String getString(String key) { return (String) NBTReflectionUtil.getData(this, ReflectionMethod.COMPOUND_GET_STRING, key); }
public byte[] getByteArray(String key) { return (byte[]) NBTReflectionUtil.getData(this, ReflectionMethod.COMPOUND_GET_BYTEARRAY, key); }
public Boolean getBoolean(String key) { return (Boolean) NBTReflectionUtil.getData(this, ReflectionMethod.COMPOUND_GET_BOOLEAN, key); }
public Integer getInteger(String key) { return (Integer) NBTReflectionUtil.getData(this, ReflectionMethod.COMPOUND_GET_INT, key); }
public Byte getByte(String key) { return (Byte) NBTReflectionUtil.getData(this, ReflectionMethod.COMPOUND_GET_BYTE, key); }
public Long getLong(String key) { return (Long) NBTReflectionUtil.getData(this, ReflectionMethod.COMPOUND_GET_LONG, key); }