public class NBTTagString extends NBTBase
NBTBase.NBTPrimitive
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
data
The string value for the tag (cannot be empty).
|
Constructor and Description |
---|
NBTTagString() |
NBTTagString(java.lang.String data) |
Modifier and Type | Method and Description |
---|---|
NBTBase |
copy()
Creates a clone of the tag.
|
boolean |
equals(java.lang.Object p_equals_1_) |
byte |
getId()
Gets the type byte for the tag.
|
java.lang.String |
getString() |
int |
hashCode() |
boolean |
hasNoTags()
Return whether this compound has no tags.
|
(package private) void |
read(java.io.DataInput input,
int depth,
NBTSizeTracker sizeTracker) |
java.lang.String |
toString() |
(package private) void |
write(java.io.DataOutput output)
Write the actual data contents of the tag, implemented in NBT extension classes
|
createNewByType
public NBTTagString()
public NBTTagString(java.lang.String data)
void write(java.io.DataOutput output) throws java.io.IOException
void read(java.io.DataInput input, int depth, NBTSizeTracker sizeTracker) throws java.io.IOException
public boolean hasNoTags()