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 nc
intermediary net/minecraft/class_2491
named net/minecraft/nbt/NbtNull
  • Field Details

    • field_33193

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

      public static final NbtType<NbtNull> TYPE
      Mappings:
      Namespace Name Mixin selector
      official a Lnc;a:Lnu;
      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 Lnc;b:Lnc;
      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 Lns;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 Lns;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 Lns;b()Lnu;
      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 Lnc;d()Lnc;
      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 Lns;a(Lnw;)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