2020-03-17 19:04:34 -04:00
|
|
|
CLASS net/minecraft/class_3509 net/minecraft/util/collection/TypeFilterableList
|
2021-02-10 14:35:29 -05:00
|
|
|
COMMENT A collection allowing getting all elements of a specific type. Backed
|
|
|
|
COMMENT by {@link java.util.ArrayList}s.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>This implementation is not efficient for frequent modifications. You
|
|
|
|
COMMENT shouldn't use this if you don't call {@link #getAllOfType(Class)}.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #getAllOfType(Class)
|
|
|
|
COMMENT @param <T> the {@link #elementType common element type}
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_15635 allElements Ljava/util/List;
|
|
|
|
FIELD field_15636 elementsByType Ljava/util/Map;
|
|
|
|
FIELD field_15637 elementType Ljava/lang/Class;
|
2018-12-29 06:43:20 -05:00
|
|
|
METHOD <init> (Ljava/lang/Class;)V
|
|
|
|
ARG 1 elementType
|
|
|
|
METHOD add (Ljava/lang/Object;)Z
|
|
|
|
ARG 1 e
|
|
|
|
METHOD contains (Ljava/lang/Object;)Z
|
2021-02-10 14:35:29 -05:00
|
|
|
COMMENT {@inheritDoc}
|
|
|
|
COMMENT
|
|
|
|
COMMENT @throws IllegalArgumentException if {@code o} is not an instance of
|
|
|
|
COMMENT {@link #elementType}
|
2018-12-29 06:43:20 -05:00
|
|
|
ARG 1 o
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_15216 getAllOfType (Ljava/lang/Class;)Ljava/util/Collection;
|
2021-02-10 14:35:29 -05:00
|
|
|
COMMENT Returns all elements in this collection that are instances of {@code type}.
|
|
|
|
COMMENT The result is unmodifiable.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>The {@code type}, or {@code S}, must extend the class' type parameter {@code T}.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @param <S> the specialized type, effectively {@code S extends T}
|
|
|
|
COMMENT @throws IllegalArgumentException when {@code type} does not extend
|
|
|
|
COMMENT {@link #elementType}
|
|
|
|
COMMENT @return this collection's elements that are instances of {@code type}
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 1 type
|
2021-02-10 14:35:29 -05:00
|
|
|
COMMENT the specialized type, must extend {@link #elementType}
|
2021-03-21 09:13:33 -04:00
|
|
|
METHOD method_15217 (Ljava/lang/Class;)Ljava/util/List;
|
|
|
|
ARG 1 typeClass
|
2021-04-05 06:30:17 -04:00
|
|
|
METHOD method_34897 copy ()Ljava/util/List;
|
2018-12-29 06:43:20 -05:00
|
|
|
METHOD remove (Ljava/lang/Object;)Z
|
|
|
|
ARG 1 o
|