Package net.minecraft.nbt
Class NbtString
java.lang.Object
net.minecraft.nbt.NbtString
- All Implemented Interfaces:
NbtElement
Represents an NBT string.
- Mappings:
Namespace Name official or
intermediary net/minecraft/class_2519
named net/minecraft/nbt/NbtString
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final NbtString
private static final int
private static final char
private static final char
private static final char
private static final char
private final String
Fields inherited from interface net.minecraft.nbt.NbtElement
BYTE_ARRAY_TYPE, BYTE_TYPE, COMPOUND_TYPE, DOUBLE_TYPE, field_33246, field_33247, field_33248, field_33249, field_33264, FLOAT_TYPE, INT_ARRAY_TYPE, INT_TYPE, LIST_TYPE, LONG_ARRAY_TYPE, LONG_TYPE, NULL_TYPE, NUMBER_TYPE, SHORT_TYPE, STRING_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(NbtElementVisitor visitor) asString()
copy()
Copies this NBT element.boolean
static String
Gets the NBT type definition of this NBT element.byte
getType()
Gets the type of this NBT element.int
hashCode()
static NbtString
toString()
void
write
(DataOutput output)
-
Field Details
-
field_33241
private static final int field_33241- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lor;b:I
intermediary field_33241
Lnet/minecraft/class_2519;field_33241:I
named field_33241
Lnet/minecraft/nbt/NbtString;field_33241:I
-
TYPE
- Mappings:
Namespace Name Mixin selector official a
Lor;a:Lov;
intermediary field_21045
Lnet/minecraft/class_2519;field_21045:Lnet/minecraft/class_4614;
named TYPE
Lnet/minecraft/nbt/NbtString;TYPE:Lnet/minecraft/nbt/NbtType;
-
EMPTY
- Mappings:
Namespace Name Mixin selector official c
Lor;c:Lor;
intermediary field_21046
Lnet/minecraft/class_2519;field_21046:Lnet/minecraft/class_2519;
named EMPTY
Lnet/minecraft/nbt/NbtString;EMPTY:Lnet/minecraft/nbt/NbtString;
-
field_33242
private static final char field_33242- See Also:
- Mappings:
Namespace Name Mixin selector official w
Lor;w:C
intermediary field_33242
Lnet/minecraft/class_2519;field_33242:C
named field_33242
Lnet/minecraft/nbt/NbtString;field_33242:C
-
field_33243
private static final char field_33243- See Also:
- Mappings:
Namespace Name Mixin selector official x
Lor;x:C
intermediary field_33243
Lnet/minecraft/class_2519;field_33243:C
named field_33243
Lnet/minecraft/nbt/NbtString;field_33243:C
-
field_33244
private static final char field_33244- See Also:
- Mappings:
Namespace Name Mixin selector official y
Lor;y:C
intermediary field_33244
Lnet/minecraft/class_2519;field_33244:C
named field_33244
Lnet/minecraft/nbt/NbtString;field_33244:C
-
field_33245
private static final char field_33245- See Also:
- Mappings:
Namespace Name Mixin selector official z
Lor;z:C
intermediary field_33245
Lnet/minecraft/class_2519;field_33245:C
named field_33245
Lnet/minecraft/nbt/NbtString;field_33245:C
-
value
- Mappings:
Namespace Name Mixin selector official A
Lor;A:Ljava/lang/String;
intermediary field_11590
Lnet/minecraft/class_2519;field_11590:Ljava/lang/String;
named value
Lnet/minecraft/nbt/NbtString;value:Ljava/lang/String;
-
-
Constructor Details
-
NbtString
- Mappings:
Namespace Name Mixin selector official <init>
Lor;<init>(Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_2519;<init>(Ljava/lang/String;)V
named <init>
Lnet/minecraft/nbt/NbtString;<init>(Ljava/lang/String;)V
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector official a
Lor;a(Ljava/lang/String;)Lor;
intermediary method_23256
Lnet/minecraft/class_2519;method_23256(Ljava/lang/String;)Lnet/minecraft/class_2519;
named of
Lnet/minecraft/nbt/NbtString;of(Ljava/lang/String;)Lnet/minecraft/nbt/NbtString;
-
write
- Specified by:
write
in interfaceNbtElement
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lot;a(Ljava/io/DataOutput;)V
intermediary method_10713
Lnet/minecraft/class_2520;method_10713(Ljava/io/DataOutput;)V
named write
Lnet/minecraft/nbt/NbtElement;write(Ljava/io/DataOutput;)V
-
getType
public byte getType()Gets the type of this NBT element.- Specified by:
getType
in interfaceNbtElement
- Returns:
- the type
- Mappings:
Namespace Name Mixin selector official a
Lot;a()B
intermediary method_10711
Lnet/minecraft/class_2520;method_10711()B
named getType
Lnet/minecraft/nbt/NbtElement;getType()B
-
getNbtType
Gets the NBT type definition of this NBT element.- Specified by:
getNbtType
in interfaceNbtElement
- Returns:
- the element type definition
- Mappings:
Namespace Name Mixin selector official b
Lot;b()Lov;
intermediary method_23258
Lnet/minecraft/class_2520;method_23258()Lnet/minecraft/class_4614;
named getNbtType
Lnet/minecraft/nbt/NbtElement;getNbtType()Lnet/minecraft/nbt/NbtType;
-
toString
- Specified by:
toString
in interfaceNbtElement
- Overrides:
toString
in classObject
-
copy
Description copied from interface:NbtElement
Copies this NBT element.- Specified by:
copy
in interfaceNbtElement
- Returns:
- the copied element
- Mappings:
Namespace Name Mixin selector official d
Lor;d()Lor;
intermediary method_10705
Lnet/minecraft/class_2519;method_10705()Lnet/minecraft/class_2519;
named copy
Lnet/minecraft/nbt/NbtString;copy()Lnet/minecraft/nbt/NbtString;
-
equals
-
hashCode
public int hashCode() -
asString
- Specified by:
asString
in interfaceNbtElement
- Mappings:
Namespace Name Mixin selector official e_
Lot;e_()Ljava/lang/String;
intermediary method_10714
Lnet/minecraft/class_2520;method_10714()Ljava/lang/String;
named asString
Lnet/minecraft/nbt/NbtElement;asString()Ljava/lang/String;
-
accept
- Specified by:
accept
in interfaceNbtElement
- Mappings:
Namespace Name Mixin selector official a
Lot;a(Lox;)V
intermediary method_32289
Lnet/minecraft/class_2520;method_32289(Lnet/minecraft/class_5627;)V
named accept
Lnet/minecraft/nbt/NbtElement;accept(Lnet/minecraft/nbt/visitor/NbtElementVisitor;)V
-
escape
- Mappings:
Namespace Name Mixin selector official b
Lor;b(Ljava/lang/String;)Ljava/lang/String;
intermediary method_10706
Lnet/minecraft/class_2519;method_10706(Ljava/lang/String;)Ljava/lang/String;
named escape
Lnet/minecraft/nbt/NbtString;escape(Ljava/lang/String;)Ljava/lang/String;
-