Package net.minecraft.nbt
Class AbstractNbtList<T extends NbtElement>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
net.minecraft.nbt.AbstractNbtList<T>
- All Implemented Interfaces:
- Iterable<T>,- Collection<T>,- List<T>,- NbtElement
- Direct Known Subclasses:
- NbtByteArray,- NbtIntArray,- NbtList,- NbtLongArray
public abstract class AbstractNbtList<T extends NbtElement>
extends AbstractList<T>
implements NbtElement
Represents an abstraction of a mutable NBT list which holds elements of the same type.
- Mappings:
- Namespace - Name - official - qq- intermediary - net/minecraft/class_2483- named - net/minecraft/nbt/AbstractNbtList
- 
Field SummaryFields inherited from class java.util.AbstractListmodCountFields inherited from interface net.minecraft.nbt.NbtElementBYTE_ARRAY_TYPE, BYTE_TYPE, COMPOUND_TYPE, DOUBLE_TYPE, END_TYPE, field_33246, field_33247, field_33248, field_33249, FLOAT_TYPE, INT_ARRAY_TYPE, INT_TYPE, LIST_TYPE, LONG_ARRAY_TYPE, LONG_TYPE, MAX_DEPTH, NUMBER_TYPE, SHORT_TYPE, STRING_TYPE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidabstract booleanaddElement(int index, NbtElement element) Insertselementatindex.abstract byteGets the type of element that this list holds.abstract Tremove(int int2) abstract Tabstract booleansetElement(int index, NbtElement element) Sets the element atindextoelement.Methods inherited from class java.util.AbstractListadd, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollectionaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.ListaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArrayMethods inherited from interface net.minecraft.nbt.NbtElementaccept, accept, asString, copy, doAccept, getNbtType, getSizeInBytes, getType, toString, write
- 
Constructor Details- 
AbstractNbtListpublic AbstractNbtList()
 
- 
- 
Method Details- 
set- Specified by:
- setin interface- List<T extends NbtElement>
- Overrides:
- setin class- AbstractList<T extends NbtElement>
- Mappings:
- Namespace - Name - Mixin selector - official - d- Lqq;d(ILrk;)Lrk;- intermediary - method_10606- Lnet/minecraft/class_2483;method_10606(ILnet/minecraft/class_2520;)Lnet/minecraft/class_2520;- named - set- Lnet/minecraft/nbt/AbstractNbtList;set(ILnet/minecraft/nbt/NbtElement;)Lnet/minecraft/nbt/NbtElement;
 
- 
add- Specified by:
- addin interface- List<T extends NbtElement>
- Overrides:
- addin class- AbstractList<T extends NbtElement>
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lqq;c(ILrk;)V- intermediary - method_10531- Lnet/minecraft/class_2483;method_10531(ILnet/minecraft/class_2520;)V- named - add- Lnet/minecraft/nbt/AbstractNbtList;add(ILnet/minecraft/nbt/NbtElement;)V
 
- 
remove- Specified by:
- removein interface- List<T extends NbtElement>
- Overrides:
- removein class- AbstractList<T extends NbtElement>
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lqq;c(I)Lrk;- intermediary - method_10536- Lnet/minecraft/class_2483;method_10536(I)Lnet/minecraft/class_2520;- named - remove- Lnet/minecraft/nbt/AbstractNbtList;remove(I)Lnet/minecraft/nbt/NbtElement;
 
- 
setElementSets the element atindextoelement. Does nothing if the types were incompatible.- Returns:
- whether the element was actually set
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lqq;a(ILrk;)Z- intermediary - method_10535- Lnet/minecraft/class_2483;method_10535(ILnet/minecraft/class_2520;)Z- named - setElement- Lnet/minecraft/nbt/AbstractNbtList;setElement(ILnet/minecraft/nbt/NbtElement;)Z
 
- 
addElementInsertselementatindex. Does nothing if the types were incompatible.- Returns:
- whether the element was actually added
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lqq;b(ILrk;)Z- intermediary - method_10533- Lnet/minecraft/class_2483;method_10533(ILnet/minecraft/class_2520;)Z- named - addElement- Lnet/minecraft/nbt/AbstractNbtList;addElement(ILnet/minecraft/nbt/NbtElement;)Z
 
- 
getHeldTypepublic abstract byte getHeldType()Gets the type of element that this list holds.- Returns:
- the type of element that this list holds
- Mappings:
- Namespace - Name - Mixin selector - official - f- Lqq;f()B- intermediary - method_10601- Lnet/minecraft/class_2483;method_10601()B- named - getHeldType- Lnet/minecraft/nbt/AbstractNbtList;getHeldType()B
 
 
-