Class ListTag

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

public class ListTag
extends AbstractListTag<Tag>
Mappings:
Namespace Name
official mw
intermediary net/minecraft/class_2499
named net/minecraft/nbt/ListTag
  • Field Details

    • READER

      public static final TagReader<ListTag> READER
      Mappings:
      Namespace Name Mixin selector
      official a Lmw;a:Lnk;
      intermediary field_21039 Lnet/minecraft/class_2499;field_21039:Lnet/minecraft/class_4614;
      named READER Lnet/minecraft/nbt/ListTag;READER:Lnet/minecraft/nbt/TagReader;
    • value

      private final List<Tag> value
      Mappings:
      Namespace Name Mixin selector
      official b Lmw;b:Ljava/util/List;
      intermediary field_11550 Lnet/minecraft/class_2499;field_11550:Ljava/util/List;
      named value Lnet/minecraft/nbt/ListTag;value:Ljava/util/List;
    • type

      private byte type
      Mappings:
      Namespace Name Mixin selector
      official c Lmw;c:B
      intermediary field_11551 Lnet/minecraft/class_2499;field_11551:B
      named type Lnet/minecraft/nbt/ListTag;type:B
  • Constructor Details

    • ListTag

      private ListTag​(List<Tag> list, byte type)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lmw;<init>(Ljava/util/List;B)V
      intermediary <init> Lnet/minecraft/class_2499;<init>(Ljava/util/List;B)V
      named <init> Lnet/minecraft/nbt/ListTag;<init>(Ljava/util/List;B)V
    • ListTag

      public ListTag()
  • Method Details

    • 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<ListTag> 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<Tag>
      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;
    • forgetTypeIfEmpty

      private void forgetTypeIfEmpty()
      Mappings:
      Namespace Name Mixin selector
      official f Lmw;f()V
      intermediary method_17809 Lnet/minecraft/class_2499;method_17809()V
      named forgetTypeIfEmpty Lnet/minecraft/nbt/ListTag;forgetTypeIfEmpty()V
    • remove

      public Tag remove​(int int2)
      Specified by:
      remove in interface List<Tag>
      Specified by:
      remove in class AbstractListTag<Tag>
      Mappings:
      Namespace Name Mixin selector
      official method_10536 Lmw;method_10536(I)Lni;
      intermediary method_10536 Lnet/minecraft/class_2499;method_10536(I)Lnet/minecraft/class_2520;
      named remove Lnet/minecraft/nbt/ListTag;remove(I)Lnet/minecraft/nbt/Tag;
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Collection<Tag>
      Specified by:
      isEmpty in interface List<Tag>
      Overrides:
      isEmpty in class AbstractCollection<Tag>
      Mappings:
      Namespace Name Mixin selector
      official isEmpty Lmw;isEmpty()Z
      intermediary isEmpty Lnet/minecraft/class_2499;isEmpty()Z
      named isEmpty Lnet/minecraft/nbt/ListTag;isEmpty()Z
    • getCompound

      public CompoundTag getCompound​(int index)
      Mappings:
      Namespace Name Mixin selector
      official a Lmw;a(I)Lmq;
      intermediary method_10602 Lnet/minecraft/class_2499;method_10602(I)Lnet/minecraft/class_2487;
      named getCompound Lnet/minecraft/nbt/ListTag;getCompound(I)Lnet/minecraft/nbt/CompoundTag;
    • getList

      public ListTag getList​(int index)
      Mappings:
      Namespace Name Mixin selector
      official b Lmw;b(I)Lmw;
      intermediary method_10603 Lnet/minecraft/class_2499;method_10603(I)Lnet/minecraft/class_2499;
      named getList Lnet/minecraft/nbt/ListTag;getList(I)Lnet/minecraft/nbt/ListTag;
    • getShort

      public short getShort​(int index)
      Mappings:
      Namespace Name Mixin selector
      official d Lmw;d(I)S
      intermediary method_10609 Lnet/minecraft/class_2499;method_10609(I)S
      named getShort Lnet/minecraft/nbt/ListTag;getShort(I)S
    • getInt

      public int getInt​(int index)
      Mappings:
      Namespace Name Mixin selector
      official e Lmw;e(I)I
      intermediary method_10600 Lnet/minecraft/class_2499;method_10600(I)I
      named getInt Lnet/minecraft/nbt/ListTag;getInt(I)I
    • getIntArray

      public int[] getIntArray​(int index)
      Mappings:
      Namespace Name Mixin selector
      official f Lmw;f(I)[I
      intermediary method_10610 Lnet/minecraft/class_2499;method_10610(I)[I
      named getIntArray Lnet/minecraft/nbt/ListTag;getIntArray(I)[I
    • getDouble

      public double getDouble​(int index)
      Mappings:
      Namespace Name Mixin selector
      official h Lmw;h(I)D
      intermediary method_10611 Lnet/minecraft/class_2499;method_10611(I)D
      named getDouble Lnet/minecraft/nbt/ListTag;getDouble(I)D
    • getFloat

      public float getFloat​(int index)
      Mappings:
      Namespace Name Mixin selector
      official i Lmw;i(I)F
      intermediary method_10604 Lnet/minecraft/class_2499;method_10604(I)F
      named getFloat Lnet/minecraft/nbt/ListTag;getFloat(I)F
    • getString

      public String getString​(int index)
      Mappings:
      Namespace Name Mixin selector
      official j Lmw;j(I)Ljava/lang/String;
      intermediary method_10608 Lnet/minecraft/class_2499;method_10608(I)Ljava/lang/String;
      named getString Lnet/minecraft/nbt/ListTag;getString(I)Ljava/lang/String;
    • size

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

      public Tag get​(int int2)
      Specified by:
      get in interface List<Tag>
      Specified by:
      get in class AbstractList<Tag>
      Mappings:
      Namespace Name Mixin selector
      official k Lmw;k(I)Lni;
      intermediary method_10534 Lnet/minecraft/class_2499;method_10534(I)Lnet/minecraft/class_2520;
      named get Lnet/minecraft/nbt/ListTag;get(I)Lnet/minecraft/nbt/Tag;
    • set

      public Tag set​(int int2, Tag tag)
      Specified by:
      set in interface List<Tag>
      Specified by:
      set in class AbstractListTag<Tag>
      Mappings:
      Namespace Name Mixin selector
      official method_10606 Lmw;method_10606(ILni;)Lni;
      intermediary method_10606 Lnet/minecraft/class_2499;method_10606(ILnet/minecraft/class_2520;)Lnet/minecraft/class_2520;
      named set Lnet/minecraft/nbt/ListTag;set(ILnet/minecraft/nbt/Tag;)Lnet/minecraft/nbt/Tag;
    • add

      public void add​(int int2, Tag tag)
      Specified by:
      add in interface List<Tag>
      Specified by:
      add in class AbstractListTag<Tag>
      Mappings:
      Namespace Name Mixin selector
      official method_10531 Lmw;method_10531(ILni;)V
      intermediary method_10531 Lnet/minecraft/class_2499;method_10531(ILnet/minecraft/class_2520;)V
      named add Lnet/minecraft/nbt/ListTag;add(ILnet/minecraft/nbt/Tag;)V
    • setTag

      public boolean setTag​(int index, Tag tag)
      Specified by:
      setTag in class AbstractListTag<Tag>
      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<Tag>
      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
    • canAdd

      private boolean canAdd​(Tag tag)
      Mappings:
      Namespace Name Mixin selector
      official a Lmw;a(Lni;)Z
      intermediary method_10605 Lnet/minecraft/class_2499;method_10605(Lnet/minecraft/class_2520;)Z
      named canAdd Lnet/minecraft/nbt/ListTag;canAdd(Lnet/minecraft/nbt/Tag;)Z
    • copy

      public ListTag copy()
      Mappings:
      Namespace Name Mixin selector
      official d Lmw;d()Lmw;
      intermediary method_10612 Lnet/minecraft/class_2499;method_10612()Lnet/minecraft/class_2499;
      named copy Lnet/minecraft/nbt/ListTag;copy()Lnet/minecraft/nbt/ListTag;
    • equals

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

      public int hashCode()
      Specified by:
      hashCode in interface Collection<Tag>
      Specified by:
      hashCode in interface List<Tag>
      Overrides:
      hashCode in class AbstractList<Tag>
      Mappings:
      Namespace Name Mixin selector
      official hashCode Lmw;hashCode()I
      intermediary hashCode Lnet/minecraft/class_2499;hashCode()I
      named hashCode Lnet/minecraft/nbt/ListTag;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
    • getElementType

      public byte getElementType()
      Specified by:
      getElementType in class AbstractListTag<Tag>
      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<Tag>
      Specified by:
      clear in interface List<Tag>
      Overrides:
      clear in class AbstractList<Tag>
      Mappings:
      Namespace Name Mixin selector
      official clear Lmw;clear()V
      intermediary clear Lnet/minecraft/class_2499;clear()V
      named clear Lnet/minecraft/nbt/ListTag;clear()V