Class NbtNull

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

public class NbtNull extends Object implements NbtElement
Represents the NBT null value. Defines the end of an NBT compound object, represents nonexistent values in an NBT compound object, and is the type of empty NBT lists.
Mappings:
Namespace Name
official oe
intermediary net/minecraft/class_2491
named net/minecraft/nbt/NbtNull
  • Field Details

    • SIZE

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

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

      public static final NbtNull INSTANCE
      Mappings:
      Namespace Name Mixin selector
      official b Loe;b:Loe;
      intermediary field_21033 Lnet/minecraft/class_2491;field_21033:Lnet/minecraft/class_2491;
      named INSTANCE Lnet/minecraft/nbt/NbtNull;INSTANCE:Lnet/minecraft/nbt/NbtNull;
  • Constructor Details

    • NbtNull

      private NbtNull()
  • Method Details

    • write

      public void write(DataOutput output) throws IOException
      Specified by:
      write in interface NbtElement
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lov;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
    • getType

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

      public NbtType<NbtNull> getNbtType()
      Gets the NBT type definition of this NBT element.
      Specified by:
      getNbtType in interface NbtElement
      Returns:
      the element type definition
      Mappings:
      Namespace Name Mixin selector
      official b Lov;b()Lox;
      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

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

      public NbtNull copy()
      Description copied from interface: NbtElement
      Copies this NBT element.
      Specified by:
      copy in interface NbtElement
      Returns:
      the copied element
      Mappings:
      Namespace Name Mixin selector
      official d Loe;d()Loe;
      intermediary method_10586 Lnet/minecraft/class_2491;method_10586()Lnet/minecraft/class_2491;
      named copy Lnet/minecraft/nbt/NbtNull;copy()Lnet/minecraft/nbt/NbtNull;
    • accept

      public void accept(NbtElementVisitor visitor)
      Specified by:
      accept in interface NbtElement
      Mappings:
      Namespace Name Mixin selector
      official a Lov;a(Loz;)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

      public NbtScanner.Result doAccept(NbtScanner visitor)
      Specified by:
      doAccept in interface NbtElement
      Mappings:
      Namespace Name Mixin selector
      official a Lov;a(Los;)Los$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;