Package net.minecraft.src
Class NBTBase
java.lang.Object
net.minecraft.src.NBTBase
- Direct Known Subclasses:
NBTTagByte,NBTTagByteArray,NBTTagCompound,NBTTagDouble,NBTTagEnd,NBTTagFloat,NBTTagInt,NBTTagIntArray,NBTTagList,NBTTagLong,NBTTagShort,NBTTagString
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract NBTBasecopy()Creates a clone of the tag.booleanstatic NBTBasefunc_130104_b(DataInput par0DataInput, int par1) abstract bytegetId()Gets the type byte for the tag.getName()Gets the name corresponding to the tag, or an empty string if none set.static StringgetTagName(byte par0) Returns the string name of a tag with the specified type, or 'UNKNOWN' if invalid.inthashCode()static NBTBaseCreates and returns a new tag of the specified type, or null if invalid.static NBTBasereadNamedTag(DataInput par0DataInput) Reads and returns a tag from the given DataInput, or the End tag if no tag could be read.Sets the name for this tag and returns this for convenience.static voidwriteNamedTag(NBTBase par0NBTBase, DataOutput par1DataOutput) 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.
-
Field Details
-
NBTTypes
-
-
Constructor Details
-
NBTBase
-
-
Method Details
-
getId
public abstract byte getId()Gets the type byte for the tag. -
setName
Sets the name for this tag and returns this for convenience. -
getName
Gets the name corresponding to the tag, or an empty string if none set. -
readNamedTag
Reads and returns a tag from the given DataInput, or the End tag if no tag could be read.- Throws:
IOException
-
func_130104_b
- Throws:
IOException
-
writeNamedTag
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.- Throws:
IOException
-
newTag
Creates and returns a new tag of the specified type, or null if invalid. -
getTagName
Returns the string name of a tag with the specified type, or 'UNKNOWN' if invalid. -
copy
Creates a clone of the tag. -
equals
-
hashCode
public int hashCode()
-