Package net.minecraft.nbt
Class StringTag
java.lang.Object
net.minecraft.nbt.StringTag
- All Implemented Interfaces:
Tag
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private static char
private static StringTag
private static char
private static char
private static int
private static char
Fields inherited from interface net.minecraft.nbt.Tag
ARRAY_HEADER, MAX_DEPTH, OBJECT_HEADER, OBJECT_REFERENCE, STRING_SIZE, TAG_ANY_NUMERIC, TAG_BYTE, TAG_BYTE_ARRAY, TAG_COMPOUND, TAG_DOUBLE, TAG_END, TAG_FLOAT, TAG_INT, TAG_INT_ARRAY, TAG_LIST, TAG_LONG, TAG_LONG_ARRAY, TAG_SHORT, TAG_STRING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept(TagVisitor p_178154_)
copy()
boolean
byte
getId()
getType()
int
hashCode()
static String
quoteAndEscape(String p_129304_)
toString()
static StringTag
void
write(DataOutput p_129296_)
-
Field Details
-
SELF_SIZE_IN_BITS
private static final int SELF_SIZE_IN_BITS- See Also:
- Constant Field Values
-
TYPE
-
EMPTY
-
DOUBLE_QUOTE
private static final char DOUBLE_QUOTE- See Also:
- Constant Field Values
-
SINGLE_QUOTE
private static final char SINGLE_QUOTE- See Also:
- Constant Field Values
-
ESCAPE
private static final char ESCAPE- See Also:
- Constant Field Values
-
NOT_SET
private static final char NOT_SET- See Also:
- Constant Field Values
-
data
-
-
Constructor Details
-
StringTag
-
-
Method Details
-
valueOf
-
write
- Specified by:
write
in interfaceTag
- Throws:
IOException
-
getId
public byte getId() -
getType
-
toString
-
copy
-
equals
-
hashCode
public int hashCode() -
getAsString
- Specified by:
getAsString
in interfaceTag
-
accept
-
quoteAndEscape
-