Package net.minecraft.nbt
Class NbtEnd
java.lang.Object
net.minecraft.nbt.NbtEnd
- All Implemented Interfaces:
NbtElement
Represents the NBT end value.
Defines the end of an
NbtCompound object during serialization,
and is the type of an empty NbtList.- Mappings:
Namespace Name official omintermediary net/minecraft/class_2491named net/minecraft/nbt/NbtEnd
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NbtEndA dummy instance of the NBT end.private static final intFields inherited from interface net.minecraft.nbt.NbtElement
BYTE_ARRAY_TYPE, BYTE_TYPE, COMPOUND_TYPE, DOUBLE_TYPE, END_TYPE, field_33246, field_33247, field_33248, field_33249, FLOAT_TYPE, INT_ARRAY_TYPE, INT_TYPE, LIST_TYPE, LONG_ARRAY_TYPE, LONG_TYPE, MAX_DEPTH, NUMBER_TYPE, SHORT_TYPE, STRING_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(NbtElementVisitor visitor) copy()Copies this NBT element.doAccept(NbtScanner visitor) Gets the NBT type definition of this NBT element.bytegetType()Gets the type of this NBT element.toString()voidwrite(DataOutput output) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.nbt.NbtElement
accept, asString
-
Field Details
-
SIZE
private static final int SIZE- See Also:
- Mappings:
Namespace Name Mixin selector official cLom;c:Iintermediary field_33193Lnet/minecraft/class_2491;field_33193:Inamed SIZELnet/minecraft/nbt/NbtEnd;SIZE:I
-
TYPE
- Mappings:
Namespace Name Mixin selector official aLom;a:Lpf;intermediary field_21032Lnet/minecraft/class_2491;field_21032:Lnet/minecraft/class_4614;named TYPELnet/minecraft/nbt/NbtEnd;TYPE:Lnet/minecraft/nbt/NbtType;
-
INSTANCE
A dummy instance of the NBT end. It will never appear nested in any parsed NBT structure and should never be used as NBT compound values or list elements.- Mappings:
Namespace Name Mixin selector official bLom;b:Lom;intermediary field_21033Lnet/minecraft/class_2491;field_21033:Lnet/minecraft/class_2491;named INSTANCELnet/minecraft/nbt/NbtEnd;INSTANCE:Lnet/minecraft/nbt/NbtEnd;
-
-
Constructor Details
-
NbtEnd
private NbtEnd()
-
-
Method Details
-
write
- Specified by:
writein interfaceNbtElement- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLpd;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 aLpd;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 bLpd;b()Lpf;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
-
copy
Description copied from interface:NbtElementCopies this NBT element.- Specified by:
copyin interfaceNbtElement- Returns:
- the copied element
- Mappings:
Namespace Name Mixin selector official dLom;d()Lom;intermediary method_10586Lnet/minecraft/class_2491;method_10586()Lnet/minecraft/class_2491;named copyLnet/minecraft/nbt/NbtEnd;copy()Lnet/minecraft/nbt/NbtEnd;
-
accept
- Specified by:
acceptin interfaceNbtElement- Mappings:
Namespace Name Mixin selector official aLpd;a(Lph;)Vintermediary method_32289Lnet/minecraft/class_2520;method_32289(Lnet/minecraft/class_5627;)Vnamed acceptLnet/minecraft/nbt/NbtElement;accept(Lnet/minecraft/nbt/visitor/NbtElementVisitor;)V
-
doAccept
- Specified by:
doAcceptin interfaceNbtElement- Mappings:
Namespace Name Mixin selector official aLpd;a(Lpa;)Lpa$b;intermediary method_39850Lnet/minecraft/class_2520;method_39850(Lnet/minecraft/class_6836;)Lnet/minecraft/class_6836$class_6838;named doAcceptLnet/minecraft/nbt/NbtElement;doAccept(Lnet/minecraft/nbt/scanner/NbtScanner;)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
-