Package net.minecraft.util.thread
Class AsyncHelper.Batcher<K,U,V>
java.lang.Object
net.minecraft.util.thread.AsyncHelper.Batcher<K,U,V>
- Direct Known Subclasses:
AsyncHelper.Batch,AsyncHelper.Single
- Enclosing class:
AsyncHelper
- Mappings:
Namespace Name named net/minecraft/util/thread/AsyncHelper$Batcherintermediary net/minecraft/class_10769$class_10773official bwa$d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final AsyncHelper.Future<K, U, V> private final CompletableFuture<?>[]private intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract CompletableFuture<Map<K, V>> addLastTask(CompletableFuture<?> future, AsyncHelper.Future<K, U, V> entry) protected abstract intgetLastIndex(int batch) protected abstract CompletableFuture<?> private intnextSize()
-
Field Details
-
lastBatch
private int lastBatch- Mappings:
Namespace Name Mixin selector named lastBatchLnet/minecraft/util/thread/AsyncHelper$Batcher;lastBatch:Iintermediary field_56622Lnet/minecraft/class_10769$class_10773;field_56622:Iofficial aLbwa$d;a:I
-
index
private int index- Mappings:
Namespace Name Mixin selector named indexLnet/minecraft/util/thread/AsyncHelper$Batcher;index:Iintermediary field_56624Lnet/minecraft/class_10769$class_10773;field_56624:Iofficial cLbwa$d;c:I
-
futures
- Mappings:
Namespace Name Mixin selector named futuresLnet/minecraft/util/thread/AsyncHelper$Batcher;futures:[Ljava/util/concurrent/CompletableFuture;intermediary field_56625Lnet/minecraft/class_10769$class_10773;field_56625:[Ljava/util/concurrent/CompletableFuture;official dLbwa$d;d:[Ljava/util/concurrent/CompletableFuture;
-
batch
private int batch- Mappings:
Namespace Name Mixin selector named batchLnet/minecraft/util/thread/AsyncHelper$Batcher;batch:Iintermediary field_56626Lnet/minecraft/class_10769$class_10773;field_56626:Iofficial eLbwa$d;e:I
-
entry
- Mappings:
Namespace Name Mixin selector named entryLnet/minecraft/util/thread/AsyncHelper$Batcher;entry:Lnet/minecraft/util/thread/AsyncHelper$Future;intermediary field_56627Lnet/minecraft/class_10769$class_10773;field_56627:Lnet/minecraft/class_10769$class_10771;official fLbwa$d;f:Lbwa$b;
-
-
Constructor Details
-
Batcher
Batcher(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
-
nextSize
private int nextSize()- Mappings:
Namespace Name Mixin selector named nextSizeLnet/minecraft/util/thread/AsyncHelper$Batcher;nextSize()Iintermediary method_67629Lnet/minecraft/class_10769$class_10773;method_67629()Iofficial aLbwa$d;a()I
-
mapAsync
- Mappings:
Namespace Name Mixin selector named mapAsyncLnet/minecraft/util/thread/AsyncHelper$Batcher;mapAsync(Ljava/util/Map;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;intermediary method_67630Lnet/minecraft/class_10769$class_10773;method_67630(Ljava/util/Map;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;official aLbwa$d;a(Ljava/util/Map;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
-
getLastIndex
protected abstract int getLastIndex(int batch) - 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
-
newBatch
protected abstract CompletableFuture<?> newBatch(AsyncHelper.Future<K, U, V> futures, int size, int maxCount, Executor executor) - 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;
-
addLastTask
protected abstract CompletableFuture<Map<K,V>> addLastTask(CompletableFuture<?> future, AsyncHelper.Future<K, U, V> entry) - 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;
-