YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.nbt.NBTTagCompound Class Reference
Inheritance diagram for net.minecraft.nbt.NBTTagCompound:
net.minecraft.nbt.NBTBase

Public Member Functions

 NBTTagCompound ()
 
 NBTTagCompound (String par1Str)
 
Collection getTags ()
 
byte getId ()
 
void setTag (String par1Str, NBTBase par2NBTBase)
 
void setByte (String par1Str, byte par2)
 
void setShort (String par1Str, short par2)
 
void setInteger (String par1Str, int par2)
 
void setLong (String par1Str, long par2)
 
void setFloat (String par1Str, float par2)
 
void setDouble (String par1Str, double par2)
 
void setString (String par1Str, String par2Str)
 
void setByteArray (String par1Str, byte[] par2ArrayOfByte)
 
void setIntArray (String par1Str, int[] par2ArrayOfInteger)
 
void setCompoundTag (String par1Str, NBTTagCompound par2NBTTagCompound)
 
void setBoolean (String par1Str, boolean par2)
 
NBTBase getTag (String par1Str)
 
boolean hasKey (String par1Str)
 
byte getByte (String par1Str)
 
short getShort (String par1Str)
 
int getInteger (String par1Str)
 
long getLong (String par1Str)
 
float getFloat (String par1Str)
 
double getDouble (String par1Str)
 
String getString (String par1Str)
 
byte[] getByteArray (String par1Str)
 
int[] getIntArray (String par1Str)
 
NBTTagCompound getCompoundTag (String par1Str)
 
NBTTagList getTagList (String par1Str)
 
boolean getBoolean (String par1Str)
 
void removeTag (String par1Str)
 
String toString ()
 
boolean hasNoTags ()
 
NBTBase copy ()
 
boolean equals (Object par1Obj)
 
int hashCode ()
 
- Public Member Functions inherited from net.minecraft.nbt.NBTBase
NBTBase setName (String par1Str)
 
String getName ()
 
boolean equals (Object par1Obj)
 
int hashCode ()
 

Additional Inherited Members

- Static Public Member Functions inherited from net.minecraft.nbt.NBTBase
static NBTBase readNamedTag (DataInput par0DataInput) throws IOException
 
static void writeNamedTag (NBTBase par0NBTBase, DataOutput par1DataOutput) throws IOException
 
static NBTBase newTag (byte par0, String par1Str)
 
static String getTagName (byte par0)
 
- Static Public Attributes inherited from net.minecraft.nbt.NBTBase
static final String[] NBTTypes = new String[] {"END", "BYTE", "SHORT", "INT", "LONG", "FLOAT", "DOUBLE", "BYTE[]", "STRING", "LIST", "COMPOUND", "INT[]"}
 
- Protected Member Functions inherited from net.minecraft.nbt.NBTBase
 NBTBase (String par1Str)
 

Constructor & Destructor Documentation

net.minecraft.nbt.NBTTagCompound.NBTTagCompound ( )
net.minecraft.nbt.NBTTagCompound.NBTTagCompound ( String  par1Str)

Member Function Documentation

NBTBase net.minecraft.nbt.NBTTagCompound.copy ( )
virtual

Creates a clone of the tag.

Implements net.minecraft.nbt.NBTBase.

boolean net.minecraft.nbt.NBTTagCompound.equals ( Object  par1Obj)
boolean net.minecraft.nbt.NBTTagCompound.getBoolean ( String  par1Str)

Retrieves a boolean value using the specified key, or false if no such key was stored. This uses the getByte method.

byte net.minecraft.nbt.NBTTagCompound.getByte ( String  par1Str)

Retrieves a byte value using the specified key, or 0 if no such key was stored.

byte [] net.minecraft.nbt.NBTTagCompound.getByteArray ( String  par1Str)

Retrieves a byte array using the specified key, or a zero-length array if no such key was stored.

NBTTagCompound net.minecraft.nbt.NBTTagCompound.getCompoundTag ( String  par1Str)

Retrieves a NBTTagCompound subtag matching the specified key, or a new empty NBTTagCompound if no such key was stored.

double net.minecraft.nbt.NBTTagCompound.getDouble ( String  par1Str)

Retrieves a double value using the specified key, or 0 if no such key was stored.

