Class NbtByteArray

All Implemented Interfaces:
Iterable<NbtByte>, Collection<NbtByte>, List<NbtByte>, NbtElement

public class NbtByteArray extends AbstractNbtList<NbtByte>
Represents an NBT byte array.
Mappings:
Namespace Name
official nz
intermediary net/minecraft/class_2479
named net/minecraft/nbt/NbtByteArray
  • Field Details

    • SIZE

      private static final int SIZE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lnz;b:I
      intermediary field_33188 Lnet/minecraft/class_2479;field_33188:I
      named SIZE Lnet/minecraft/nbt/NbtByteArray;SIZE:I
    • TYPE

      public static final NbtType<NbtByteArray> TYPE
      Mappings:
      Namespace Name Mixin selector
      official a Lnz;a:Lox;
      intermediary field_21024 Lnet/minecraft/class_2479;field_21024:Lnet/minecraft/class_4614;
      named TYPE Lnet/minecraft/nbt/NbtByteArray;TYPE:Lnet/minecraft/nbt/NbtType;
    • value

      private byte[] value
      Mappings:
      Namespace Name Mixin selector
      official c Lnz;c:[B
      intermediary field_11493 Lnet/minecraft/class_2479;field_11493:[B
      named value Lnet/minecraft/nbt/NbtByteArray;value:[B
  • Constructor Details

    • NbtByteArray

      public NbtByteArray(byte[] value)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lnz;<init>([B)V
      intermediary <init> Lnet/minecraft/class_2479;<init>([B)V
      named <init> Lnet/minecraft/nbt/NbtByteArray;<init>([B)V
    • NbtByteArray

      public NbtByteArray(List<Byte> value)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lnz;<init>(Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_2479;<init>(Ljava/util/List;)V
      named <init> Lnet/minecraft/nbt/NbtByteArray;<init>(Ljava/util/List;)V
  • Method Details

    • toArray

      private static byte[] toArray(List<Byte> list)
      Mappings:
      Namespace Name Mixin selector
      official a Lnz;a(Ljava/util/List;)[B
      intermediary method_10522 Lnet/minecraft/class_2479;method_10522(Ljava/util/List;)[B
      named toArray Lnet/minecraft/nbt/NbtByteArray;toArray(Ljava/util/List;)[B
    • write

      public void write(DataOutput output) throws IOException
      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.
      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<NbtByteArray> getNbtType()
      Gets the NBT type definition of this NBT element.
      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 AbstractCollection<NbtByte>
    • copy

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

      public boolean equals(Object o)
      Specified by:
      equals in interface Collection<NbtByte>
      Specified by:
      equals in interface List<NbtByte>
      Overrides:
      equals in class AbstractList<NbtByte>
      Mappings:
      Namespace Name Mixin selector
      official equals Lnz;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_2479;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/nbt/NbtByteArray;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Collection<NbtByte>
      Specified by:
      hashCode in interface List<NbtByte>
      Overrides:
      hashCode in class AbstractList<NbtByte>
    • accept

      public void accept(NbtElementVisitor visitor)
      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
    • getByteArray

      public byte[] getByteArray()
      Mappings:
      Namespace Name Mixin selector
      official d Lnz;d()[B
      intermediary method_10521 Lnet/minecraft/class_2479;method_10521()[B
      named getByteArray Lnet/minecraft/nbt/NbtByteArray;getByteArray()[B
    • size

      public int size()
      Specified by:
      size in interface Collection<NbtByte>
      Specified by:
      size in interface List<NbtByte>
      Specified by:
      size in class AbstractCollection<NbtByte>
    • get

      public NbtByte get(int int2)
      Specified by:
      get in interface List<NbtByte>
      Specified by:
      get in class AbstractList<NbtByte>
      Mappings:
      Namespace Name Mixin selector
      official a Lnz;a(I)Loa;
      intermediary method_10523 Lnet/minecraft/class_2479;method_10523(I)Lnet/minecraft/class_2481;
      named get Lnet/minecraft/nbt/NbtByteArray;get(I)Lnet/minecraft/nbt/NbtByte;
    • set

      public NbtByte set(int int2, NbtByte nbtByte)
      Specified by:
      set in interface List<NbtByte>
      Specified by:
      set in class AbstractNbtList<NbtByte>
      Mappings:
      Namespace Name Mixin selector
      official a Lnz;a(ILoa;)Loa;
      intermediary method_17803 Lnet/minecraft/class_2479;method_17803(ILnet/minecraft/class_2481;)Lnet/minecraft/class_2481;
      named set Lnet/minecraft/nbt/NbtByteArray;set(ILnet/minecraft/nbt/NbtByte;)Lnet/minecraft/nbt/NbtByte;
    • method_10531

      public void method_10531(int int2, NbtByte nbtByte)
      Mappings:
      Namespace Name Mixin selector
      official b Lnz;b(ILoa;)V
      intermediary method_17805 Lnet/minecraft/class_2479;method_17805(ILnet/minecraft/class_2481;)V
      named method_10531 Lnet/minecraft/nbt/NbtByteArray;method_10531(ILnet/minecraft/nbt/NbtByte;)V
    • setElement

      public boolean setElement(int index, NbtElement element)
      Specified by:
      setElement in class AbstractNbtList<NbtByte>
      Mappings:
      Namespace Name Mixin selector
      official a Lob;a(ILov;)Z
      intermediary method_10535 Lnet/minecraft/class_2483;method_10535(ILnet/minecraft/class_2520;)Z
      named setElement Lnet/minecraft/nbt/AbstractNbtList;setElement(ILnet/minecraft/nbt/NbtElement;)Z
    • addElement

      public boolean addElement(int index, NbtElement element)
      Specified by:
      addElement in class AbstractNbtList<NbtByte>
      Mappings:
      Namespace Name Mixin selector
      official b Lob;b(ILov;)Z
      intermediary method_10533 Lnet/minecraft/class_2483;method_10533(ILnet/minecraft/class_2520;)Z
      named addElement Lnet/minecraft/nbt/AbstractNbtList;addElement(ILnet/minecraft/nbt/NbtElement;)Z
    • method_10536

      public NbtByte method_10536(int int2)
      Mappings:
      Namespace Name Mixin selector
      official b Lnz;b(I)Loa;
      intermediary method_17804 Lnet/minecraft/class_2479;method_17804(I)Lnet/minecraft/class_2481;
      named method_10536 Lnet/minecraft/nbt/NbtByteArray;method_10536(I)Lnet/minecraft/nbt/NbtByte;
    • getHeldType

      public byte getHeldType()
      Gets the type of element that this list holds.
      Specified by:
      getHeldType in class AbstractNbtList<NbtByte>
      Returns:
      the type of element that this list holds
      Mappings:
      Namespace Name Mixin selector
      official e Lob;e()B
      intermediary method_10601 Lnet/minecraft/class_2483;method_10601()B
      named getHeldType Lnet/minecraft/nbt/AbstractNbtList;getHeldType()B
    • clear

      public void clear()
      Specified by:
      clear in interface Collection<NbtByte>
      Specified by:
      clear in interface List<NbtByte>
      Overrides:
      clear in class AbstractList<NbtByte>
    • doAccept

      public NbtScanner.Result doAccept(NbtScanner visitor)
      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;