| Constructor and Description |
|---|
StringTag()
Create a string tag with the value "".
|
StringTag(java.lang.String value)
Create a string tag with the given value.
|
| Modifier and Type | Method and Description |
|---|---|
INbtTag |
copy() |
boolean |
equals(java.lang.Object o) |
NbtType |
getNbtType() |
java.lang.String |
getValue() |
int |
hashCode() |
void |
read(java.io.DataInput in,
NbtReadTracker readTracker)
Read the tag value from a given
DataInput. |
void |
setValue(java.lang.String value)
Set the string value.
|
java.lang.String |
toString() |
void |
write(java.io.DataOutput out)
Write the tag value to a given
DataOutput. |
public StringTag()
public StringTag(java.lang.String value)
value - The valuepublic java.lang.String getValue()
public void setValue(java.lang.String value)
value - The new valuepublic NbtType getNbtType()
getNbtType in interface INbtTagpublic void read(java.io.DataInput in,
NbtReadTracker readTracker)
throws java.io.IOException
INbtTagDataInput.public void write(java.io.DataOutput out)
throws java.io.IOException
INbtTagDataOutput.public INbtTag copy()
public boolean equals(java.lang.Object o)
public int hashCode()