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 named net/minecraft/nbt/NbtEndintermediary net/minecraft/class_2491official ud
-
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()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.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 named SIZELnet/minecraft/nbt/NbtEnd;SIZE:Iintermediary field_41721Lnet/minecraft/class_2491;field_41721:Iofficial cLud;c:I
-
TYPE
- Mappings:
Namespace Name Mixin selector named TYPELnet/minecraft/nbt/NbtEnd;TYPE:Lnet/minecraft/nbt/NbtType;intermediary field_21032Lnet/minecraft/class_2491;field_21032:Lnet/minecraft/class_4614;official aLud;a:Lva;
-
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 named INSTANCELnet/minecraft/nbt/NbtEnd;INSTANCE:Lnet/minecraft/nbt/NbtEnd;intermediary field_21033Lnet/minecraft/class_2491;field_21033:Lnet/minecraft/class_2491;official bLud;b:Lud;
-
-
Constructor Details
-
NbtEnd
private NbtEnd()
-
-
Method Details
-
write
Writes the NBT element tooutput.- Specified by:
writein interfaceNbtElement- Throws:
IOException- API Note:
- This is a low-level method for serializing NBT elements; consider using
NbtIo,NbtOps, orPacketByteBuf.writeNbt(net.minecraft.nbt.NbtElement)instead. - Mappings:
Namespace Name Mixin selector named writeLnet/minecraft/nbt/NbtElement;write(Ljava/io/DataOutput;)Vintermediary method_10713Lnet/minecraft/class_2520;method_10713(Ljava/io/DataOutput;)Vofficial aLuy;a(Ljava/io/DataOutput;)V
-
getSizeInBytes
public int getSizeInBytes()- Specified by:
getSizeInBytesin interfaceNbtElement- Mappings:
Namespace Name Mixin selector named getSizeInBytesLnet/minecraft/nbt/NbtElement;getSizeInBytes()Iintermediary method_47988Lnet/minecraft/class_2520;method_47988()Iofficial aLuy;a()I
-
getType
public byte getType()Returns the type of this NBT element.- Specified by:
getTypein interfaceNbtElement- Returns:
- the type of this NBT element
- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/nbt/NbtElement;getType()Bintermediary method_10711Lnet/minecraft/class_2520;method_10711()Bofficial bLuy;b()B
-
getNbtType
Returns the NBT type definition of this NBT element.- Specified by:
getNbtTypein interfaceNbtElement- Returns:
- the NBT type definition of this NBT element
- Mappings:
Namespace Name Mixin selector named getNbtTypeLnet/minecraft/nbt/NbtElement;getNbtType()Lnet/minecraft/nbt/NbtType;intermediary method_23258Lnet/minecraft/class_2520;method_23258()Lnet/minecraft/class_4614;official cLuy;c()Lva;
-
toString
- Specified by:
toStringin interfaceNbtElement- Overrides:
toStringin classObject
-
copy
Description copied from interface:NbtElementReturns an NBT element of equal value that won't change with this element.- Specified by:
copyin interfaceNbtElement- Returns:
- an NBT element of equal value that won't change with this element
- Mappings:
Namespace Name Mixin selector named copyLnet/minecraft/nbt/NbtEnd;copy()Lnet/minecraft/nbt/NbtEnd;intermediary method_10586Lnet/minecraft/class_2491;method_10586()Lnet/minecraft/class_2491;official eLud;e()Lud;
-
accept
- Specified by:
acceptin interfaceNbtElement- Mappings:
Namespace Name Mixin selector named acceptLnet/minecraft/nbt/NbtElement;accept(Lnet/minecraft/nbt/visitor/NbtElementVisitor;)Vintermediary method_32289Lnet/minecraft/class_2520;method_32289(Lnet/minecraft/class_5627;)Vofficial aLuy;a(Lvc;)V
-
doAccept
- Specified by:
doAcceptin interfaceNbtElement- Mappings:
Namespace Name Mixin selector named doAcceptLnet/minecraft/nbt/NbtElement;doAccept(Lnet/minecraft/nbt/scanner/NbtScanner;)Lnet/minecraft/nbt/scanner/NbtScanner$Result;intermediary method_39850Lnet/minecraft/class_2520;method_39850(Lnet/minecraft/class_6836;)Lnet/minecraft/class_6836$class_6838;official aLuy;a(Luv;)Luv$b;
-