Package net.minecraft.nbt
Class ListTag
public class ListTag extends AbstractListTag<Tag>
- Mappings:
Namespace Name official mwintermediary net/minecraft/class_2499named net/minecraft/nbt/ListTag
-
Field Summary
Fields Modifier and Type Field Description static TagReader<ListTag>READERprivate bytetypeprivate List<Tag>valueFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidaccept(NbtTagVisitor visitor)voidadd(int int2, Tag tag)booleanaddTag(int index, Tag tag)private booleancanAdd(Tag tag)voidclear()ListTagcopy()booleanequals(Object o)private voidforgetTypeIfEmpty()Tagget(int int2)CompoundTaggetCompound(int index)doublegetDouble(int index)bytegetElementType()floatgetFloat(int index)intgetInt(int index)int[]getIntArray(int index)ListTaggetList(int index)TagReader<ListTag>getReader()shortgetShort(int index)StringgetString(int index)bytegetType()inthashCode()booleanisEmpty()Tagremove(int int2)Tagset(int int2, Tag tag)booleansetTag(int index, Tag tag)intsize()StringtoString()voidwrite(DataOutput output)Methods inherited from class java.util.AbstractList
add, addAll, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, contains, containsAll, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
READER
- Mappings:
Namespace Name Mixin selector official aLmw;a:Lnk;intermediary field_21039Lnet/minecraft/class_2499;field_21039:Lnet/minecraft/class_4614;named READERLnet/minecraft/nbt/ListTag;READER:Lnet/minecraft/nbt/TagReader;
-
value
- Mappings:
Namespace Name Mixin selector official bLmw;b: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 cLmw;c:Bintermediary field_11551Lnet/minecraft/class_2499;field_11551:Bnamed typeLnet/minecraft/nbt/ListTag;type:B
-
-
Constructor Details
-
ListTag
- Mappings:
Namespace Name Mixin selector official <init>Lmw;<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()
-
-
Method Details
-
write
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLni;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()- Mappings:
Namespace Name Mixin selector official aLni;a()Bintermediary method_10711Lnet/minecraft/class_2520;method_10711()Bnamed getTypeLnet/minecraft/nbt/Tag;getType()B
-
getReader
- Mappings:
Namespace Name Mixin selector official bLni;b()Lnk;intermediary method_23258Lnet/minecraft/class_2520;method_23258()Lnet/minecraft/class_4614;named getReaderLnet/minecraft/nbt/Tag;getReader()Lnet/minecraft/nbt/TagReader;
-
toString
- Specified by:
toStringin interfaceTag- Overrides:
toStringin classAbstractCollection<Tag>- Mappings:
Namespace Name Mixin selector official toStringLni;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 fLmw;f()Vintermediary method_17809Lnet/minecraft/class_2499;method_17809()Vnamed forgetTypeIfEmptyLnet/minecraft/nbt/ListTag;forgetTypeIfEmpty()V
-
remove
- Specified by:
removein interfaceList<Tag>- Specified by:
removein classAbstractListTag<Tag>- Mappings:
Namespace Name Mixin selector official method_10536Lmw;method_10536(I)Lni;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()- Specified by:
isEmptyin interfaceCollection<Tag>- Specified by:
isEmptyin interfaceList<Tag>- Overrides:
isEmptyin classAbstractCollection<Tag>- Mappings:
Namespace Name Mixin selector official isEmptyLmw;isEmpty()Zintermediary isEmptyLnet/minecraft/class_2499;isEmpty()Znamed isEmptyLnet/minecraft/nbt/ListTag;isEmpty()Z
-
getCompound
- Mappings:
Namespace Name Mixin selector official aLmw;a(I)Lmq;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
- Mappings:
Namespace Name Mixin selector official bLmw;b(I)Lmw;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 dLmw;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 eLmw;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 fLmw;f(I)[Iintermediary method_10610Lnet/minecraft/class_2499;method_10610(I)[Inamed getIntArrayLnet/minecraft/nbt/ListTag;getIntArray(I)[I
-
getDouble
public double getDouble(int index)- Mappings:
Namespace Name Mixin selector official hLmw;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 iLmw;i(I)Fintermediary method_10604Lnet/minecraft/class_2499;method_10604(I)Fnamed getFloatLnet/minecraft/nbt/ListTag;getFloat(I)F
-
getString
- Mappings:
Namespace Name Mixin selector official jLmw;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()- Specified by:
sizein interfaceCollection<Tag>- Specified by:
sizein interfaceList<Tag>- Specified by:
sizein classAbstractCollection<Tag>- Mappings:
Namespace Name Mixin selector official sizeLmw;size()Iintermediary sizeLnet/minecraft/class_2499;size()Inamed sizeLnet/minecraft/nbt/ListTag;size()I
-
get
- Specified by:
getin interfaceList<Tag>- Specified by:
getin classAbstractList<Tag>- Mappings:
Namespace Name Mixin selector official kLmw;k(I)Lni;intermediary method_10534Lnet/minecraft/class_2499;method_10534(I)Lnet/minecraft/class_2520;named getLnet/minecraft/nbt/ListTag;get(I)Lnet/minecraft/nbt/Tag;
-
set
- Specified by:
setin interfaceList<Tag>- Specified by:
setin classAbstractListTag<Tag>- Mappings:
Namespace Name Mixin selector official method_10606Lmw;method_10606(ILni;)Lni;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
- Specified by:
addin interfaceList<Tag>- Specified by:
addin classAbstractListTag<Tag>- Mappings:
Namespace Name Mixin selector official method_10531Lmw;method_10531(ILni;)Vintermediary method_10531Lnet/minecraft/class_2499;method_10531(ILnet/minecraft/class_2520;)Vnamed addLnet/minecraft/nbt/ListTag;add(ILnet/minecraft/nbt/Tag;)V
-
setTag
- Specified by:
setTagin classAbstractListTag<Tag>- Mappings:
Namespace Name Mixin selector official aLmp;a(ILni;)Zintermediary method_10535Lnet/minecraft/class_2483;method_10535(ILnet/minecraft/class_2520;)Znamed setTagLnet/minecraft/nbt/AbstractListTag;setTag(ILnet/minecraft/nbt/Tag;)Z
-
addTag
- Specified by:
addTagin classAbstractListTag<Tag>- Mappings:
Namespace Name Mixin selector official bLmp;b(ILni;)Zintermediary method_10533Lnet/minecraft/class_2483;method_10533(ILnet/minecraft/class_2520;)Znamed addTagLnet/minecraft/nbt/AbstractListTag;addTag(ILnet/minecraft/nbt/Tag;)Z
-
canAdd
- Mappings:
Namespace Name Mixin selector official aLmw;a(Lni;)Zintermediary method_10605Lnet/minecraft/class_2499;method_10605(Lnet/minecraft/class_2520;)Znamed canAddLnet/minecraft/nbt/ListTag;canAdd(Lnet/minecraft/nbt/Tag;)Z
-
copy
- Mappings:
Namespace Name Mixin selector official dLmw;d()Lmw;intermediary method_10612Lnet/minecraft/class_2499;method_10612()Lnet/minecraft/class_2499;named copyLnet/minecraft/nbt/ListTag;copy()Lnet/minecraft/nbt/ListTag;
-
equals
- Specified by:
equalsin interfaceCollection<Tag>- Specified by:
equalsin interfaceList<Tag>- Overrides:
equalsin classAbstractList<Tag>- Mappings:
Namespace Name Mixin selector official equalsLmw;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()- Specified by:
hashCodein interfaceCollection<Tag>- Specified by:
hashCodein interfaceList<Tag>- Overrides:
hashCodein classAbstractList<Tag>- Mappings:
Namespace Name Mixin selector official hashCodeLmw;hashCode()Iintermediary hashCodeLnet/minecraft/class_2499;hashCode()Inamed hashCodeLnet/minecraft/nbt/ListTag;hashCode()I
-
accept
- Mappings:
Namespace Name Mixin selector official aLni;a(Lnm;)Vintermediary method_32289Lnet/minecraft/class_2520;method_32289(Lnet/minecraft/class_5627;)Vnamed acceptLnet/minecraft/nbt/Tag;accept(Lnet/minecraft/nbt/visitor/NbtTagVisitor;)V
-
getElementType
public byte getElementType()- Specified by:
getElementTypein classAbstractListTag<Tag>- Mappings:
Namespace Name Mixin selector official e_Lmp;e_()Bintermediary method_10601Lnet/minecraft/class_2483;method_10601()Bnamed getElementTypeLnet/minecraft/nbt/AbstractListTag;getElementType()B
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Tag>- Specified by:
clearin interfaceList<Tag>- Overrides:
clearin classAbstractList<Tag>- Mappings:
Namespace Name Mixin selector official clearLmw;clear()Vintermediary clearLnet/minecraft/class_2499;clear()Vnamed clearLnet/minecraft/nbt/ListTag;clear()V
-