Package net.minecraft.nbt
Interface NbtElement
- All Known Implementing Classes:
AbstractNbtList
,AbstractNbtNumber
,NbtByte
,NbtByteArray
,NbtCompound
,NbtDouble
,NbtFloat
,NbtInt
,NbtIntArray
,NbtList
,NbtLong
,NbtLongArray
,NbtNull
,NbtShort
,NbtString
public interface NbtElement
Represents an NBT element.
- Mappings:
Namespace Name official nn
intermediary net/minecraft/class_2520
named net/minecraft/nbt/NbtElement
-
Field Summary
Fields Modifier and Type Field Description static byte
BYTE_ARRAY_TYPE
The numeric ID of an NBT byte array value.static byte
BYTE_TYPE
The numeric ID of an NBT byte value.static byte
COMPOUND_TYPE
The numeric ID of an NBT compound value.static byte
DOUBLE_TYPE
The numeric ID of an NBT double value.static int
field_33246
static int
field_33247
static int
field_33248
static int
field_33249
static int
field_33264
static byte
FLOAT_TYPE
The numeric ID of an NBT float value.static byte
INT_ARRAY_TYPE
The numeric ID of an NBT integer array value.static byte
INT_TYPE
The numeric ID of an NBT integer value.static byte
LIST_TYPE
The numeric ID of an NBT list value.static byte
LONG_ARRAY_TYPE
The numeric ID of an NBT long array value.static byte
LONG_TYPE
The numeric ID of an NBT long value.static byte
NULL_TYPE
The numeric ID of an NBT null value.static byte
NUMBER_TYPE
A wildcard NBT numeric ID that can be used for checking whether an NBT element is anAbstractNbtNumber
.static byte
SHORT_TYPE
The numeric ID of an NBT short value.static byte
STRING_TYPE
The numeric ID of an NBT string value. -
Method Summary
Modifier and Type Method Description void
accept(NbtElementVisitor visitor)
default String
asString()
NbtElement
copy()
Copies this NBT element.NbtType<?>
getNbtType()
Gets the NBT type definition of this NBT element.byte
getType()
Gets the type of this NBT element.String
toString()
void
write(DataOutput output)
-
Field Details
-
field_33246
static final int field_33246- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official d
Lnn;d:I
intermediary field_33246
Lnet/minecraft/class_2520;field_33246:I
named field_33246
Lnet/minecraft/nbt/NbtElement;field_33246:I
-
field_33247
static final int field_33247- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official e
Lnn;e:I
intermediary field_33247
Lnet/minecraft/class_2520;field_33247:I
named field_33247
Lnet/minecraft/nbt/NbtElement;field_33247:I
-
field_33248
static final int field_33248- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official f
Lnn;f:I
intermediary field_33248
Lnet/minecraft/class_2520;field_33248:I
named field_33248
Lnet/minecraft/nbt/NbtElement;field_33248:I
-
field_33249
static final int field_33249- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official g
Lnn;g:I
intermediary field_33249
Lnet/minecraft/class_2520;field_33249:I
named field_33249
Lnet/minecraft/nbt/NbtElement;field_33249:I
-
NULL_TYPE
static final byte NULL_TYPEThe numeric ID of an NBT null value. Is 0.- See Also:
NbtNull
, Constant Field Values- Mappings:
Namespace Name Mixin selector official h
Lnn;h:B
intermediary field_33250
Lnet/minecraft/class_2520;field_33250:B
named NULL_TYPE
Lnet/minecraft/nbt/NbtElement;NULL_TYPE:B
-
BYTE_TYPE
static final byte BYTE_TYPEThe numeric ID of an NBT byte value. Is 1.- See Also:
NbtByte
, Constant Field Values- Mappings:
Namespace Name Mixin selector official i
Lnn;i:B
intermediary field_33251
Lnet/minecraft/class_2520;field_33251:B
named BYTE_TYPE
Lnet/minecraft/nbt/NbtElement;BYTE_TYPE:B
-
SHORT_TYPE
static final byte SHORT_TYPEThe numeric ID of an NBT short value. Is 2.- See Also:
NbtShort
, Constant Field Values- Mappings:
Namespace Name Mixin selector official j
Lnn;j:B
intermediary field_33252
Lnet/minecraft/class_2520;field_33252:B
named SHORT_TYPE
Lnet/minecraft/nbt/NbtElement;SHORT_TYPE:B
-
INT_TYPE
static final byte INT_TYPEThe numeric ID of an NBT integer value. Is 3.- See Also:
NbtInt
, Constant Field Values- Mappings:
Namespace Name Mixin selector official k
Lnn;k:B
intermediary field_33253
Lnet/minecraft/class_2520;field_33253:B
named INT_TYPE
Lnet/minecraft/nbt/NbtElement;INT_TYPE:B
-
LONG_TYPE
static final byte LONG_TYPEThe numeric ID of an NBT long value. Is 4.- See Also:
NbtLong
, Constant Field Values- Mappings:
Namespace Name Mixin selector official l
Lnn;l:B
intermediary field_33254
Lnet/minecraft/class_2520;field_33254:B
named LONG_TYPE
Lnet/minecraft/nbt/NbtElement;LONG_TYPE:B
-
FLOAT_TYPE
static final byte FLOAT_TYPEThe numeric ID of an NBT float value. Is 5.- See Also:
NbtFloat
, Constant Field Values- Mappings:
Namespace Name Mixin selector official m
Lnn;m:B
intermediary field_33255
Lnet/minecraft/class_2520;field_33255:B
named FLOAT_TYPE
Lnet/minecraft/nbt/NbtElement;FLOAT_TYPE:B
-
DOUBLE_TYPE
static final byte DOUBLE_TYPEThe numeric ID of an NBT double value. Is 6.- See Also:
NbtDouble
, Constant Field Values- Mappings:
Namespace Name Mixin selector official n
Lnn;n:B
intermediary field_33256
Lnet/minecraft/class_2520;field_33256:B
named DOUBLE_TYPE
Lnet/minecraft/nbt/NbtElement;DOUBLE_TYPE:B
-
BYTE_ARRAY_TYPE
static final byte BYTE_ARRAY_TYPEThe numeric ID of an NBT byte array value. Is 7.- See Also:
NbtByteArray
, Constant Field Values- Mappings:
Namespace Name Mixin selector official o
Lnn;o:B
intermediary field_33257
Lnet/minecraft/class_2520;field_33257:B
named BYTE_ARRAY_TYPE
Lnet/minecraft/nbt/NbtElement;BYTE_ARRAY_TYPE:B
-
STRING_TYPE
static final byte STRING_TYPEThe numeric ID of an NBT string value. Is 8.- See Also:
NbtString
, Constant Field Values- Mappings:
Namespace Name Mixin selector official p
Lnn;p:B
intermediary field_33258
Lnet/minecraft/class_2520;field_33258:B
named STRING_TYPE
Lnet/minecraft/nbt/NbtElement;STRING_TYPE:B
-
LIST_TYPE
static final byte LIST_TYPEThe numeric ID of an NBT list value. Is 9.- See Also:
NbtList
, Constant Field Values- Mappings:
Namespace Name Mixin selector official q
Lnn;q:B
intermediary field_33259
Lnet/minecraft/class_2520;field_33259:B
named LIST_TYPE
Lnet/minecraft/nbt/NbtElement;LIST_TYPE:B
-
COMPOUND_TYPE
static final byte COMPOUND_TYPEThe numeric ID of an NBT compound value. Is 10.- See Also:
NbtCompound
, Constant Field Values- Mappings:
Namespace Name Mixin selector official r
Lnn;r:B
intermediary field_33260
Lnet/minecraft/class_2520;field_33260:B
named COMPOUND_TYPE
Lnet/minecraft/nbt/NbtElement;COMPOUND_TYPE:B
-
INT_ARRAY_TYPE
static final byte INT_ARRAY_TYPEThe numeric ID of an NBT integer array value. Is 11.- See Also:
NbtIntArray
, Constant Field Values- Mappings:
Namespace Name Mixin selector official s
Lnn;s:B
intermediary field_33261
Lnet/minecraft/class_2520;field_33261:B
named INT_ARRAY_TYPE
Lnet/minecraft/nbt/NbtElement;INT_ARRAY_TYPE:B
-
LONG_ARRAY_TYPE
static final byte LONG_ARRAY_TYPEThe numeric ID of an NBT long array value. Is 12.- See Also:
NbtLongArray
, Constant Field Values- Mappings:
Namespace Name Mixin selector official t
Lnn;t:B
intermediary field_33262
Lnet/minecraft/class_2520;field_33262:B
named LONG_ARRAY_TYPE
Lnet/minecraft/nbt/NbtElement;LONG_ARRAY_TYPE:B
-
NUMBER_TYPE
static final byte NUMBER_TYPEA wildcard NBT numeric ID that can be used for checking whether an NBT element is anAbstractNbtNumber
. Is 99.- See Also:
NbtCompound.getType(String)
,NbtCompound.contains(String, int)
, Constant Field Values- Mappings:
Namespace Name Mixin selector official u
Lnn;u:B
intermediary field_33263
Lnet/minecraft/class_2520;field_33263:B
named NUMBER_TYPE
Lnet/minecraft/nbt/NbtElement;NUMBER_TYPE:B
-
field_33264
static final int field_33264- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official v
Lnn;v:I
intermediary field_33264
Lnet/minecraft/class_2520;field_33264:I
named field_33264
Lnet/minecraft/nbt/NbtElement;field_33264:I
-
-
Method Details
-
write
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lnn;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
-
toString
String toString() -
getType
byte getType()Gets the type of this NBT element.- Returns:
- the type
- Mappings:
Namespace Name Mixin selector official a
Lnn;a()B
intermediary method_10711
Lnet/minecraft/class_2520;method_10711()B
named getType
Lnet/minecraft/nbt/NbtElement;getType()B
-
getNbtType
NbtType<?> getNbtType()Gets the NBT type definition of this NBT element.- Returns:
- the element type definition
- Mappings:
Namespace Name Mixin selector official b
Lnn;b()Lnp;
intermediary method_23258
Lnet/minecraft/class_2520;method_23258()Lnet/minecraft/class_4614;
named getNbtType
Lnet/minecraft/nbt/NbtElement;getNbtType()Lnet/minecraft/nbt/NbtType;
-
copy
NbtElement copy()Copies this NBT element.- Returns:
- the copied element
- Mappings:
Namespace Name Mixin selector official c
Lnn;c()Lnn;
intermediary method_10707
Lnet/minecraft/class_2520;method_10707()Lnet/minecraft/class_2520;
named copy
Lnet/minecraft/nbt/NbtElement;copy()Lnet/minecraft/nbt/NbtElement;
-
asString
- Mappings:
Namespace Name Mixin selector official e_
Lnn;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
- Mappings:
Namespace Name Mixin selector official a
Lnn;a(Lnr;)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
-