Package net.minecraft.util.collection
Class DefaultedList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
net.minecraft.util.collection.DefaultedList<E>
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,List<E>
- Mappings:
Namespace Name official gt
intermediary net/minecraft/class_2371
named net/minecraft/util/collection/DefaultedList
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clear()
static <E> DefaultedList<E>
copyOf
(E defaultValue, E[] values) get
(int index) static <E> DefaultedList<E>
of()
static <E> DefaultedList<E>
ofSize
(int size) static <E> DefaultedList<E>
ofSize
(int size, E defaultValue) remove
(int index) int
size()
Methods inherited from class java.util.AbstractList
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
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, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
delegate
- Mappings:
Namespace Name Mixin selector official a
Lgt;a:Ljava/util/List;
intermediary field_11115
Lnet/minecraft/class_2371;field_11115:Ljava/util/List;
named delegate
Lnet/minecraft/util/collection/DefaultedList;delegate:Ljava/util/List;
-
initialElement
- Mappings:
Namespace Name Mixin selector official b
Lgt;b:Ljava/lang/Object;
intermediary field_11116
Lnet/minecraft/class_2371;field_11116:Ljava/lang/Object;
named initialElement
Lnet/minecraft/util/collection/DefaultedList;initialElement:Ljava/lang/Object;
-
-
Constructor Details
-
DefaultedList
- Mappings:
Namespace Name Mixin selector official <init>
Lgt;<init>(Ljava/util/List;Ljava/lang/Object;)V
intermediary <init>
Lnet/minecraft/class_2371;<init>(Ljava/util/List;Ljava/lang/Object;)V
named <init>
Lnet/minecraft/util/collection/DefaultedList;<init>(Ljava/util/List;Ljava/lang/Object;)V
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector official a
Lgt;a()Lgt;
intermediary method_10211
Lnet/minecraft/class_2371;method_10211()Lnet/minecraft/class_2371;
named of
Lnet/minecraft/util/collection/DefaultedList;of()Lnet/minecraft/util/collection/DefaultedList;
-
ofSize
- Mappings:
Namespace Name Mixin selector official a
Lgt;a(I)Lgt;
intermediary method_37434
Lnet/minecraft/class_2371;method_37434(I)Lnet/minecraft/class_2371;
named ofSize
Lnet/minecraft/util/collection/DefaultedList;ofSize(I)Lnet/minecraft/util/collection/DefaultedList;
-
ofSize
- Mappings:
Namespace Name Mixin selector official a
Lgt;a(ILjava/lang/Object;)Lgt;
intermediary method_10213
Lnet/minecraft/class_2371;method_10213(ILjava/lang/Object;)Lnet/minecraft/class_2371;
named ofSize
Lnet/minecraft/util/collection/DefaultedList;ofSize(ILjava/lang/Object;)Lnet/minecraft/util/collection/DefaultedList;
-
copyOf
- Mappings:
Namespace Name Mixin selector official a
Lgt;a(Ljava/lang/Object;[Ljava/lang/Object;)Lgt;
intermediary method_10212
Lnet/minecraft/class_2371;method_10212(Ljava/lang/Object;[Ljava/lang/Object;)Lnet/minecraft/class_2371;
named copyOf
Lnet/minecraft/util/collection/DefaultedList;copyOf(Ljava/lang/Object;[Ljava/lang/Object;)Lnet/minecraft/util/collection/DefaultedList;
-
get
- Specified by:
get
in interfaceList<E>
- Specified by:
get
in classAbstractList<E>
- Mappings:
Namespace Name Mixin selector official get
Lgt;get(I)Ljava/lang/Object;
intermediary get
Lnet/minecraft/class_2371;get(I)Ljava/lang/Object;
named get
Lnet/minecraft/util/collection/DefaultedList;get(I)Ljava/lang/Object;
-
set
- Specified by:
set
in interfaceList<E>
- Overrides:
set
in classAbstractList<E>
- Mappings:
Namespace Name Mixin selector official set
Lgt;set(ILjava/lang/Object;)Ljava/lang/Object;
intermediary set
Lnet/minecraft/class_2371;set(ILjava/lang/Object;)Ljava/lang/Object;
named set
Lnet/minecraft/util/collection/DefaultedList;set(ILjava/lang/Object;)Ljava/lang/Object;
-
add
- Specified by:
add
in interfaceList<E>
- Overrides:
add
in classAbstractList<E>
- Mappings:
Namespace Name Mixin selector official add
Lgt;add(ILjava/lang/Object;)V
intermediary add
Lnet/minecraft/class_2371;add(ILjava/lang/Object;)V
named add
Lnet/minecraft/util/collection/DefaultedList;add(ILjava/lang/Object;)V
-
remove
- Specified by:
remove
in interfaceList<E>
- Overrides:
remove
in classAbstractList<E>
- Mappings:
Namespace Name Mixin selector official remove
Lgt;remove(I)Ljava/lang/Object;
intermediary remove
Lnet/minecraft/class_2371;remove(I)Ljava/lang/Object;
named remove
Lnet/minecraft/util/collection/DefaultedList;remove(I)Ljava/lang/Object;
-
size
public int size()- Specified by:
size
in interfaceCollection<E>
- Specified by:
size
in interfaceList<E>
- Specified by:
size
in classAbstractCollection<E>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<E>
- Specified by:
clear
in interfaceList<E>
- Overrides:
clear
in classAbstractList<E>
-