Package net.minecraft.util.collection
Class ReusableStream<T>
java.lang.Object
net.minecraft.util.collection.ReusableStream<T>
public class ReusableStream<T> extends Object
A wrapper that automatically flattens the original stream and provides duplicates iterating a copy of that stream's output.
- Mappings:
Namespace Name official age
intermediary net/minecraft/class_3538
named net/minecraft/util/collection/ReusableStream
-
Field Summary
Fields Modifier and Type Field Description private List<T>
collectedElements
private Spliterator<T>
source
-
Constructor Summary
Constructors Constructor Description ReusableStream(Stream<T> stream)
-
Method Summary
-
Field Details
-
collectedElements
- Mappings:
Namespace Name Mixin selector official a
Lage;a:Ljava/util/List;
intermediary field_15745
Lnet/minecraft/class_3538;field_15745:Ljava/util/List;
named collectedElements
Lnet/minecraft/util/collection/ReusableStream;collectedElements:Ljava/util/List;
-
source
- Mappings:
Namespace Name Mixin selector official b
Lage;b:Ljava/util/Spliterator;
intermediary field_15746
Lnet/minecraft/class_3538;field_15746:Ljava/util/Spliterator;
named source
Lnet/minecraft/util/collection/ReusableStream;source:Ljava/util/Spliterator;
-
-
Constructor Details
-
ReusableStream
- Mappings:
Namespace Name Mixin selector official <init>
Lage;<init>(Ljava/util/stream/Stream;)V
intermediary <init>
Lnet/minecraft/class_3538;<init>(Ljava/util/stream/Stream;)V
named <init>
Lnet/minecraft/util/collection/ReusableStream;<init>(Ljava/util/stream/Stream;)V
-
-
Method Details
-
stream
- Mappings:
Namespace Name Mixin selector official a
Lage;a()Ljava/util/stream/Stream;
intermediary method_15418
Lnet/minecraft/class_3538;method_15418()Ljava/util/stream/Stream;
named stream
Lnet/minecraft/util/collection/ReusableStream;stream()Ljava/util/stream/Stream;
-