Class AsyncHelper.Batch<K,U,V>

java.lang.Object
net.minecraft.util.thread.AsyncHelper.Batcher<K,U,V>
net.minecraft.util.thread.AsyncHelper.Batch<K,U,V>
Enclosing class:
AsyncHelper

private static class AsyncHelper.Batch<K,U,V> extends AsyncHelper.Batcher<K,U,V>
Mappings:
Namespace Name
named net/minecraft/util/thread/AsyncHelper$Batch
intermediary net/minecraft/class_10769$class_10770
official btt$a
  • Field Details Link icon

    • entries Link icon

      private final Map<K,V> entries
      Mappings:
      Namespace Name Mixin selector
      named entries Lnet/minecraft/util/thread/AsyncHelper$Batch;entries:Ljava/util/Map;
      intermediary field_56618 Lnet/minecraft/class_10769$class_10770;field_56618:Ljava/util/Map;
      official c Lbtt$a;c:Ljava/util/Map;
    • size Link icon

      private final int size
      Mappings:
      Namespace Name Mixin selector
      named size Lnet/minecraft/util/thread/AsyncHelper$Batch;size:I
      intermediary field_56619 Lnet/minecraft/class_10769$class_10770;field_56619:I
      official d Lbtt$a;d:I
    • start Link icon

      private final int start
      Mappings:
      Namespace Name Mixin selector
      named start Lnet/minecraft/util/thread/AsyncHelper$Batch;start:I
      intermediary field_56620 Lnet/minecraft/class_10769$class_10770;field_56620:I
      official e Lbtt$a;e:I
  • Constructor Details Link icon

    • Batch Link icon

      Batch(BiFunction<K,U,V> function, int size, int startAt)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/thread/AsyncHelper$Batcher;<init>(Ljava/util/function/BiFunction;II)V
      intermediary <init> Lnet/minecraft/class_10769$class_10773;<init>(Ljava/util/function/BiFunction;II)V
      official <init> Lbtt$d;<init>(Ljava/util/function/BiFunction;II)V
  • Method Details Link icon

    • newBatch Link icon

      protected CompletableFuture<?> newBatch(AsyncHelper.Future<K,U,V> futures, int size, int maxCount, Executor executor)
      Specified by:
      newBatch in class AsyncHelper.Batcher<K,U,V>
      Mappings:
      Namespace Name Mixin selector
      named newBatch Lnet/minecraft/util/thread/AsyncHelper$Batcher;newBatch(Lnet/minecraft/util/thread/AsyncHelper$Future;IILjava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_67616 Lnet/minecraft/class_10769$class_10773;method_67616(Lnet/minecraft/class_10769$class_10771;IILjava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      official a Lbtt$d;a(Lbtt$b;IILjava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
    • getLastIndex Link icon

      protected int getLastIndex(int batch)
      Specified by:
      getLastIndex in class AsyncHelper.Batcher<K,U,V>
      Mappings:
      Namespace Name Mixin selector
      named getLastIndex Lnet/minecraft/util/thread/AsyncHelper$Batcher;getLastIndex(I)I
      intermediary method_67614 Lnet/minecraft/class_10769$class_10773;method_67614(I)I
      official a Lbtt$d;a(I)I
    • newTask Link icon

      private static <K, U, V> Runnable newTask(Map<K,V> futures, int size, int maxCount, AsyncHelper.Future<K,U,V> entry)
      Mappings:
      Namespace Name Mixin selector
      named newTask Lnet/minecraft/util/thread/AsyncHelper$Batch;newTask(Ljava/util/Map;IILnet/minecraft/util/thread/AsyncHelper$Future;)Ljava/lang/Runnable;
      intermediary method_67617 Lnet/minecraft/class_10769$class_10770;method_67617(Ljava/util/Map;IILnet/minecraft/class_10769$class_10771;)Ljava/lang/Runnable;
      official a Lbtt$a;a(Ljava/util/Map;IILbtt$b;)Ljava/lang/Runnable;
    • addLastTask Link icon

      protected CompletableFuture<Map<K,V>> addLastTask(CompletableFuture<?> future, AsyncHelper.Future<K,U,V> entry)
      Specified by:
      addLastTask in class AsyncHelper.Batcher<K,U,V>
      Mappings:
      Namespace Name Mixin selector
      named addLastTask Lnet/minecraft/util/thread/AsyncHelper$Batcher;addLastTask(Ljava/util/concurrent/CompletableFuture;Lnet/minecraft/util/thread/AsyncHelper$Future;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_67619 Lnet/minecraft/class_10769$class_10773;method_67619(Ljava/util/concurrent/CompletableFuture;Lnet/minecraft/class_10769$class_10771;)Ljava/util/concurrent/CompletableFuture;
      official a Lbtt$d;a(Ljava/util/concurrent/CompletableFuture;Lbtt$b;)Ljava/util/concurrent/CompletableFuture;