public class NBTTagCompound extends NBTBase
NBTBase.NBTPrimitive| Constructor and Description |
|---|
NBTTagCompound() |
| Modifier and Type | Method and Description |
|---|---|
NBTBase |
copy()
Creates a clone of the tag.
|
boolean |
equals(java.lang.Object p_equals_1_) |
java.util.Set |
func_150296_c() |
byte |
func_150299_b(java.lang.String p_150299_1_) |
boolean |
getBoolean(java.lang.String p_74767_1_)
Retrieves a boolean value using the specified key, or false if no such key was stored.
|
byte |
getByte(java.lang.String p_74771_1_)
Retrieves a byte value using the specified key, or 0 if no such key was stored.
|
byte[] |
getByteArray(java.lang.String p_74770_1_)
Retrieves a byte array using the specified key, or a zero-length array if no such key was stored.
|
NBTTagCompound |
getCompoundTag(java.lang.String p_74775_1_)
Retrieves a NBTTagCompound subtag matching the specified key, or a new empty NBTTagCompound if no such key was
stored.
|
double |
getDouble(java.lang.String p_74769_1_)
Retrieves a double value using the specified key, or 0 if no such key was stored.
|
float |
getFloat(java.lang.String p_74760_1_)
Retrieves a float value using the specified key, or 0 if no such key was stored.
|
byte |
getId()
Gets the type byte for the tag.
|
int[] |
getIntArray(java.lang.String p_74759_1_)
Retrieves an int array using the specified key, or a zero-length array if no such key was stored.
|
int |
getInteger(java.lang.String p_74762_1_)
Retrieves an integer value using the specified key, or 0 if no such key was stored.
|
long |
getLong(java.lang.String p_74763_1_)
Retrieves a long value using the specified key, or 0 if no such key was stored.
|
short |
getShort(java.lang.String p_74765_1_)
Retrieves a short value using the specified key, or 0 if no such key was stored.
|
java.lang.String |
getString(java.lang.String p_74779_1_)
Retrieves a string value using the specified key, or an empty string if no such key was stored.
|
NBTBase |
getTag(java.lang.String p_74781_1_)
gets a generic tag with the specified name
|
NBTTagList |
getTagList(java.lang.String p_150295_1_,
int p_150295_2_)
Gets the NBTTagList object with the given name.
|
int |
hashCode() |
boolean |
hasKey(java.lang.String p_74764_1_)
Returns whether the given string has been previously stored as a key in the map.
|
boolean |
hasKey(java.lang.String p_150297_1_,
int p_150297_2_) |
boolean |
hasNoTags()
Return whether this compound has no tags.
|
void |
removeTag(java.lang.String p_82580_1_)
Remove the specified tag.
|
void |
setBoolean(java.lang.String p_74757_1_,
boolean p_74757_2_)
Stores the given boolean value as a NBTTagByte, storing 1 for true and 0 for false, using the given string key.
|
void |
setByte(java.lang.String p_74774_1_,
byte p_74774_2_)
Stores a new NBTTagByte with the given byte value into the map with the given string key.
|
void |
setByteArray(java.lang.String p_74773_1_,
byte[] p_74773_2_)
Stores a new NBTTagByteArray with the given array as data into the map with the given string key.
|
void |
setDouble(java.lang.String p_74780_1_,
double p_74780_2_)
Stores a new NBTTagDouble with the given double value into the map with the given string key.
|
void |
setFloat(java.lang.String p_74776_1_,
float p_74776_2_)
Stores a new NBTTagFloat with the given float value into the map with the given string key.
|
void |
setIntArray(java.lang.String p_74783_1_,
int[] p_74783_2_)
Stores a new NBTTagIntArray with the given array as data into the map with the given string key.
|
void |
setInteger(java.lang.String p_74768_1_,
int p_74768_2_)
Stores a new NBTTagInt with the given integer value into the map with the given string key.
|
void |
setLong(java.lang.String p_74772_1_,
long p_74772_2_)
Stores a new NBTTagLong with the given long value into the map with the given string key.
|
void |
setShort(java.lang.String p_74777_1_,
short p_74777_2_)
Stores a new NBTTagShort with the given short value into the map with the given string key.
|
void |
setString(java.lang.String p_74778_1_,
java.lang.String p_74778_2_)
Stores a new NBTTagString with the given string value into the map with the given string key.
|
void |
setTag(java.lang.String p_74782_1_,
NBTBase p_74782_2_)
Stores the given tag into the map with the given string key.
|
java.lang.String |
toString() |
func_150284_a, func_150285_a_public java.util.Set func_150296_c()
public void setTag(java.lang.String p_74782_1_,
NBTBase p_74782_2_)
public void setByte(java.lang.String p_74774_1_,
byte p_74774_2_)
public void setShort(java.lang.String p_74777_1_,
short p_74777_2_)
public void setInteger(java.lang.String p_74768_1_,
int p_74768_2_)
public void setLong(java.lang.String p_74772_1_,
long p_74772_2_)
public void setFloat(java.lang.String p_74776_1_,
float p_74776_2_)
public void setDouble(java.lang.String p_74780_1_,
double p_74780_2_)
public void setString(java.lang.String p_74778_1_,
java.lang.String p_74778_2_)
public void setByteArray(java.lang.String p_74773_1_,
byte[] p_74773_2_)
public void setIntArray(java.lang.String p_74783_1_,
int[] p_74783_2_)
public void setBoolean(java.lang.String p_74757_1_,
boolean p_74757_2_)
public NBTBase getTag(java.lang.String p_74781_1_)
public byte func_150299_b(java.lang.String p_150299_1_)
public boolean hasKey(java.lang.String p_74764_1_)
public boolean hasKey(java.lang.String p_150297_1_,
int p_150297_2_)
public byte getByte(java.lang.String p_74771_1_)
public short getShort(java.lang.String p_74765_1_)
public int getInteger(java.lang.String p_74762_1_)
public long getLong(java.lang.String p_74763_1_)
public float getFloat(java.lang.String p_74760_1_)
public double getDouble(java.lang.String p_74769_1_)
public java.lang.String getString(java.lang.String p_74779_1_)
public byte[] getByteArray(java.lang.String p_74770_1_)
public int[] getIntArray(java.lang.String p_74759_1_)
public NBTTagCompound getCompoundTag(java.lang.String p_74775_1_)
public NBTTagList getTagList(java.lang.String p_150295_1_, int p_150295_2_)
public boolean getBoolean(java.lang.String p_74767_1_)
public void removeTag(java.lang.String p_82580_1_)
public boolean hasNoTags()