Package net.minecraft.util
Class NonNullList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
net.minecraft.util.NonNullList<E>
- All Implemented Interfaces:
 Iterable<E>,Collection<E>,List<E>
- 
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedNonNullList(List<E> p_i47327_1_, E p_i47327_2_)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclear()static <E> NonNullList<E>create()get(int p_get_1_) static <E> NonNullList<E>of(E p_193580_0_, E... p_193580_1_) remove(int p_remove_1_) intsize()static <E> NonNullList<E>withSize(int p_191197_0_, E p_191197_1_) Methods inherited from class java.util.AbstractList
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, 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, sort, spliterator, toArray, toArray 
- 
Field Details
- 
list
 - 
defaultValue
 
 - 
 - 
Constructor Details
- 
NonNullList
protected NonNullList() - 
NonNullList
 
 - 
 - 
Method Details
- 
create
 - 
withSize
 - 
of
 - 
get
 - 
set
 - 
add
 - 
remove
 - 
size
public int size()- Specified by:
 sizein interfaceCollection<E>- Specified by:
 sizein interfaceList<E>- Specified by:
 sizein classAbstractCollection<E>
 - 
clear
public void clear()- Specified by:
 clearin interfaceCollection<E>- Specified by:
 clearin interfaceList<E>- Overrides:
 clearin classAbstractList<E>
 
 -