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 qeintermediary net/minecraft/class_2483named net/minecraft/nbt/AbstractNbtList
-
Field Summary
Fields inherited from class java.util.AbstractList
modCountFields inherited from interface net.minecraft.nbt.NbtElement
BYTE_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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanaddElement(int index, NbtElement element) Insertselementatindex.abstract byteGets the type of element that this list holds.abstract voidmethod_10531(int int2, T t) abstract Tmethod_10536(int int2) abstract Tmethod_10606(int int2, T t) abstract booleansetElement(int index, NbtElement element) Sets the element atindextoelement.Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toStringMethods 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, isEmpty, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArrayMethods inherited from interface net.minecraft.nbt.NbtElement
accept, accept, asString, copy, doAccept, getNbtType, getType, toString, write
-
Constructor Details
-
AbstractNbtList
public AbstractNbtList()
-
-
Method Details
-
method_10606
- Mappings:
Namespace Name Mixin selector official dLqe;d(ILqy;)Lqy;intermediary method_10606Lnet/minecraft/class_2483;method_10606(ILnet/minecraft/class_2520;)Lnet/minecraft/class_2520;named method_10606Lnet/minecraft/nbt/AbstractNbtList;method_10606(ILnet/minecraft/nbt/NbtElement;)Lnet/minecraft/nbt/NbtElement;
-
method_10531
- Mappings:
Namespace Name Mixin selector official cLqe;c(ILqy;)Vintermediary method_10531Lnet/minecraft/class_2483;method_10531(ILnet/minecraft/class_2520;)Vnamed method_10531Lnet/minecraft/nbt/AbstractNbtList;method_10531(ILnet/minecraft/nbt/NbtElement;)V
-
method_10536
- Mappings:
Namespace Name Mixin selector official cLqe;c(I)Lqy;intermediary method_10536Lnet/minecraft/class_2483;method_10536(I)Lnet/minecraft/class_2520;named method_10536Lnet/minecraft/nbt/AbstractNbtList;method_10536(I)Lnet/minecraft/nbt/NbtElement;
-
setElement
Sets the element atindextoelement. Does nothing if the types were incompatible.- Returns:
- whether the element was actually set
- Mappings:
Namespace Name Mixin selector official aLqe;a(ILqy;)Zintermediary method_10535Lnet/minecraft/class_2483;method_10535(ILnet/minecraft/class_2520;)Znamed setElementLnet/minecraft/nbt/AbstractNbtList;setElement(ILnet/minecraft/nbt/NbtElement;)Z
-
addElement
Insertselementatindex. Does nothing if the types were incompatible.- Returns:
- whether the element was actually added
- Mappings:
Namespace Name Mixin selector official bLqe;b(ILqy;)Zintermediary method_10533Lnet/minecraft/class_2483;method_10533(ILnet/minecraft/class_2520;)Znamed addElementLnet/minecraft/nbt/AbstractNbtList;addElement(ILnet/minecraft/nbt/NbtElement;)Z
-
getHeldType
public 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 eLqe;e()Bintermediary method_10601Lnet/minecraft/class_2483;method_10601()Bnamed getHeldTypeLnet/minecraft/nbt/AbstractNbtList;getHeldType()B
-