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>
public class DefaultedList<E> extends AbstractList<E>
- Mappings:
Namespace Name official gj
intermediary net/minecraft/class_2371
named net/minecraft/util/collection/DefaultedList
-
Field Summary
Fields Modifier and Type Field Description private List<E>
delegate
private E
initialElement
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultedList()
protected
DefaultedList(List<E> delegate, E initialElement)
-
Method Summary
Modifier and Type Method Description void
add(int value, E element)
void
clear()
static <E> DefaultedList<E>
copyOf(E defaultValue, E[] values)
E
get(int index)
static <E> DefaultedList<E>
of()
static <E> DefaultedList<E>
ofSize(int size, E defaultValue)
E
remove(int index)
E
set(int index, E element)
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
Lgj;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
Lgj;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
protected DefaultedList() -
DefaultedList
- Mappings:
Namespace Name Mixin selector official <init>
Lgj;<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
Lgj;a()Lgj;
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
Lgj;a(ILjava/lang/Object;)Lgj;
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
Lgj;a(Ljava/lang/Object;[Ljava/lang/Object;)Lgj;
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
Lgj;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
Lgj;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
Lgj;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
Lgj;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>
- Mappings:
Namespace Name Mixin selector official size
Lgj;size()I
intermediary size
Lnet/minecraft/class_2371;size()I
named size
Lnet/minecraft/util/collection/DefaultedList;size()I
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<E>
- Specified by:
clear
in interfaceList<E>
- Overrides:
clear
in classAbstractList<E>
- Mappings:
Namespace Name Mixin selector official clear
Lgj;clear()V
intermediary clear
Lnet/minecraft/class_2371;clear()V
named clear
Lnet/minecraft/util/collection/DefaultedList;clear()V
-