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 - qt- intermediary - net/minecraft/class_2491- named - net/minecraft/nbt/NbtEnd
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final NbtEndA dummy instance of the NBT end.private static final intFields inherited from interface net.minecraft.nbt.NbtElementBYTE_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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaccept(NbtElementVisitor visitor) copy()Returns an NBT element of equal value that won't change with this element.doAccept(NbtScanner visitor) Returns the NBT type definition of this NBT element.intbytegetType()Returns the type of this NBT element.toString()voidwrite(DataOutput output) Writes the NBT element tooutput.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.nbt.NbtElementaccept, asString
- 
Field Details- 
SIZEprivate static final int SIZE- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lqt;c:I- intermediary - field_41721- Lnet/minecraft/class_2491;field_41721:I- named - SIZE- Lnet/minecraft/nbt/NbtEnd;SIZE:I
 
- 
TYPE- Mappings:
- Namespace - Name - Mixin selector - official - a- Lqt;a:Lrm;- intermediary - field_21032- Lnet/minecraft/class_2491;field_21032:Lnet/minecraft/class_4614;- named - TYPE- Lnet/minecraft/nbt/NbtEnd;TYPE:Lnet/minecraft/nbt/NbtType;
 
- 
INSTANCEA 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 - b- Lqt;b:Lqt;- intermediary - field_21033- Lnet/minecraft/class_2491;field_21033:Lnet/minecraft/class_2491;- named - INSTANCE- Lnet/minecraft/nbt/NbtEnd;INSTANCE:Lnet/minecraft/nbt/NbtEnd;
 
 
- 
- 
Constructor Details- 
NbtEndprivate NbtEnd()
 
- 
- 
Method Details- 
writeWrites the NBT element tooutput.- Specified by:
- writein interface- NbtElement
- Throws:
- IOException
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lrk;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
 
- 
getSizeInBytespublic int getSizeInBytes()- Specified by:
- getSizeInBytesin interface- NbtElement
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lrk;a()I- intermediary - method_47988- Lnet/minecraft/class_2520;method_47988()I- named - getSizeInBytes- Lnet/minecraft/nbt/NbtElement;getSizeInBytes()I
 
- 
getTypepublic byte getType()Returns the type of this NBT element.- Specified by:
- getTypein interface- NbtElement
- Returns:
- the type of this NBT element
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lrk;b()B- intermediary - method_10711- Lnet/minecraft/class_2520;method_10711()B- named - getType- Lnet/minecraft/nbt/NbtElement;getType()B
 
- 
getNbtTypeReturns the NBT type definition of this NBT element.- Specified by:
- getNbtTypein interface- NbtElement
- Returns:
- the NBT type definition of this NBT element
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lrk;c()Lrm;- 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:
- toStringin interface- NbtElement
- Overrides:
- toStringin class- Object
 
- 
copyDescription copied from interface:NbtElementReturns an NBT element of equal value that won't change with this element.- Specified by:
- copyin interface- NbtElement
- Returns:
- an NBT element of equal value that won't change with this element
- Mappings:
- Namespace - Name - Mixin selector - official - e- Lqt;e()Lqt;- intermediary - method_10586- Lnet/minecraft/class_2491;method_10586()Lnet/minecraft/class_2491;- named - copy- Lnet/minecraft/nbt/NbtEnd;copy()Lnet/minecraft/nbt/NbtEnd;
 
- 
accept- Specified by:
- acceptin interface- NbtElement
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lrk;a(Lro;)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
 
- 
doAccept- Specified by:
- doAcceptin interface- NbtElement
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lrk;a(Lrh;)Lrh$b;- intermediary - method_39850- Lnet/minecraft/class_2520;method_39850(Lnet/minecraft/class_6836;)Lnet/minecraft/class_6836$class_6838;- named - doAccept- Lnet/minecraft/nbt/NbtElement;doAccept(Lnet/minecraft/nbt/scanner/NbtScanner;)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
 
 
-