类 ListTag

  • 所有已实现的接口:
    Iterable<Tag>, Collection<Tag>, List<Tag>, Tag

    public class ListTag
    extends AbstractListTag<Tag>
    Represents an NBT list.

    An NBT list holds values of the same NBT type. The NBT type of an NBT list is determined once its first element is inserted; empty NBT lists return NULL_TYPE as their held NBT type.

    Mappings:
    Namespace Name
    official nb
    intermediary net/minecraft/class_2499
    named net/minecraft/nbt/ListTag
    • 字段详细资料

      • field_33199

        private static final int field_33199
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official b Lnb;b:I
        intermediary field_33199 Lnet/minecraft/class_2499;field_33199:I
        named field_33199 Lnet/minecraft/nbt/ListTag;field_33199:I
      • TYPE

        public static final NbtType<ListTag> TYPE
        Mappings:
        Namespace Name Mixin selector
        official a Lnb;a:Lnp;
        intermediary field_21039 Lnet/minecraft/class_2499;field_21039:Lnet/minecraft/class_4614;
        named TYPE Lnet/minecraft/nbt/ListTag;TYPE:Lnet/minecraft/nbt/NbtType;
      • value

        private final List<Tag> value
        Mappings:
        Namespace Name Mixin selector
        official c Lnb;c: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 w Lnb;w:B
        intermediary field_11551 Lnet/minecraft/class_2499;field_11551:B
        named type Lnet/minecraft/nbt/ListTag;type:B
    • 构造器详细资料

      • ListTag

        private ListTag​(List<Tag> list,
                        byte type)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lnb;<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()
    • 方法详细资料

      • write

        public void write​(DataOutput output)
                   throws IOException
        抛出:
        IOException
        Mappings:
        Namespace Name Mixin selector
        official a Lnn;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()
        Gets the type of this NBT element.
        返回:
        the type
        Mappings:
        Namespace Name Mixin selector
        official a Lnn;a()B
        intermediary method_10711 Lnet/minecraft/class_2520;method_10711()B
        named getType Lnet/minecraft/nbt/Tag;getType()B
      • getNbtType

        public NbtType<ListTag> getNbtType()
        Gets the NBT type definition of this NBT element.
        返回:
        the element type definition
        Mappings:
        Namespace Name Mixin selector
        official b Lnn;b()Lnp;
        intermediary method_23258 Lnet/minecraft/class_2520;method_23258()Lnet/minecraft/class_4614;
        named getNbtType Lnet/minecraft/nbt/Tag;getNbtType()Lnet/minecraft/nbt/NbtType;
      • toString

        public String toString()
        指定者:
        toString 在接口中 Tag
        覆盖:
        toString 在类中 AbstractCollection<Tag>
        Mappings:
        Namespace Name Mixin selector
        official toString Lnn;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 Lnb;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)
        指定者:
        remove 在接口中 List<Tag>
        指定者:
        remove 在类中 AbstractListTag<Tag>
        Mappings:
        Namespace Name Mixin selector
        official method_10536 Lnb;method_10536(I)Lnn;
        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()
        指定者:
        isEmpty 在接口中 Collection<Tag>
        指定者:
        isEmpty 在接口中 List<Tag>
        覆盖:
        isEmpty 在类中 AbstractCollection<Tag>
        Mappings:
        Namespace Name Mixin selector
        official isEmpty Lnb;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 Lnb;a(I)Lmv;
        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 Lnb;b(I)Lnb;
        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 Lnb;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 Lnb;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 Lnb;f(I)[I
        intermediary method_36111 Lnet/minecraft/class_2499;method_36111(I)[I
        named getIntArray Lnet/minecraft/nbt/ListTag;getIntArray(I)[I
      • getLongArray

        public long[] getLongArray​(int index)
        Mappings:
        Namespace Name Mixin selector
        official g Lnb;g(I)[J
        intermediary method_36112 Lnet/minecraft/class_2499;method_36112(I)[J
        named getLongArray Lnet/minecraft/nbt/ListTag;getLongArray(I)[J
      • getDouble

        public double getDouble​(int index)
        Mappings:
        Namespace Name Mixin selector
        official h Lnb;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 Lnb;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 Lnb;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()
        指定者:
        size 在接口中 Collection<Tag>
        指定者:
        size 在接口中 List<Tag>
        指定者:
        size 在类中 AbstractCollection<Tag>
        Mappings:
        Namespace Name Mixin selector
        official size Lnb;size()I
        intermediary size Lnet/minecraft/class_2499;size()I
        named size Lnet/minecraft/nbt/ListTag;size()I
      • get

        public Tag get​(int int2)
        指定者:
        get 在接口中 List<Tag>
        指定者:
        get 在类中 AbstractList<Tag>
        Mappings:
        Namespace Name Mixin selector
        official k Lnb;k(I)Lnn;
        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)
        指定者:
        set 在接口中 List<Tag>
        指定者:
        set 在类中 AbstractListTag<Tag>
        Mappings:
        Namespace Name Mixin selector
        official method_10606 Lnb;method_10606(ILnn;)Lnn;
        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)
        指定者:
        add 在接口中 List<Tag>
        指定者:
        add 在类中 AbstractListTag<Tag>
        Mappings:
        Namespace Name Mixin selector
        official method_10531 Lnb;method_10531(ILnn;)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
      • setElement

        public boolean setElement​(int index,
                                  Tag element)
        指定者:
        setElement 在类中 AbstractListTag<Tag>
        Mappings:
        Namespace Name Mixin selector
        official a Lmu;a(ILnn;)Z
        intermediary method_10535 Lnet/minecraft/class_2483;method_10535(ILnet/minecraft/class_2520;)Z
        named setElement Lnet/minecraft/nbt/AbstractListTag;setElement(ILnet/minecraft/nbt/Tag;)Z
      • addElement

        public boolean addElement​(int index,
                                  Tag element)
        指定者:
        addElement 在类中 AbstractListTag<Tag>
        Mappings:
        Namespace Name Mixin selector
        official b Lmu;b(ILnn;)Z
        intermediary method_10533 Lnet/minecraft/class_2483;method_10533(ILnet/minecraft/class_2520;)Z
        named addElement Lnet/minecraft/nbt/AbstractListTag;addElement(ILnet/minecraft/nbt/Tag;)Z
      • canAdd

        private boolean canAdd​(Tag element)
        Mappings:
        Namespace Name Mixin selector
        official a Lnb;a(Lnn;)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()
        从接口复制的说明: Tag
        Copies this NBT element.
        返回:
        the copied element
        Mappings:
        Namespace Name Mixin selector
        official d Lnb;d()Lnb;
        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)
        指定者:
        equals 在接口中 Collection<Tag>
        指定者:
        equals 在接口中 List<Tag>
        覆盖:
        equals 在类中 AbstractList<Tag>
        Mappings:
        Namespace Name Mixin selector
        official equals Lnb;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()
        指定者:
        hashCode 在接口中 Collection<Tag>
        指定者:
        hashCode 在接口中 List<Tag>
        覆盖:
        hashCode 在类中 AbstractList<Tag>
        Mappings:
        Namespace Name Mixin selector
        official hashCode Lnb;hashCode()I
        intermediary hashCode Lnet/minecraft/class_2499;hashCode()I
        named hashCode Lnet/minecraft/nbt/ListTag;hashCode()I
      • accept

        public void accept​(NbtElementVisitor visitor)
        Mappings:
        Namespace Name Mixin selector
        official a Lnn;a(Lnr;)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/NbtElementVisitor;)V
      • getHeldType

        public byte getHeldType()
        Gets the type of element that this list holds.
        指定者:
        getHeldType 在类中 AbstractListTag<Tag>
        返回:
        the type of element that this list holds
        Mappings:
        Namespace Name Mixin selector
        official d_ Lmu;d_()B
        intermediary method_10601 Lnet/minecraft/class_2483;method_10601()B
        named getHeldType Lnet/minecraft/nbt/AbstractListTag;getHeldType()B
      • clear

        public void clear()
        指定者:
        clear 在接口中 Collection<Tag>
        指定者:
        clear 在接口中 List<Tag>
        覆盖:
        clear 在类中 AbstractList<Tag>
        Mappings:
        Namespace Name Mixin selector
        official clear Lnb;clear()V
        intermediary clear Lnet/minecraft/class_2499;clear()V
        named clear Lnet/minecraft/nbt/ListTag;clear()V