Package net.minecraft.util.collection
Class TypeFilterableList<T>
java.lang.Object
java.util.AbstractCollection<T>
net.minecraft.util.collection.TypeFilterableList<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>
public class TypeFilterableList<T> extends AbstractCollection<T>
-
Field Summary
Fields Modifier and Type Field Description private List<T>allElementsprivate Map<Class<?>,List<T>>elementsByTypeprivate Class<T>elementType -
Constructor Summary
Constructors Constructor Description TypeFilterableList(Class<T> elementType) -
Method Summary
Methods inherited from class java.util.AbstractCollection
addAll, clear, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Field Details
-
elementsByType
-
elementType
-
allElements
-
-
Constructor Details
-
TypeFilterableList
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection<T>- Overrides:
addin classAbstractCollection<T>
-
remove
- Specified by:
removein interfaceCollection<T>- Overrides:
removein classAbstractCollection<T>
-
contains
- Specified by:
containsin interfaceCollection<T>- Overrides:
containsin classAbstractCollection<T>
-
getAllOfType
-
iterator
- Specified by:
iteratorin interfaceCollection<T>- Specified by:
iteratorin interfaceIterable<T>- Specified by:
iteratorin classAbstractCollection<T>
-
method_29903
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein classAbstractCollection<T>
-