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 nsintermediary net/minecraft/class_2520named net/minecraft/nbt/NbtElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic byteThe numeric ID of an NBT byte array value.static byteThe numeric ID of an NBT byte value.static byteThe numeric ID of an NBT compound value.static byteThe numeric ID of an NBT double value.static intstatic intstatic intstatic intstatic intstatic byteThe numeric ID of an NBT float value.static byteThe numeric ID of an NBT integer array value.static byteThe numeric ID of an NBT integer value.static byteThe numeric ID of an NBT list value.static byteThe numeric ID of an NBT long array value.static byteThe numeric ID of an NBT long value.static byteThe numeric ID of an NBT null value.static byteA wildcard NBT numeric ID that can be used for checking whether an NBT element is anAbstractNbtNumber.static byteThe numeric ID of an NBT short value.static byteThe numeric ID of an NBT string value. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(NbtElementVisitor visitor)default StringasString()copy()Copies this NBT element.NbtType<?>Gets the NBT type definition of this NBT element.bytegetType()Gets the type of this NBT element.toString()voidwrite(DataOutput output)
-
Field Details
-
field_33246
static final int field_33246- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official dLns;d:Iintermediary field_33246Lnet/minecraft/class_2520;field_33246:Inamed field_33246Lnet/minecraft/nbt/NbtElement;field_33246:I
-
field_33247
static final int field_33247- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official eLns;e:Iintermediary field_33247Lnet/minecraft/class_2520;field_33247:Inamed field_33247Lnet/minecraft/nbt/NbtElement;field_33247:I
-
field_33248
static final int field_33248- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official fLns;f:Iintermediary field_33248Lnet/minecraft/class_2520;field_33248:Inamed field_33248Lnet/minecraft/nbt/NbtElement;field_33248:I
-
field_33249
static final int field_33249- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official gLns;g:Iintermediary field_33249Lnet/minecraft/class_2520;field_33249:Inamed field_33249Lnet/minecraft/nbt/NbtElement;field_33249:I
-
NULL_TYPE
static final byte NULL_TYPEThe numeric ID of an NBT null value. Is 0x0.- See Also:
NbtNull, Constant Field Values- Mappings:
Namespace Name Mixin selector official hLns;h:Bintermediary field_33250Lnet/minecraft/class_2520;field_33250:Bnamed NULL_TYPELnet/minecraft/nbt/NbtElement;NULL_TYPE:B
-
BYTE_TYPE
static final byte BYTE_TYPEThe numeric ID of an NBT byte value. Is 0x1.- See Also:
NbtByte, Constant Field Values- Mappings:
Namespace Name Mixin selector official iLns;i:Bintermediary field_33251Lnet/minecraft/class_2520;field_33251:Bnamed BYTE_TYPELnet/minecraft/nbt/NbtElement;BYTE_TYPE:B
-
SHORT_TYPE
static final byte SHORT_TYPEThe numeric ID of an NBT short value. Is 0x2.- See Also:
NbtShort, Constant Field Values- Mappings:
Namespace Name Mixin selector official jLns;j:Bintermediary field_33252Lnet/minecraft/class_2520;field_33252:Bnamed SHORT_TYPELnet/minecraft/nbt/NbtElement;SHORT_TYPE:B
-
INT_TYPE
static final byte INT_TYPEThe numeric ID of an NBT integer value. Is 0x3.- See Also:
NbtInt, Constant Field Values- Mappings:
Namespace Name Mixin selector official kLns;k:Bintermediary field_33253Lnet/minecraft/class_2520;field_33253:Bnamed INT_TYPELnet/minecraft/nbt/NbtElement;INT_TYPE:B
-
LONG_TYPE
static final byte LONG_TYPEThe numeric ID of an NBT long value. Is 0x4.- See Also:
NbtLong, Constant Field Values- Mappings:
Namespace Name Mixin selector official lLns;l:Bintermediary field_33254Lnet/minecraft/class_2520;field_33254:Bnamed LONG_TYPELnet/minecraft/nbt/NbtElement;LONG_TYPE:B
-
FLOAT_TYPE
static final byte FLOAT_TYPEThe numeric ID of an NBT float value. Is 0x5.- See Also:
NbtFloat, Constant Field Values- Mappings:
Namespace Name Mixin selector official mLns;m:Bintermediary field_33255Lnet/minecraft/class_2520;field_33255:Bnamed FLOAT_TYPELnet/minecraft/nbt/NbtElement;FLOAT_TYPE:B
-
DOUBLE_TYPE
static final byte DOUBLE_TYPEThe numeric ID of an NBT double value. Is 0x6.- See Also:
NbtDouble, Constant Field Values- Mappings:
Namespace Name Mixin selector official nLns;n:Bintermediary field_33256Lnet/minecraft/class_2520;field_33256:Bnamed DOUBLE_TYPELnet/minecraft/nbt/NbtElement;DOUBLE_TYPE:B
-
BYTE_ARRAY_TYPE
static final byte BYTE_ARRAY_TYPEThe numeric ID of an NBT byte array value. Is 0x7.- See Also:
NbtByteArray, Constant Field Values- Mappings:
Namespace Name Mixin selector official oLns;o:Bintermediary field_33257Lnet/minecraft/class_2520;field_33257:Bnamed BYTE_ARRAY_TYPELnet/minecraft/nbt/NbtElement;BYTE_ARRAY_TYPE:B
-
STRING_TYPE
static final byte STRING_TYPEThe numeric ID of an NBT string value. Is 0x8.- See Also:
NbtString, Constant Field Values- Mappings:
Namespace Name Mixin selector official pLns;p:Bintermediary field_33258Lnet/minecraft/class_2520;field_33258:Bnamed STRING_TYPELnet/minecraft/nbt/NbtElement;STRING_TYPE:B
-
LIST_TYPE
static final byte LIST_TYPEThe numeric ID of an NBT list value. Is 0x9.- See Also:
NbtList, Constant Field Values- Mappings:
Namespace Name Mixin selector official qLns;q:Bintermediary field_33259Lnet/minecraft/class_2520;field_33259:Bnamed LIST_TYPELnet/minecraft/nbt/NbtElement;LIST_TYPE:B
-
COMPOUND_TYPE
static final byte COMPOUND_TYPEThe numeric ID of an NBT compound value. Is 0xa.- See Also:
NbtCompound, Constant Field Values- Mappings:
Namespace Name Mixin selector official rLns;r:Bintermediary field_33260Lnet/minecraft/class_2520;field_33260:Bnamed COMPOUND_TYPELnet/minecraft/nbt/NbtElement;COMPOUND_TYPE:B
-
INT_ARRAY_TYPE
static final byte INT_ARRAY_TYPEThe numeric ID of an NBT integer array value. Is 0xb.- See Also:
NbtIntArray, Constant Field Values- Mappings:
Namespace Name Mixin selector official sLns;s:Bintermediary field_33261Lnet/minecraft/class_2520;field_33261:Bnamed INT_ARRAY_TYPELnet/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 0xc.- See Also:
NbtLongArray, Constant Field Values- Mappings:
Namespace Name Mixin selector official tLns;t:Bintermediary field_33262Lnet/minecraft/class_2520;field_33262:Bnamed LONG_ARRAY_TYPELnet/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 0x63.- See Also:
NbtCompound.getType(String),NbtCompound.contains(String, int), Constant Field Values- Mappings:
Namespace Name Mixin selector official uLns;u:Bintermediary field_33263Lnet/minecraft/class_2520;field_33263:Bnamed NUMBER_TYPELnet/minecraft/nbt/NbtElement;NUMBER_TYPE:B
-
field_33264
static final int field_33264- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official vLns;v:Iintermediary field_33264Lnet/minecraft/class_2520;field_33264:Inamed field_33264Lnet/minecraft/nbt/NbtElement;field_33264:I
-
-
Method Details
-
write
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLns;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
-
toString
String toString() -
getType
byte getType()Gets the type of this NBT element.- Returns:
- the type
- Mappings:
Namespace Name Mixin selector official aLns;a()Bintermediary method_10711Lnet/minecraft/class_2520;method_10711()Bnamed getTypeLnet/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 bLns;b()Lnu;intermediary method_23258Lnet/minecraft/class_2520;method_23258()Lnet/minecraft/class_4614;named getNbtTypeLnet/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 cLns;c()Lns;intermediary method_10707Lnet/minecraft/class_2520;method_10707()Lnet/minecraft/class_2520;named copyLnet/minecraft/nbt/NbtElement;copy()Lnet/minecraft/nbt/NbtElement;
-
asString
- Mappings:
Namespace Name Mixin selector official d_Lns;d_()Ljava/lang/String;intermediary method_10714Lnet/minecraft/class_2520;method_10714()Ljava/lang/String;named asStringLnet/minecraft/nbt/NbtElement;asString()Ljava/lang/String;
-
accept
- Mappings:
Namespace Name Mixin selector official aLns;a(Lnw;)Vintermediary method_32289Lnet/minecraft/class_2520;method_32289(Lnet/minecraft/class_5627;)Vnamed acceptLnet/minecraft/nbt/NbtElement;accept(Lnet/minecraft/nbt/visitor/NbtElementVisitor;)V
-