Package net.minecraft.nbt
Class NbtString
java.lang.Object
net.minecraft.nbt.NbtString
- All Implemented Interfaces:
NbtElement
public class NbtString extends Object implements NbtElement
Represents an NBT string.
This class uses the NBT type 8.
- Mappings:
Namespace Name official nhintermediary net/minecraft/class_2519named net/minecraft/nbt/NbtString
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidaccept(NbtElementVisitor visitor)StringasString()NbtStringcopy()Copies this NBT element.booleanequals(Object o)static Stringescape(String value)NbtType<NbtString>getNbtType()Gets the NBT type definition of this NBT element.bytegetType()Gets the type of this NBT element.inthashCode()static NbtStringof(String value)StringtoString()voidwrite(DataOutput output)
-
Field Details
-
TYPE
- Mappings:
Namespace Name Mixin selector official aLnh;a:Lnl;intermediary field_21045Lnet/minecraft/class_2519;field_21045:Lnet/minecraft/class_4614;named TYPELnet/minecraft/nbt/NbtString;TYPE:Lnet/minecraft/nbt/NbtType;
-
EMPTY
- Mappings:
Namespace Name Mixin selector official bLnh;b:Lnh;intermediary field_21046Lnet/minecraft/class_2519;field_21046:Lnet/minecraft/class_2519;named EMPTYLnet/minecraft/nbt/NbtString;EMPTY:Lnet/minecraft/nbt/NbtString;
-
value
- Mappings:
Namespace Name Mixin selector official cLnh;c:Ljava/lang/String;intermediary field_11590Lnet/minecraft/class_2519;field_11590:Ljava/lang/String;named valueLnet/minecraft/nbt/NbtString;value:Ljava/lang/String;
-
-
Constructor Details
-
NbtString
- Mappings:
Namespace Name Mixin selector official <init>Lnh;<init>(Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_2519;<init>(Ljava/lang/String;)Vnamed <init>Lnet/minecraft/nbt/NbtString;<init>(Ljava/lang/String;)V
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector official aLnh;a(Ljava/lang/String;)Lnh;intermediary method_23256Lnet/minecraft/class_2519;method_23256(Ljava/lang/String;)Lnet/minecraft/class_2519;named ofLnet/minecraft/nbt/NbtString;of(Ljava/lang/String;)Lnet/minecraft/nbt/NbtString;
-
write
- Specified by:
writein interfaceNbtElement- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLnj;a(Ljava/io/DataOutput;)Vintermediary method_10713Lnet/minecraft/class_2520;method_10713(Ljava/io/DataOutput;)Vnamed writeLnet/minecraft/nbt/NbtElement;write(Ljava/io/DataOutput;)V
-
getType
public byte getType()Gets the type of this NBT element.- Specified by:
getTypein interfaceNbtElement- Returns:
- the type
- Mappings:
Namespace Name Mixin selector official aLnj;a()Bintermediary method_10711Lnet/minecraft/class_2520;method_10711()Bnamed getTypeLnet/minecraft/nbt/NbtElement;getType()B
-
getNbtType
Gets the NBT type definition of this NBT element.- Specified by:
getNbtTypein interfaceNbtElement- Returns:
- the element type definition
- Mappings:
Namespace Name Mixin selector official bLnj;b()Lnl;intermediary method_23258Lnet/minecraft/class_2520;method_23258()Lnet/minecraft/class_4614;named getNbtTypeLnet/minecraft/nbt/NbtElement;getNbtType()Lnet/minecraft/nbt/NbtType;
-
toString
- Specified by:
toStringin interfaceNbtElement- Overrides:
toStringin classObject- Mappings:
Namespace Name Mixin selector official toStringLnj;toString()Ljava/lang/String;intermediary toStringLnet/minecraft/class_2520;toString()Ljava/lang/String;named toStringLnet/minecraft/nbt/NbtElement;toString()Ljava/lang/String;
-
copy
Description copied from interface:NbtElementCopies this NBT element.- Specified by:
copyin interfaceNbtElement- Returns:
- the copied element
- Mappings:
Namespace Name Mixin selector official dLnh;d()Lnh;intermediary method_10705Lnet/minecraft/class_2519;method_10705()Lnet/minecraft/class_2519;named copyLnet/minecraft/nbt/NbtString;copy()Lnet/minecraft/nbt/NbtString;
-
equals
-
hashCode
public int hashCode() -
asString
- Specified by:
asStringin interfaceNbtElement- Mappings:
Namespace Name Mixin selector official e_Lnj;e_()Ljava/lang/String;intermediary method_10714Lnet/minecraft/class_2520;method_10714()Ljava/lang/String;named asStringLnet/minecraft/nbt/NbtElement;asString()Ljava/lang/String;
-
accept
- Specified by:
acceptin interfaceNbtElement- Mappings:
Namespace Name Mixin selector official aLnj;a(Lnn;)Vintermediary method_32289Lnet/minecraft/class_2520;method_32289(Lnet/minecraft/class_5627;)Vnamed acceptLnet/minecraft/nbt/NbtElement;accept(Lnet/minecraft/nbt/visitor/NbtElementVisitor;)V
-
escape
- Mappings:
Namespace Name Mixin selector official bLnh;b(Ljava/lang/String;)Ljava/lang/String;intermediary method_10706Lnet/minecraft/class_2519;method_10706(Ljava/lang/String;)Ljava/lang/String;named escapeLnet/minecraft/nbt/NbtString;escape(Ljava/lang/String;)Ljava/lang/String;
-