Package net.minecraft.util.thread
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
- Mappings:
Namespace Name named net/minecraft/util/thread/AsyncHelper$Batchintermediary net/minecraft/class_10769$class_10770official bwa$a
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CompletableFuture<Map<K, V>> addLastTask(CompletableFuture<?> future, AsyncHelper.Future<K, U, V> entry) protected intgetLastIndex(int batch) protected CompletableFuture<?> private static <K,U, V> Runnable newTask(Map<K, V> futures, int size, int maxCount, AsyncHelper.Future<K, U, V> entry) Methods inherited from class net.minecraft.util.thread.AsyncHelper.Batcher
mapAsync
-
Field Details
-
entries
- Mappings:
Namespace Name Mixin selector named entriesLnet/minecraft/util/thread/AsyncHelper$Batch;entries:Ljava/util/Map;intermediary field_56618Lnet/minecraft/class_10769$class_10770;field_56618:Ljava/util/Map;official cLbwa$a;c:Ljava/util/Map;
-
size
private final int size- Mappings:
Namespace Name Mixin selector named sizeLnet/minecraft/util/thread/AsyncHelper$Batch;size:Iintermediary field_56619Lnet/minecraft/class_10769$class_10770;field_56619:Iofficial dLbwa$a;d:I
-
start
private final int start- Mappings:
Namespace Name Mixin selector named startLnet/minecraft/util/thread/AsyncHelper$Batch;start:Iintermediary field_56620Lnet/minecraft/class_10769$class_10770;field_56620:Iofficial eLbwa$a;e:I
-
-
Constructor Details
-
Batch
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)Vintermediary <init>Lnet/minecraft/class_10769$class_10773;<init>(Ljava/util/function/BiFunction;II)Vofficial <init>Lbwa$d;<init>(Ljava/util/function/BiFunction;II)V
-
-
Method Details
-
newBatch
protected CompletableFuture<?> newBatch(AsyncHelper.Future<K, U, V> futures, int size, int maxCount, Executor executor) - Specified by:
newBatchin classAsyncHelper.Batcher<K,U, V> - Mappings:
Namespace Name Mixin selector named newBatchLnet/minecraft/util/thread/AsyncHelper$Batcher;newBatch(Lnet/minecraft/util/thread/AsyncHelper$Future;IILjava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;intermediary method_67616Lnet/minecraft/class_10769$class_10773;method_67616(Lnet/minecraft/class_10769$class_10771;IILjava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;official aLbwa$d;a(Lbwa$b;IILjava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
-
getLastIndex
protected int getLastIndex(int batch) - Specified by:
getLastIndexin classAsyncHelper.Batcher<K,U, V> - Mappings:
Namespace Name Mixin selector named getLastIndexLnet/minecraft/util/thread/AsyncHelper$Batcher;getLastIndex(I)Iintermediary method_67614Lnet/minecraft/class_10769$class_10773;method_67614(I)Iofficial aLbwa$d;a(I)I
-
newTask
private static <K,U, Runnable newTaskV> (Map<K, V> futures, int size, int maxCount, AsyncHelper.Future<K, U, V> entry) - Mappings:
Namespace Name Mixin selector named newTaskLnet/minecraft/util/thread/AsyncHelper$Batch;newTask(Ljava/util/Map;IILnet/minecraft/util/thread/AsyncHelper$Future;)Ljava/lang/Runnable;intermediary method_67617Lnet/minecraft/class_10769$class_10770;method_67617(Ljava/util/Map;IILnet/minecraft/class_10769$class_10771;)Ljava/lang/Runnable;official aLbwa$a;a(Ljava/util/Map;IILbwa$b;)Ljava/lang/Runnable;
-
addLastTask
protected CompletableFuture<Map<K,V>> addLastTask(CompletableFuture<?> future, AsyncHelper.Future<K, U, V> entry) - Specified by:
addLastTaskin classAsyncHelper.Batcher<K,U, V> - Mappings:
Namespace Name Mixin selector named addLastTaskLnet/minecraft/util/thread/AsyncHelper$Batcher;addLastTask(Ljava/util/concurrent/CompletableFuture;Lnet/minecraft/util/thread/AsyncHelper$Future;)Ljava/util/concurrent/CompletableFuture;intermediary method_67619Lnet/minecraft/class_10769$class_10773;method_67619(Ljava/util/concurrent/CompletableFuture;Lnet/minecraft/class_10769$class_10771;)Ljava/util/concurrent/CompletableFuture;official aLbwa$d;a(Ljava/util/concurrent/CompletableFuture;Lbwa$b;)Ljava/util/concurrent/CompletableFuture;
-