Package net.minecraft.nbt
Class StringTag
java.lang.Object
net.minecraft.nbt.StringTag
- All Implemented Interfaces:
Tag
public class StringTag extends Object implements Tag
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description String
asString()
StringTag
copy()
boolean
equals(Object o)
static String
escape(String value)
TagReader<StringTag>
getReader()
byte
getType()
int
hashCode()
static StringTag
of(String value)
String
toString()
Text
toText(String indent, int depth)
void
write(DataOutput output)
-
Field Details
-
READER
-
EMPTY
-
value
-
-
Constructor Details
-
StringTag
-
-
Method Details
-
of
-
write
- Specified by:
write
in interfaceTag
- Throws:
IOException
-
getType
public byte getType() -
getReader
-
toString
-
copy
-
equals
-
hashCode
public int hashCode() -
asString
-
toText
-
escape
-