Package net.minecraft.nbt
Class StringNBT
- java.lang.Object
-
- net.minecraft.nbt.StringNBT
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
data
private static StringNBT
EMPTY
static INBTType<StringNBT>
TYPE
-
Fields inherited from interface net.minecraft.nbt.INBT
SYNTAX_HIGHLIGHTING_KEY, SYNTAX_HIGHLIGHTING_NUMBER, SYNTAX_HIGHLIGHTING_NUMBER_TYPE, SYNTAX_HIGHLIGHTING_STRING
-
-
Constructor Summary
Constructors Modifier Constructor Description private
StringNBT(java.lang.String p_i1389_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringNBT
copy()
boolean
equals(java.lang.Object p_equals_1_)
java.lang.String
getAsString()
byte
getId()
ITextComponent
getPrettyDisplay(java.lang.String p_199850_1_, int p_199850_2_)
INBTType<StringNBT>
getType()
int
hashCode()
static java.lang.String
quoteAndEscape(java.lang.String p_197654_0_)
java.lang.String
toString()
static StringNBT
valueOf(java.lang.String p_229705_0_)
void
write(java.io.DataOutput p_74734_1_)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.minecraft.nbt.INBT
getPrettyDisplay
-
-
-
-
Method Detail
-
valueOf
public static StringNBT valueOf(java.lang.String p_229705_0_)
-
write
public void write(java.io.DataOutput p_74734_1_) throws java.io.IOException
-
toString
public java.lang.String toString()
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getAsString
public java.lang.String getAsString()
- Specified by:
getAsString
in interfaceINBT
-
getPrettyDisplay
public ITextComponent getPrettyDisplay(java.lang.String p_199850_1_, int p_199850_2_)
- Specified by:
getPrettyDisplay
in interfaceINBT
-
quoteAndEscape
public static java.lang.String quoteAndEscape(java.lang.String p_197654_0_)
-
-