| Modifier and Type | Field and Description |
|---|---|
static int |
ID |
| Constructor and Description |
|---|
StringTag()
Creates a tag.
|
StringTag(String value)
Creates a tag.
|
| Modifier and Type | Method and Description |
|---|---|
StringTag |
clone() |
boolean |
equals(Object o) |
int |
getTagId()
Returns the NBT tag id of this tag type, used in I/O.
|
String |
getValue()
Gets the value of this tag.
|
int |
hashCode() |
void |
read(DataInput in)
Reads this tag from an input stream.
|
void |
setValue(String value)
Sets the value of this tag.
|
void |
write(DataOutput out)
Writes this tag to an output stream.
|
public static final int ID
public StringTag()
public StringTag(String value)
value - The value of the tag.public void setValue(String value)
value - New value of this tag.public void read(DataInput in) throws IOException
Tagread in class Tagin - Stream to write to.IOException - If an I/O error occurs.public void write(DataOutput out) throws IOException
Tagwrite in class Tagout - Stream to write to.IOException - If an I/O error occurs.Copyright © 2021. All rights reserved.