Package net.minecraft.nbt
Class NBTBase
- java.lang.Object
-
- net.minecraft.nbt.NBTBase
-
- Direct Known Subclasses:
NBTBase.NBTPrimitive
,NBTTagByteArray
,NBTTagCompound
,NBTTagEnd
,NBTTagIntArray
,NBTTagList
,NBTTagString
public abstract class NBTBase extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NBTBase.NBTPrimitive
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]
NBT_TYPES
-
Constructor Summary
Constructors Constructor Description NBTBase()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract NBTBase
copy()
protected static NBTBase
createNewByType(byte id)
+ Creates a new NBTBase object that corresponds with the passed in id.boolean
equals(java.lang.Object object)
abstract byte
getId()
protected java.lang.String
getString()
int
hashCode()
boolean
hasNoTags()
+ Return whether this compound has no tags.abstract java.lang.String
toString()
-
-
-
Method Detail
-
toString
public abstract java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getId
public abstract byte getId()
-
createNewByType
protected static NBTBase createNewByType(byte id)
+ Creates a new NBTBase object that corresponds with the passed in id.
-
copy
public abstract NBTBase copy()
-
hasNoTags
public boolean hasNoTags()
+ Return whether this compound has no tags.
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getString
protected java.lang.String getString()
-
-