Class ByteArrayTag

All Implemented Interfaces:
Iterable<ByteTag>, Collection<ByteTag>, List<ByteTag>, Tag

public class ByteArrayTag
extends AbstractListTag<ByteTag>
Mappings:
Namespace Name
official mn
intermediary net/minecraft/class_2479
named net/minecraft/nbt/ByteArrayTag
  • Field Details

    • READER

      public static final TagReader<ByteArrayTag> READER
      Mappings:
      Namespace Name Mixin selector
      official a Lmn;a:Lnk;
      intermediary field_21024 Lnet/minecraft/class_2479;field_21024:Lnet/minecraft/class_4614;
      named READER Lnet/minecraft/nbt/ByteArrayTag;READER:Lnet/minecraft/nbt/TagReader;
    • value

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

    • ByteArrayTag

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

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

    • toArray

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

      public void write​(DataOutput output) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lni;a(Ljava/io/DataOutput;)V
      intermediary method_10713 Lnet/minecraft/class_2520;method_10713(Ljava/io/DataOutput;)V
      named write Lnet/minecraft/nbt/Tag;write(Ljava/io/DataOutput;)V
    • getType

      public byte getType()
      Mappings:
      Namespace Name Mixin selector
      official a Lni;a()B
      intermediary method_10711 Lnet/minecraft/class_2520;method_10711()B
      named getType Lnet/minecraft/nbt/Tag;getType()B
    • getReader

      public TagReader<ByteArrayTag> getReader()
      Mappings:
      Namespace Name Mixin selector
      official b Lni;b()Lnk;
      intermediary method_23258 Lnet/minecraft/class_2520;method_23258()Lnet/minecraft/class_4614;
      named getReader Lnet/minecraft/nbt/Tag;getReader()Lnet/minecraft/nbt/TagReader;
    • toString

      public String toString()
      Specified by:
      toString in interface Tag
      Overrides:
      toString in class AbstractCollection<ByteTag>
      Mappings:
      Namespace Name Mixin selector
      official toString Lni;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_2520;toString()Ljava/lang/String;
      named toString Lnet/minecraft/nbt/Tag;toString()Ljava/lang/String;
    • copy

      public Tag copy()
      Mappings:
      Namespace Name Mixin selector
      official c Lni;c()Lni;
      intermediary method_10707 Lnet/minecraft/class_2520;method_10707()Lnet/minecraft/class_2520;
      named copy Lnet/minecraft/nbt/Tag;copy()Lnet/minecraft/nbt/Tag;
    • equals

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

      public int hashCode()
      Specified by:
      hashCode in interface Collection<ByteTag>
      Specified by:
      hashCode in interface List<ByteTag>
      Overrides:
      hashCode in class AbstractList<ByteTag>
      Mappings:
      Namespace Name Mixin selector
      official hashCode Lmn;hashCode()I
      intermediary hashCode Lnet/minecraft/class_2479;hashCode()I
      named hashCode Lnet/minecraft/nbt/ByteArrayTag;hashCode()I
    • accept

      public void accept​(NbtTagVisitor visitor)
      Mappings:
      Namespace Name Mixin selector
      official a Lni;a(Lnm;)V
      intermediary method_32289 Lnet/minecraft/class_2520;method_32289(Lnet/minecraft/class_5627;)V
      named accept Lnet/minecraft/nbt/Tag;accept(Lnet/minecraft/nbt/visitor/NbtTagVisitor;)V
    • getByteArray

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

      public int size()
      Specified by:
      size in interface Collection<ByteTag>
      Specified by:
      size in interface List<ByteTag>
      Specified by:
      size in class AbstractCollection<ByteTag>
      Mappings:
      Namespace Name Mixin selector
      official size Lmn;size()I
      intermediary size Lnet/minecraft/class_2479;size()I
      named size Lnet/minecraft/nbt/ByteArrayTag;size()I
    • get

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

      public ByteTag set​(int int2, ByteTag byteTag)
      Specified by:
      set in interface List<ByteTag>
      Specified by:
      set in class AbstractListTag<ByteTag>
      Mappings:
      Namespace Name Mixin selector
      official a Lmn;a(ILmo;)Lmo;
      intermediary method_17803 Lnet/minecraft/class_2479;method_17803(ILnet/minecraft/class_2481;)Lnet/minecraft/class_2481;
      named set Lnet/minecraft/nbt/ByteArrayTag;set(ILnet/minecraft/nbt/ByteTag;)Lnet/minecraft/nbt/ByteTag;
    • method_10531

      public void method_10531​(int int2, ByteTag byteTag)
      Mappings:
      Namespace Name Mixin selector
      official b Lmn;b(ILmo;)V
      intermediary method_17805 Lnet/minecraft/class_2479;method_17805(ILnet/minecraft/class_2481;)V
      named method_10531 Lnet/minecraft/nbt/ByteArrayTag;method_10531(ILnet/minecraft/nbt/ByteTag;)V
    • setTag

      public boolean setTag​(int index, Tag tag)
      Specified by:
      setTag in class AbstractListTag<ByteTag>
      Mappings:
      Namespace Name Mixin selector
      official a Lmp;a(ILni;)Z
      intermediary method_10535 Lnet/minecraft/class_2483;method_10535(ILnet/minecraft/class_2520;)Z
      named setTag Lnet/minecraft/nbt/AbstractListTag;setTag(ILnet/minecraft/nbt/Tag;)Z
    • addTag

      public boolean addTag​(int index, Tag tag)
      Specified by:
      addTag in class AbstractListTag<ByteTag>
      Mappings:
      Namespace Name Mixin selector
      official b Lmp;b(ILni;)Z
      intermediary method_10533 Lnet/minecraft/class_2483;method_10533(ILnet/minecraft/class_2520;)Z
      named addTag Lnet/minecraft/nbt/AbstractListTag;addTag(ILnet/minecraft/nbt/Tag;)Z
    • method_10536

      public ByteTag method_10536​(int int2)
      Mappings:
      Namespace Name Mixin selector
      official b Lmn;b(I)Lmo;
      intermediary method_17804 Lnet/minecraft/class_2479;method_17804(I)Lnet/minecraft/class_2481;
      named method_10536 Lnet/minecraft/nbt/ByteArrayTag;method_10536(I)Lnet/minecraft/nbt/ByteTag;
    • getElementType

      public byte getElementType()
      Specified by:
      getElementType in class AbstractListTag<ByteTag>
      Mappings:
      Namespace Name Mixin selector
      official e_ Lmp;e_()B
      intermediary method_10601 Lnet/minecraft/class_2483;method_10601()B
      named getElementType Lnet/minecraft/nbt/AbstractListTag;getElementType()B
    • clear

      public void clear()
      Specified by:
      clear in interface Collection<ByteTag>
      Specified by:
      clear in interface List<ByteTag>
      Overrides:
      clear in class AbstractList<ByteTag>
      Mappings:
      Namespace Name Mixin selector
      official clear Lmn;clear()V
      intermediary clear Lnet/minecraft/class_2479;clear()V
      named clear Lnet/minecraft/nbt/ByteArrayTag;clear()V