float net.minecraft.nbt.NBTTagCompound.getFloat ( String  par1Str)

Retrieves a float value using the specified key, or 0 if no such key was stored.

byte net.minecraft.nbt.NBTTagCompound.getId ( )
virtual

Gets the type byte for the tag.

Implements net.minecraft.nbt.NBTBase.

int [] net.minecraft.nbt.NBTTagCompound.getIntArray ( String  par1Str)

Retrieves an int array using the specified key, or a zero-length array if no such key was stored.

int net.minecraft.nbt.NBTTagCompound.getInteger ( String  par1Str)

Retrieves an integer value using the specified key, or 0 if no such key was stored.

long net.minecraft.nbt.NBTTagCompound.getLong ( String  par1Str)

Retrieves a long value using the specified key, or 0 if no such key was stored.

short net.minecraft.nbt.NBTTagCompound.getShort ( String  par1Str)

Retrieves a short value using the specified key, or 0 if no such key was stored.

String net.minecraft.nbt.NBTTagCompound.getString ( String  par1Str)

Retrieves a string value using the specified key, or an empty string if no such key was stored.

NBTBase net.minecraft.nbt.NBTTagCompound.getTag ( String  par1Str)

gets a generic tag with the specified name

NBTTagList net.minecraft.nbt.NBTTagCompound.getTagList ( String  par1Str)

Retrieves a NBTTagList subtag matching the specified key, or a new empty NBTTagList if no such key was stored.

Collection net.minecraft.nbt.NBTTagCompound.getTags ( )

Returns all the values in the tagMap HashMap.

int net.minecraft.nbt.NBTTagCompound.hashCode ( )
boolean net.minecraft.nbt.NBTTagCompound.hasKey ( String  par1Str)

Returns whether the given string has been previously stored as a key in the map.

boolean net.minecraft.nbt.NBTTagCompound.hasNoTags ( )

Return whether this compound has no tags.

void net.minecraft.nbt.NBTTagCompound.removeTag ( String  par1Str)

Remove the specified tag.

void net.minecraft.nbt.NBTTagCompound.setBoolean ( 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.

void net.minecraft.nbt.NBTTagCompound.setByte ( String  par1Str,
byte  par2 
)

Stores a new NBTTagByte with the given byte value into the map with the given string key.

void net.minecraft.nbt.NBTTagCompound.setByteArray ( String  par1Str,
byte[]  par2ArrayOfByte 
)

Stores a new NBTTagByteArray with the given array as data into the map with the given string key.

void net.minecraft.nbt.NBTTagCompound.setCompoundTag ( String  par1Str,
NBTTagCompound  par2NBTTagCompound 
)

Stores the given NBTTagCompound into the map with the given string key.

void net.minecraft.nbt.NBTTagCompound.setDouble ( String  par1Str,
double  par2 
)

Stores a new NBTTagDouble with the given double value into the map with the given string key.

void net.minecraft.nbt.NBTTagCompound.setFloat ( String  par1Str,
float  par2 
)

Stores a new NBTTagFloat with the given float value into the map with the given string key.

void net.minecraft.nbt.NBTTagCompound.setIntArray ( String  par1Str,
int[]  par2ArrayOfInteger 
)

Stores a new NBTTagIntArray with the given array as data into the map with the given string key.

void net.minecraft.nbt.NBTTagCompound.setInteger ( String  par1Str,
int  par2 
)

Stores a new NBTTagInt with the given integer value into the map with the given string key.

void net.minecraft.nbt.NBTTagCompound.setLong ( String  par1Str,
long  par2 
)

Stores a new NBTTagLong with the given long value into the map with the given string key.

void net.minecraft.nbt.NBTTagCompound.setShort ( String  par1Str,
short  par2 
)

Stores a new NBTTagShort with the given short value into the map with the given string key.

void net.minecraft.nbt.NBTTagCompound.setString ( String  par1Str,
String  par2Str 
)

Stores a new NBTTagString with the given string value into the map with the given string key.

void net.minecraft.nbt.NBTTagCompound.setTag ( String  par1Str,
NBTBase  par2NBTBase 
)

Stores the given tag into the map with the given string key. This is mostly used to store tag lists.

String net.minecraft.nbt.NBTTagCompound.toString ( )

The documentation for this class was generated from the following file: