类 ListTag
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- net.minecraft.nbt.AbstractListTag<Tag>
-
- net.minecraft.nbt.ListTag
-
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_TYPEas their held NBT type.- Mappings:
Namespace Name official nbintermediary net/minecraft/class_2499named net/minecraft/nbt/ListTag
-
-
字段概要
字段 修饰符和类型 字段 说明 private static intfield_33199private bytetypestatic NbtType<ListTag>TYPEprivate List<Tag>value-
从类继承的字段 java.util.AbstractList
modCount
-
从接口继承的字段 net.minecraft.nbt.Tag
BYTE_ARRAY_TYPE, BYTE_TYPE, COMPOUND_TYPE, DOUBLE_TYPE, field_33246, field_33247, field_33248, field_33249, field_33264, FLOAT_TYPE, INT_ARRAY_TYPE, INT_TYPE, LIST_TYPE, LONG_ARRAY_TYPE, LONG_TYPE, NULL_TYPE, NUMBER_TYPE, SHORT_TYPE, STRING_TYPE
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaccept(NbtElementVisitor visitor)voidadd(int int2, Tag tag)booleanaddElement(int index, Tag element)private booleancanAdd(Tag element)voidclear()ListTagcopy()Copies this NBT element.booleanequals(Object o)private voidforgetTypeIfEmpty()Tagget(int int2)CompoundTaggetCompound(int index)doublegetDouble(int index)floatgetFloat(int index)bytegetHeldType()Gets the type of element that this list holds.intgetInt(int index)int[]getIntArray(int index)ListTaggetList(int index)long[]getLongArray(int index)NbtType<ListTag>getNbtType()Gets the NBT type definition of this NBT element.shortgetShort(int index)StringgetString(int index)bytegetType()Gets the type of this NBT element.inthashCode()booleanisEmpty()Tagremove(int int2)Tagset(int int2, Tag tag)booleansetElement(int index, Tag element)intsize()StringtoString()voidwrite(DataOutput output)-
从类继承的方法 java.util.AbstractList
add, addAll, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
-
从类继承的方法 java.util.AbstractCollection
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray
-
从接口继承的方法 java.util.Collection
parallelStream, removeIf, stream, toArray
-
从接口继承的方法 java.util.List
addAll, contains, containsAll, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
字段详细资料
-
field_33199
private static final int field_33199
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLnb;b:Iintermediary field_33199Lnet/minecraft/class_2499;field_33199:Inamed field_33199Lnet/minecraft/nbt/ListTag;field_33199:I
-
TYPE
public static final NbtType<ListTag> TYPE
- Mappings:
Namespace Name Mixin selector official aLnb;a:Lnp;intermediary field_21039Lnet/minecraft/class_2499;field_21039:Lnet/minecraft/class_4614;named TYPELnet/minecraft/nbt/ListTag;TYPE:Lnet/minecraft/nbt/NbtType;
-
value
private final List<Tag> value
- Mappings:
Namespace Name Mixin selector official cLnb;c:Ljava/util/List;intermediary field_11550Lnet/minecraft/class_2499;field_11550:Ljava/util/List;named valueLnet/minecraft/nbt/ListTag;value:Ljava/util/List;
-
type
private byte type
- Mappings:
Namespace Name Mixin selector official wLnb;w:Bintermediary field_11551Lnet/minecraft/class_2499;field_11551:Bnamed typeLnet/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)Vintermediary <init>Lnet/minecraft/class_2499;<init>(Ljava/util/List;B)Vnamed <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 aLnn;a(Ljava/io/DataOutput;)Vintermediary method_10713Lnet/minecraft/class_2520;method_10713(Ljava/io/DataOutput;)Vnamed writeLnet/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 aLnn;a()Bintermediary method_10711Lnet/minecraft/class_2520;method_10711()Bnamed getTypeLnet/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 bLnn;b()Lnp;intermediary method_23258Lnet/minecraft/class_2520;method_23258()Lnet/minecraft/class_4614;named getNbtTypeLnet/minecraft/nbt/Tag;getNbtType()Lnet/minecraft/nbt/NbtType;
-
toString
public String toString()
- 指定者:
toString在接口中Tag- 覆盖:
toString在类中AbstractCollection<Tag>- Mappings:
Namespace Name Mixin selector official toStringLnn;toString()Ljava/lang/String;intermediary toStringLnet/minecraft/class_2520;toString()Ljava/lang/String;named toStringLnet/minecraft/nbt/Tag;toString()Ljava/lang/String;
-
forgetTypeIfEmpty
private void forgetTypeIfEmpty()
- Mappings:
Namespace Name Mixin selector official fLnb;f()Vintermediary method_17809Lnet/minecraft/class_2499;method_17809()Vnamed forgetTypeIfEmptyLnet/minecraft/nbt/ListTag;forgetTypeIfEmpty()V
-
remove
public Tag remove(int int2)
- 指定者:
remove在接口中List<Tag>- 指定者:
remove在类中AbstractListTag<Tag>- Mappings:
Namespace Name Mixin selector official method_10536Lnb;method_10536(I)Lnn;intermediary method_10536Lnet/minecraft/class_2499;method_10536(I)Lnet/minecraft/class_2520;named removeLnet/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 isEmptyLnb;isEmpty()Zintermediary isEmptyLnet/minecraft/class_2499;isEmpty()Znamed isEmptyLnet/minecraft/nbt/ListTag;isEmpty()Z
-
getCompound
public CompoundTag getCompound(int index)
- Mappings:
Namespace Name Mixin selector official aLnb;a(I)Lmv;intermediary method_10602Lnet/minecraft/class_2499;method_10602(I)Lnet/minecraft/class_2487;named getCompoundLnet/minecraft/nbt/ListTag;getCompound(I)Lnet/minecraft/nbt/CompoundTag;
-
getList
public ListTag getList(int index)
- Mappings:
Namespace Name Mixin selector official bLnb;b(I)Lnb;intermediary method_10603Lnet/minecraft/class_2499;method_10603(I)Lnet/minecraft/class_2499;named getListLnet/minecraft/nbt/ListTag;getList(I)Lnet/minecraft/nbt/ListTag;
-
getShort
public short getShort(int index)
- Mappings:
Namespace Name Mixin selector official dLnb;d(I)Sintermediary method_10609Lnet/minecraft/class_2499;method_10609(I)Snamed getShortLnet/minecraft/nbt/ListTag;getShort(I)S
-
getInt
public int getInt(int index)
- Mappings:
Namespace Name Mixin selector official eLnb;e(I)Iintermediary method_10600Lnet/minecraft/class_2499;method_10600(I)Inamed getIntLnet/minecraft/nbt/ListTag;getInt(I)I
-
getIntArray
public int[] getIntArray(int index)
- Mappings:
Namespace Name Mixin selector official fLnb;f(I)[Iintermediary method_36111Lnet/minecraft/class_2499;method_36111(I)[Inamed getIntArrayLnet/minecraft/nbt/ListTag;getIntArray(I)[I
-
getLongArray
public long[] getLongArray(int index)
- Mappings:
Namespace Name Mixin selector official gLnb;g(I)[Jintermediary method_36112Lnet/minecraft/class_2499;method_36112(I)[Jnamed getLongArrayLnet/minecraft/nbt/ListTag;getLongArray(I)[J
-
getDouble
public double getDouble(int index)
- Mappings:
Namespace Name Mixin selector official hLnb;h(I)Dintermediary method_10611Lnet/minecraft/class_2499;method_10611(I)Dnamed getDoubleLnet/minecraft/nbt/ListTag;getDouble(I)D
-
getFloat
public float getFloat(int index)
- Mappings:
Namespace Name Mixin selector official iLnb;i(I)Fintermediary method_10604Lnet/minecraft/class_2499;method_10604(I)Fnamed getFloatLnet/minecraft/nbt/ListTag;getFloat(I)F
-
getString
public String getString(int index)
- Mappings:
Namespace Name Mixin selector official jLnb;j(I)Ljava/lang/String;intermediary method_10608Lnet/minecraft/class_2499;method_10608(I)Ljava/lang/String;named getStringLnet/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 sizeLnb;size()Iintermediary sizeLnet/minecraft/class_2499;size()Inamed sizeLnet/minecraft/nbt/ListTag;size()I
-
get
public Tag get(int int2)
-
set
public Tag set(int int2, Tag tag)
- 指定者:
set在接口中List<Tag>- 指定者:
set在类中AbstractListTag<Tag>- Mappings:
Namespace Name Mixin selector official method_10606Lnb;method_10606(ILnn;)Lnn;intermediary method_10606Lnet/minecraft/class_2499;method_10606(ILnet/minecraft/class_2520;)Lnet/minecraft/class_2520;named setLnet/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_10531Lnb;method_10531(ILnn;)Vintermediary method_10531Lnet/minecraft/class_2499;method_10531(ILnet/minecraft/class_2520;)Vnamed addLnet/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 aLmu;a(ILnn;)Zintermediary method_10535Lnet/minecraft/class_2483;method_10535(ILnet/minecraft/class_2520;)Znamed setElementLnet/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 bLmu;b(ILnn;)Zintermediary method_10533Lnet/minecraft/class_2483;method_10533(ILnet/minecraft/class_2520;)Znamed addElementLnet/minecraft/nbt/AbstractListTag;addElement(ILnet/minecraft/nbt/Tag;)Z
-
canAdd
private boolean canAdd(Tag element)
- Mappings:
Namespace Name Mixin selector official aLnb;a(Lnn;)Zintermediary method_10605Lnet/minecraft/class_2499;method_10605(Lnet/minecraft/class_2520;)Znamed canAddLnet/minecraft/nbt/ListTag;canAdd(Lnet/minecraft/nbt/Tag;)Z
-
copy
public ListTag copy()
从接口复制的说明:TagCopies this NBT element.- 返回:
- the copied element
- Mappings:
Namespace Name Mixin selector official dLnb;d()Lnb;intermediary method_10612Lnet/minecraft/class_2499;method_10612()Lnet/minecraft/class_2499;named copyLnet/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 equalsLnb;equals(Ljava/lang/Object;)Zintermediary equalsLnet/minecraft/class_2499;equals(Ljava/lang/Object;)Znamed equalsLnet/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 hashCodeLnb;hashCode()Iintermediary hashCodeLnet/minecraft/class_2499;hashCode()Inamed hashCodeLnet/minecraft/nbt/ListTag;hashCode()I
-
accept
public void accept(NbtElementVisitor visitor)
- Mappings:
Namespace Name Mixin selector official aLnn;a(Lnr;)Vintermediary method_32289Lnet/minecraft/class_2520;method_32289(Lnet/minecraft/class_5627;)Vnamed acceptLnet/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_()Bintermediary method_10601Lnet/minecraft/class_2483;method_10601()Bnamed getHeldTypeLnet/minecraft/nbt/AbstractListTag;getHeldType()B
-
clear
public void clear()
- 指定者:
clear在接口中Collection<Tag>- 指定者:
clear在接口中List<Tag>- 覆盖:
clear在类中AbstractList<Tag>- Mappings:
Namespace Name Mixin selector official clearLnb;clear()Vintermediary clearLnet/minecraft/class_2499;clear()Vnamed clearLnet/minecraft/nbt/ListTag;clear()V
-
-