Package net.minecraft.nbt
Class ListTag
public class ListTag extends AbstractListTag<Tag>
- Mappings:
Namespace Name official mw
intermediary net/minecraft/class_2499
named net/minecraft/nbt/ListTag
-
Field Summary
Fields Modifier and Type Field Description static TagReader<ListTag>
READER
private byte
type
private List<Tag>
value
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
accept(NbtTagVisitor visitor)
void
add(int int2, Tag tag)
boolean
addTag(int index, Tag tag)
private boolean
canAdd(Tag tag)
void
clear()
ListTag
copy()
boolean
equals(Object o)
private void
forgetTypeIfEmpty()
Tag
get(int int2)
CompoundTag
getCompound(int index)
double
getDouble(int index)
byte
getElementType()
float
getFloat(int index)
int
getInt(int index)
int[]
getIntArray(int index)
ListTag
getList(int index)
TagReader<ListTag>
getReader()
short
getShort(int index)
String
getString(int index)
byte
getType()
int
hashCode()
boolean
isEmpty()
Tag
remove(int int2)
Tag
set(int int2, Tag tag)
boolean
setTag(int index, Tag tag)
int
size()
String
toString()
void
write(DataOutput output)
Methods inherited from class java.util.AbstractList
add, addAll, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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 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
- 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
- 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
- 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
- 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
- Specified by:
toString
in interfaceTag
- Overrides:
toString
in classAbstractCollection<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
- Specified by:
remove
in interfaceList<Tag>
- Specified by:
remove
in classAbstractListTag<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 interfaceCollection<Tag>
- Specified by:
isEmpty
in interfaceList<Tag>
- Overrides:
isEmpty
in classAbstractCollection<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
- 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
- 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
- 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 interfaceCollection<Tag>
- Specified by:
size
in interfaceList<Tag>
- Specified by:
size
in classAbstractCollection<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
- Specified by:
get
in interfaceList<Tag>
- Specified by:
get
in classAbstractList<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
- Specified by:
set
in interfaceList<Tag>
- Specified by:
set
in classAbstractListTag<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
- Specified by:
add
in interfaceList<Tag>
- Specified by:
add
in classAbstractListTag<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
- Specified by:
setTag
in classAbstractListTag<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
- Specified by:
addTag
in classAbstractListTag<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
- 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
- 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
- Specified by:
equals
in interfaceCollection<Tag>
- Specified by:
equals
in interfaceList<Tag>
- Overrides:
equals
in classAbstractList<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 interfaceCollection<Tag>
- Specified by:
hashCode
in interfaceList<Tag>
- Overrides:
hashCode
in classAbstractList<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
- 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 classAbstractListTag<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 interfaceCollection<Tag>
- Specified by:
clear
in interfaceList<Tag>
- Overrides:
clear
in classAbstractList<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
-