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.IOExceptionabstract void read(java.io.DataInput input,
int depth,
NBTSizeTracker sizeTracker)
throws java.io.IOException
java.io.IOExceptionpublic abstract java.lang.String toString()
toString in class java.lang.Objectpublic 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.Objectpublic int hashCode()
hashCode in class java.lang.Objectprotected java.lang.String getString()