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>
- Mappings:
Namespace Name official afjintermediary net/minecraft/class_3509named net/minecraft/util/collection/TypeFilterableList
-
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
- Mappings:
Namespace Name Mixin selector official aLafj;a:Ljava/util/Map;intermediary field_15636Lnet/minecraft/class_3509;field_15636:Ljava/util/Map;named elementsByTypeLnet/minecraft/util/collection/TypeFilterableList;elementsByType:Ljava/util/Map;
-
elementType
- Mappings:
Namespace Name Mixin selector official bLafj;b:Ljava/lang/Class;intermediary field_15637Lnet/minecraft/class_3509;field_15637:Ljava/lang/Class;named elementTypeLnet/minecraft/util/collection/TypeFilterableList;elementType:Ljava/lang/Class;
-
allElements
- Mappings:
Namespace Name Mixin selector official cLafj;c:Ljava/util/List;intermediary field_15635Lnet/minecraft/class_3509;field_15635:Ljava/util/List;named allElementsLnet/minecraft/util/collection/TypeFilterableList;allElements:Ljava/util/List;
-
-
Constructor Details
-
TypeFilterableList
- Mappings:
Namespace Name Mixin selector official <init>Lafj;<init>(Ljava/lang/Class;)Vintermediary <init>Lnet/minecraft/class_3509;<init>(Ljava/lang/Class;)Vnamed <init>Lnet/minecraft/util/collection/TypeFilterableList;<init>(Ljava/lang/Class;)V
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection<T>- Overrides:
addin classAbstractCollection<T>- Mappings:
Namespace Name Mixin selector official addLafj;add(Ljava/lang/Object;)Zintermediary addLnet/minecraft/class_3509;add(Ljava/lang/Object;)Znamed addLnet/minecraft/util/collection/TypeFilterableList;add(Ljava/lang/Object;)Z
-
remove
- Specified by:
removein interfaceCollection<T>- Overrides:
removein classAbstractCollection<T>- Mappings:
Namespace Name Mixin selector official removeLafj;remove(Ljava/lang/Object;)Zintermediary removeLnet/minecraft/class_3509;remove(Ljava/lang/Object;)Znamed removeLnet/minecraft/util/collection/TypeFilterableList;remove(Ljava/lang/Object;)Z
-
contains
- Specified by:
containsin interfaceCollection<T>- Overrides:
containsin classAbstractCollection<T>- Mappings:
Namespace Name Mixin selector official containsLafj;contains(Ljava/lang/Object;)Zintermediary containsLnet/minecraft/class_3509;contains(Ljava/lang/Object;)Znamed containsLnet/minecraft/util/collection/TypeFilterableList;contains(Ljava/lang/Object;)Z
-
getAllOfType
- Mappings:
Namespace Name Mixin selector official aLafj;a(Ljava/lang/Class;)Ljava/util/Collection;intermediary method_15216Lnet/minecraft/class_3509;method_15216(Ljava/lang/Class;)Ljava/util/Collection;named getAllOfTypeLnet/minecraft/util/collection/TypeFilterableList;getAllOfType(Ljava/lang/Class;)Ljava/util/Collection;
-
iterator
- Specified by:
iteratorin interfaceCollection<T>- Specified by:
iteratorin interfaceIterable<T>- Specified by:
iteratorin classAbstractCollection<T>- Mappings:
Namespace Name Mixin selector official iteratorLafj;iterator()Ljava/util/Iterator;intermediary iteratorLnet/minecraft/class_3509;iterator()Ljava/util/Iterator;named iteratorLnet/minecraft/util/collection/TypeFilterableList;iterator()Ljava/util/Iterator;
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein classAbstractCollection<T>- Mappings:
Namespace Name Mixin selector official sizeLafj;size()Iintermediary sizeLnet/minecraft/class_3509;size()Inamed sizeLnet/minecraft/util/collection/TypeFilterableList;size()I
-