Interface NbtElement

All Known Implementing Classes:
AbstractNbtList, AbstractNbtNumber, NbtByte, NbtByteArray, NbtCompound, NbtDouble, NbtFloat, NbtInt, NbtIntArray, NbtList, NbtLong, NbtLongArray, NbtNull, NbtShort, NbtString

public interface NbtElement
Represents an NBT element.
Mappings:
Namespace Name
official nj
intermediary net/minecraft/class_2520
named net/minecraft/nbt/NbtElement
  • Method Details

    • write

      void write​(DataOutput output) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lnj;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
    • toString

      String toString()
      Overrides:
      toString in class Object
      Mappings:
      Namespace Name Mixin selector
      official toString Lnj;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_2520;toString()Ljava/lang/String;
      named toString Lnet/minecraft/nbt/NbtElement;toString()Ljava/lang/String;
    • getType

      byte getType()
      Gets the type of this NBT element.
      Returns:
      the type
      See Also:
      a list of valid types
      Mappings:
      Namespace Name Mixin selector
      official a Lnj;a()B
      intermediary method_10711 Lnet/minecraft/class_2520;method_10711()B
      named getType Lnet/minecraft/nbt/NbtElement;getType()B
    • getNbtType

      NbtType<?> getNbtType()
      Gets the NBT type definition of this NBT element.
      Returns:
      the element type definition
      Mappings:
      Namespace Name Mixin selector
      official b Lnj;b()Lnl;
      intermediary method_23258 Lnet/minecraft/class_2520;method_23258()Lnet/minecraft/class_4614;
      named getNbtType Lnet/minecraft/nbt/NbtElement;getNbtType()Lnet/minecraft/nbt/NbtType;
    • copy

      NbtElement copy()
      Copies this NBT element.
      Returns:
      the copied element
      Mappings:
      Namespace Name Mixin selector
      official c Lnj;c()Lnj;
      intermediary method_10707 Lnet/minecraft/class_2520;method_10707()Lnet/minecraft/class_2520;
      named copy Lnet/minecraft/nbt/NbtElement;copy()Lnet/minecraft/nbt/NbtElement;
    • asString

      default String asString()
      Mappings:
      Namespace Name Mixin selector
      official e_ Lnj;e_()Ljava/lang/String;
      intermediary method_10714 Lnet/minecraft/class_2520;method_10714()Ljava/lang/String;
      named asString Lnet/minecraft/nbt/NbtElement;asString()Ljava/lang/String;
    • accept

      void accept​(NbtElementVisitor visitor)
      Mappings:
      Namespace Name Mixin selector
      official a Lnj;a(Lnn;)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