YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.nbt.NBTBase Class Referenceabstract
Inheritance diagram for net.minecraft.nbt.NBTBase:
net.minecraft.nbt.NBTTagByte net.minecraft.nbt.NBTTagByteArray net.minecraft.nbt.NBTTagCompound net.minecraft.nbt.NBTTagDouble net.minecraft.nbt.NBTTagEnd net.minecraft.nbt.NBTTagFloat net.minecraft.nbt.NBTTagInt net.minecraft.nbt.NBTTagIntArray net.minecraft.nbt.NBTTagList net.minecraft.nbt.NBTTagLong net.minecraft.nbt.NBTTagShort net.minecraft.nbt.NBTTagString

Public Member Functions

abstract byte getId ()
 
NBTBase setName (String par1Str)
 
String getName ()
 
abstract NBTBase copy ()
 
boolean equals (Object par1Obj)
 
int hashCode ()
 

Static Public Member Functions

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

static final String[] NBTTypes = new String[] {"END", "BYTE", "SHORT", "INT", "LONG", "FLOAT", "DOUBLE", "BYTE[]", "STRING", "LIST", "COMPOUND", "INT[]"}
 

Protected Member Functions

 NBTBase (String par1Str)
 

Constructor & Destructor Documentation

net.minecraft.nbt.NBTBase.NBTBase ( String  par1Str)
protected

Member Function Documentation

boolean net.minecraft.nbt.NBTBase.equals ( Object  par1Obj)
String net.minecraft.nbt.NBTBase.getName ( )

Gets the name corresponding to the tag, or an empty string if none set.

static String net.minecraft.nbt.NBTBase.getTagName ( byte  par0)
static

Returns the string name of a tag with the specified type, or 'UNKNOWN' if invalid.

int net.minecraft.nbt.NBTBase.hashCode ( )
static NBTBase net.minecraft.nbt.NBTBase.newTag ( byte  par0,
String  par1Str 
)
static

Creates and returns a new tag of the specified type, or null if invalid.

static NBTBase net.minecraft.nbt.NBTBase.readNamedTag ( DataInput  par0DataInput) throws IOException
static

Reads and returns a tag from the given DataInput, or the End tag if no tag could be read.

NBTBase net.minecraft.nbt.NBTBase.setName ( String  par1Str)

Sets the name for this tag and returns this for convenience.

static void net.minecraft.nbt.NBTBase.writeNamedTag ( NBTBase  par0NBTBase,
DataOutput  par1DataOutput 
) throws IOException
static

Writes the specified tag to the given DataOutput, writing the type byte, the UTF string key and then calling the tag to write its data.

Member Data Documentation

final String [] net.minecraft.nbt.NBTBase.NBTTypes = new String[] {"END", "BYTE", "SHORT", "INT", "LONG", "FLOAT", "DOUBLE", "BYTE[]", "STRING", "LIST", "COMPOUND", "INT[]"}
static

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