Package net.minecraft.src
Class NBTTagCompound
java.lang.Object
net.minecraft.src.NBTBase
net.minecraft.src.NBTTagCompound
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a clone of the tag.booleanbooleangetBoolean(String par1Str) Retrieves a boolean value using the specified key, or false if no such key was stored.byteRetrieves a byte value using the specified key, or 0 if no such key was stored.byte[]getByteArray(String par1Str) Retrieves a byte array using the specified key, or a zero-length array if no such key was stored.getCompoundTag(String par1Str) Retrieves a NBTTagCompound subtag matching the specified key, or a new empty NBTTagCompound if no such key was stored.doubleRetrieves a double value using the specified key, or 0 if no such key was stored.floatRetrieves a float value using the specified key, or 0 if no such key was stored.bytegetId()Gets the type byte for the tag.int[]getIntArray(String par1Str) Retrieves an int array using the specified key, or a zero-length array if no such key was stored.intgetInteger(String par1Str) Retrieves an integer value using the specified key, or 0 if no such key was stored.longRetrieves a long value using the specified key, or 0 if no such key was stored.shortRetrieves a short value using the specified key, or 0 if no such key was stored.Retrieves a string value using the specified key, or an empty string if no such key was stored.gets a generic tag with the specified namegetTagList(String par1Str) Retrieves a NBTTagList subtag matching the specified key, or a new empty NBTTagList if no such key was stored.getTags()Returns all the values in the tagMap HashMap.inthashCode()booleanReturns whether the given string has been previously stored as a key in the map.booleanReturn whether this compound has no tags.voidRemove the specified tag.voidsetBoolean(String par1Str, boolean par2) Stores the given boolean value as a NBTTagByte, storing 1 for true and 0 for false, using the given string key.voidStores a new NBTTagByte with the given byte value into the map with the given string key.voidsetByteArray(String par1Str, byte[] par2ArrayOfByte) Stores a new NBTTagByteArray with the given array as data into the map with the given string key.voidsetCompoundTag(String par1Str, NBTTagCompound par2NBTTagCompound) Stores the given NBTTagCompound into the map with the given string key.voidStores a new NBTTagDouble with the given double value into the map with the given string key.voidStores a new NBTTagFloat with the given float value into the map with the given string key.voidsetIntArray(String par1Str, int[] par2ArrayOfInteger) Stores a new NBTTagIntArray with the given array as data into the map with the given string key.voidsetInteger(String par1Str, int par2) Stores a new NBTTagInt with the given integer value into the map with the given string key.voidStores a new NBTTagLong with the given long value into the map with the given string key.voidStores a new NBTTagShort with the given short value into the map with the given string key.voidStores a new NBTTagString with the given string value into the map with the given string key.voidStores the given tag into the map with the given string key.toString()Methods inherited from class net.minecraft.src.NBTBase
func_130104_b, getName, getTagName, newTag, readNamedTag, setName, writeNamedTag
-
Constructor Details
-
NBTTagCompound
public NBTTagCompound() -
NBTTagCompound
-
-
Method Details
-
getTags
Returns all the values in the tagMap HashMap. -
getId
public byte getId()Gets the type byte for the tag. -
setTag
Stores the given tag into the map with the given string key. This is mostly used to store tag lists. -
setByte
Stores a new NBTTagByte with the given byte value into the map with the given string key. -
setShort
Stores a new NBTTagShort with the given short value into the map with the given string key. -
setInteger
Stores a new NBTTagInt with the given integer value into the map with the given string key. -
setLong
Stores a new NBTTagLong with the given long value into the map with the given string key. -
setFloat
Stores a new NBTTagFloat with the given float value into the map with the given string key. -
setDouble
Stores a new NBTTagDouble with the given double value into the map with the given string key. -
setString
Stores a new NBTTagString with the given string value into the map with the given string key. -
setByteArray
Stores a new NBTTagByteArray with the given array as data into the map with the given string key. -
setIntArray
Stores a new NBTTagIntArray with the given array as data into the map with the given string key. -
setCompoundTag
Stores the given NBTTagCompound into the map with the given string key. -
setBoolean
Stores the given boolean value as a NBTTagByte, storing 1 for true and 0 for false, using the given string key. -
getTag
gets a generic tag with the specified name -
hasKey
Returns whether the given string has been previously stored as a key in the map. -
getByte
Retrieves a byte value using the specified key, or 0 if no such key was stored. -
getShort
Retrieves a short value using the specified key, or 0 if no such key was stored. -
getInteger
Retrieves an integer value using the specified key, or 0 if no such key was stored. -
getLong
Retrieves a long value using the specified key, or 0 if no such key was stored. -
getFloat
Retrieves a float value using the specified key, or 0 if no such key was stored. -
getDouble
Retrieves a double value using the specified key, or 0 if no such key was stored. -
getString
Retrieves a string value using the specified key, or an empty string if no such key was stored. -
getByteArray
Retrieves a byte array using the specified key, or a zero-length array if no such key was stored. -
getIntArray
Retrieves an int array using the specified key, or a zero-length array if no such key was stored. -
getCompoundTag
Retrieves a NBTTagCompound subtag matching the specified key, or a new empty NBTTagCompound if no such key was stored. -
getTagList
Retrieves a NBTTagList subtag matching the specified key, or a new empty NBTTagList if no such key was stored. -
getBoolean
Retrieves a boolean value using the specified key, or false if no such key was stored. This uses the getByte method. -
removeTag
Remove the specified tag. -
toString
-
hasNoTags
public boolean hasNoTags()Return whether this compound has no tags. -
copy
Creates a clone of the tag. -
equals
-
hashCode
public int hashCode()
-