Class NbtEnd

java.lang.Object
net.minecraft.nbt.NbtEnd
All Implemented Interfaces:
NbtElement

public class NbtEnd extends Object implements 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/NbtEnd
intermediary net/minecraft/class_2491
official ud
  • Field Details

    • SIZE

      private static final int SIZE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SIZE Lnet/minecraft/nbt/NbtEnd;SIZE:I
      intermediary field_41721 Lnet/minecraft/class_2491;field_41721:I
      official c Lud;c:I
    • TYPE

      public static final NbtType<NbtEnd> TYPE
      Mappings:
      Namespace Name Mixin selector
      named TYPE Lnet/minecraft/nbt/NbtEnd;TYPE:Lnet/minecraft/nbt/NbtType;
      intermediary field_21032 Lnet/minecraft/class_2491;field_21032:Lnet/minecraft/class_4614;
      official a Lud;a:Lva;
    • INSTANCE

      public static final NbtEnd 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 INSTANCE Lnet/minecraft/nbt/NbtEnd;INSTANCE:Lnet/minecraft/nbt/NbtEnd;
      intermediary field_21033 Lnet/minecraft/class_2491;field_21033:Lnet/minecraft/class_2491;
      official b Lud;b:Lud;
  • Constructor Details

    • NbtEnd

      private NbtEnd()
  • Method Details

    • write

      public void write(DataOutput output) throws IOException
      Writes the NBT element to output.
      Specified by:
      write in interface NbtElement
      Throws:
      IOException
      API Note:
      This is a low-level method for serializing NBT elements; consider using NbtIo, NbtOps, or PacketByteBuf.writeNbt(net.minecraft.nbt.NbtElement) instead.
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/nbt/NbtElement;write(Ljava/io/DataOutput;)V
      intermediary method_10713 Lnet/minecraft/class_2520;method_10713(Ljava/io/DataOutput;)V
      official a Luy;a(Ljava/io/DataOutput;)V
    • getSizeInBytes

      public int getSizeInBytes()
      Specified by:
      getSizeInBytes in interface NbtElement
      Mappings:
      Namespace Name Mixin selector
      named getSizeInBytes Lnet/minecraft/nbt/NbtElement;getSizeInBytes()I
      intermediary method_47988 Lnet/minecraft/class_2520;method_47988()I
      official a Luy;a()I
    • getType

      public byte getType()
      Returns the type of this NBT element.
      Specified by:
      getType in interface NbtElement
      Returns:
      the type of this NBT element
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/nbt/NbtElement;getType()B
      intermediary method_10711 Lnet/minecraft/class_2520;method_10711()B
      official b Luy;b()B
    • getNbtType

      public NbtType<NbtEnd> getNbtType()
      Returns the NBT type definition of this NBT element.
      Specified by:
      getNbtType in interface NbtElement
      Returns:
      the NBT type definition of this NBT element
      Mappings:
      Namespace Name Mixin selector
      named getNbtType Lnet/minecraft/nbt/NbtElement;getNbtType()Lnet/minecraft/nbt/NbtType;
      intermediary method_23258 Lnet/minecraft/class_2520;method_23258()Lnet/minecraft/class_4614;
      official c Luy;c()Lva;
    • toString

      public String toString()
      Specified by:
      toString in interface NbtElement
      Overrides:
      toString in class Object
    • copy

      public NbtEnd copy()
      Description copied from interface: NbtElement
      Returns an NBT element of equal value that won't change with this element.
      Specified by:
      copy in interface NbtElement
      Returns:
      an NBT element of equal value that won't change with this element
      Mappings:
      Namespace Name Mixin selector
      named copy Lnet/minecraft/nbt/NbtEnd;copy()Lnet/minecraft/nbt/NbtEnd;
      intermediary method_10586 Lnet/minecraft/class_2491;method_10586()Lnet/minecraft/class_2491;
      official e Lud;e()Lud;
    • accept

      public void accept(NbtElementVisitor visitor)
      Specified by:
      accept in interface NbtElement
      Mappings:
      Namespace Name Mixin selector
      named accept Lnet/minecraft/nbt/NbtElement;accept(Lnet/minecraft/nbt/visitor/NbtElementVisitor;)V
      intermediary method_32289 Lnet/minecraft/class_2520;method_32289(Lnet/minecraft/class_5627;)V
      official a Luy;a(Lvc;)V
    • doAccept

      public NbtScanner.Result doAccept(NbtScanner visitor)
      Specified by:
      doAccept in interface NbtElement
      Mappings:
      Namespace Name Mixin selector
      named doAccept Lnet/minecraft/nbt/NbtElement;doAccept(Lnet/minecraft/nbt/scanner/NbtScanner;)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
      intermediary method_39850 Lnet/minecraft/class_2520;method_39850(Lnet/minecraft/class_6836;)Lnet/minecraft/class_6836$class_6838;
      official a Luy;a(Luv;)Luv$b;