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>
,SequencedCollection<E>
- Mappings:
Namespace Name named net/minecraft/util/collection/DefaultedList
intermediary net/minecraft/class_2371
official js
-
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, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Field Details
-
delegate
- Mappings:
Namespace Name Mixin selector named delegate
Lnet/minecraft/util/collection/DefaultedList;delegate:Ljava/util/List;
intermediary field_11115
Lnet/minecraft/class_2371;field_11115:Ljava/util/List;
official a
Ljs;a:Ljava/util/List;
-
initialElement
- Mappings:
Namespace Name Mixin selector named initialElement
Lnet/minecraft/util/collection/DefaultedList;initialElement:Ljava/lang/Object;
intermediary field_11116
Lnet/minecraft/class_2371;field_11116:Ljava/lang/Object;
official b
Ljs;b:Ljava/lang/Object;
-
-
Constructor Details
-
DefaultedList
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/util/collection/DefaultedList;<init>(Ljava/util/List;Ljava/lang/Object;)V
intermediary <init>
Lnet/minecraft/class_2371;<init>(Ljava/util/List;Ljava/lang/Object;)V
official <init>
Ljs;<init>(Ljava/util/List;Ljava/lang/Object;)V
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector named of
Lnet/minecraft/util/collection/DefaultedList;of()Lnet/minecraft/util/collection/DefaultedList;
intermediary method_10211
Lnet/minecraft/class_2371;method_10211()Lnet/minecraft/class_2371;
official a
Ljs;a()Ljs;
-
ofSize
- Mappings:
Namespace Name Mixin selector named ofSize
Lnet/minecraft/util/collection/DefaultedList;ofSize(I)Lnet/minecraft/util/collection/DefaultedList;
intermediary method_37434
Lnet/minecraft/class_2371;method_37434(I)Lnet/minecraft/class_2371;
official a
Ljs;a(I)Ljs;
-
ofSize
- Mappings:
Namespace Name Mixin selector named ofSize
Lnet/minecraft/util/collection/DefaultedList;ofSize(ILjava/lang/Object;)Lnet/minecraft/util/collection/DefaultedList;
intermediary method_10213
Lnet/minecraft/class_2371;method_10213(ILjava/lang/Object;)Lnet/minecraft/class_2371;
official a
Ljs;a(ILjava/lang/Object;)Ljs;
-
copyOf
- Mappings:
Namespace Name Mixin selector named copyOf
Lnet/minecraft/util/collection/DefaultedList;copyOf(Ljava/lang/Object;[Ljava/lang/Object;)Lnet/minecraft/util/collection/DefaultedList;
intermediary method_10212
Lnet/minecraft/class_2371;method_10212(Ljava/lang/Object;[Ljava/lang/Object;)Lnet/minecraft/class_2371;
official a
Ljs;a(Ljava/lang/Object;[Ljava/lang/Object;)Ljs;
-
get
- Specified by:
get
in interfaceList<E>
- Specified by:
get
in classAbstractList<E>
- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/util/collection/DefaultedList;get(I)Ljava/lang/Object;
intermediary get
Lnet/minecraft/class_2371;get(I)Ljava/lang/Object;
official get
Ljs;get(I)Ljava/lang/Object;
-
set
- Specified by:
set
in interfaceList<E>
- Overrides:
set
in classAbstractList<E>
- Mappings:
Namespace Name Mixin selector named set
Lnet/minecraft/util/collection/DefaultedList;set(ILjava/lang/Object;)Ljava/lang/Object;
intermediary set
Lnet/minecraft/class_2371;set(ILjava/lang/Object;)Ljava/lang/Object;
official set
Ljs;set(ILjava/lang/Object;)Ljava/lang/Object;
-
add
- Specified by:
add
in interfaceList<E>
- Overrides:
add
in classAbstractList<E>
- Mappings:
Namespace Name Mixin selector named add
Lnet/minecraft/util/collection/DefaultedList;add(ILjava/lang/Object;)V
intermediary add
Lnet/minecraft/class_2371;add(ILjava/lang/Object;)V
official add
Ljs;add(ILjava/lang/Object;)V
-
remove
- Specified by:
remove
in interfaceList<E>
- Overrides:
remove
in classAbstractList<E>
- Mappings:
Namespace Name Mixin selector named remove
Lnet/minecraft/util/collection/DefaultedList;remove(I)Ljava/lang/Object;
intermediary remove
Lnet/minecraft/class_2371;remove(I)Ljava/lang/Object;
official remove
Ljs;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>
-