Package net.minecraft.core
Class NonNullList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
net.minecraft.core.NonNullList<E>
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,List<E>
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clear()
static <E> NonNullList<E>
create()
static <E> NonNullList<E>
createWithCapacity(int p_182648_)
get(int p_122791_)
static <E> NonNullList<E>
of(E p_122784_, E... p_122785_)
remove(int p_122793_)
int
size()
static <E> NonNullList<E>
withSize(int p_122781_, E p_122782_)
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
-
list
-
defaultValue
-
-
Constructor Details
-
NonNullList
-
-
Method Details
-
create
-
createWithCapacity
-
withSize
-
of
-
get
-
set
-
add
-
remove
-
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>
-