Package net.minecraft.nbt
Class StringTag
java.lang.Object
net.minecraft.nbt.StringTag
- All Implemented Interfaces:
Tag
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
private static final char
private static final StringTag
private static final char
private static final char
private static final int
private static final 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 TypeMethodDescriptionaccept
(StreamTagVisitor p_197566_) void
accept
(TagVisitor p_178154_) copy()
boolean
byte
getId()
getType()
int
hashCode()
static String
quoteAndEscape
(String p_129304_) int
static void
skipString
(DataInput p_197564_) toString()
static StringTag
void
write
(DataOutput p_129296_) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.nbt.Tag
acceptAsRoot
-
Field Details
-
SELF_SIZE_IN_BYTES
private static final int SELF_SIZE_IN_BYTES- See Also:
-
TYPE
-
EMPTY
-
DOUBLE_QUOTE
private static final char DOUBLE_QUOTE- See Also:
-
SINGLE_QUOTE
private static final char SINGLE_QUOTE- See Also:
-
ESCAPE
private static final char ESCAPE- See Also:
-
NOT_SET
private static final char NOT_SET- See Also:
-
data
-
-
Constructor Details
-
StringTag
-
-
Method Details
-
skipString
- Throws:
IOException
-
valueOf
-
write
- Specified by:
write
in interfaceTag
- Throws:
IOException
-
sizeInBytes
public int sizeInBytes()- Specified by:
sizeInBytes
in interfaceTag
-
getId
public byte getId() -
getType
-
toString
-
copy
-
equals
-
hashCode
public int hashCode() -
getAsString
- Specified by:
getAsString
in interfaceTag
-
accept
-
quoteAndEscape
-
accept
-