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 ahd
intermediary net/minecraft/class_3538
named net/minecraft/util/collection/ReusableStream
  • Field Details

    • collectedElements

      final List<T> collectedElements
      Mappings:
      Namespace Name Mixin selector
      official a Lahd;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

      final Spliterator<T> source
      Mappings:
      Namespace Name Mixin selector
      official b Lahd;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

      public ReusableStream(Stream<T> stream)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lahd;<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

      public Stream<T> stream()
      Mappings:
      Namespace Name Mixin selector
      official a Lahd;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;