public abstract class NBTBase
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NBTBase.NBTPrimitive |
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
NBT_TYPES |
Constructor and Description |
---|
NBTBase() |
Modifier and Type | Method and Description |
---|---|
abstract NBTBase |
copy()
Creates a clone of the tag.
|
protected static NBTBase |
createNewByType(byte id)
Creates a new NBTBase object that corresponds with the passed in id.
|
boolean |
equals(java.lang.Object p_equals_1_) |
abstract byte |
getId()
Gets the type byte for the tag.
|
protected java.lang.String |
getString() |
int |
hashCode() |
boolean |
hasNoTags()
Return whether this compound has no tags.
|
(package private) abstract void |
read(java.io.DataInput input,
int depth,
NBTSizeTracker sizeTracker) |
abstract java.lang.String |
toString() |
(package private) abstract void |
write(java.io.DataOutput output)
Write the actual data contents of the tag, implemented in NBT extension classes
|
abstract void write(java.io.DataOutput output) throws java.io.IOException
java.io.IOException
abstract void read(java.io.DataInput input, int depth, NBTSizeTracker sizeTracker) throws java.io.IOException
java.io.IOException
public abstract java.lang.String toString()
toString
in class java.lang.Object
public abstract byte getId()
protected static NBTBase createNewByType(byte id)
public abstract NBTBase copy()
public boolean hasNoTags()
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
protected java.lang.String getString()