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$Batcher
intermediary net/minecraft/class_10769$class_10773
official btt$d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private final AsyncHelper.Future
<K, U, V> private final CompletableFuture<?>[]
private int
private 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 int
getLastIndex
(int batch) protected abstract CompletableFuture
<?> private int
nextSize()
-
Field Details
-
lastBatch
private int lastBatch- Mappings:
Namespace Name Mixin selector named lastBatch
Lnet/minecraft/util/thread/AsyncHelper$Batcher;lastBatch:I
intermediary field_56622
Lnet/minecraft/class_10769$class_10773;field_56622:I
official a
Lbtt$d;a:I
-
index
private int index- Mappings:
Namespace Name Mixin selector named index
Lnet/minecraft/util/thread/AsyncHelper$Batcher;index:I
intermediary field_56624
Lnet/minecraft/class_10769$class_10773;field_56624:I
official c
Lbtt$d;c:I
-
futures
- Mappings:
Namespace Name Mixin selector named futures
Lnet/minecraft/util/thread/AsyncHelper$Batcher;futures:[Ljava/util/concurrent/CompletableFuture;
intermediary field_56625
Lnet/minecraft/class_10769$class_10773;field_56625:[Ljava/util/concurrent/CompletableFuture;
official d
Lbtt$d;d:[Ljava/util/concurrent/CompletableFuture;
-
batch
private int batch- Mappings:
Namespace Name Mixin selector named batch
Lnet/minecraft/util/thread/AsyncHelper$Batcher;batch:I
intermediary field_56626
Lnet/minecraft/class_10769$class_10773;field_56626:I
official e
Lbtt$d;e:I
-
entry
- Mappings:
Namespace Name Mixin selector named entry
Lnet/minecraft/util/thread/AsyncHelper$Batcher;entry:Lnet/minecraft/util/thread/AsyncHelper$Future;
intermediary field_56627
Lnet/minecraft/class_10769$class_10773;field_56627:Lnet/minecraft/class_10769$class_10771;
official f
Lbtt$d;f:Lbtt$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)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
-
nextSize
private int nextSize()- Mappings:
Namespace Name Mixin selector named nextSize
Lnet/minecraft/util/thread/AsyncHelper$Batcher;nextSize()I
intermediary method_67629
Lnet/minecraft/class_10769$class_10773;method_67629()I
official a
Lbtt$d;a()I
-
mapAsync
- Mappings:
Namespace Name Mixin selector named mapAsync
Lnet/minecraft/util/thread/AsyncHelper$Batcher;mapAsync(Ljava/util/Map;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
intermediary method_67630
Lnet/minecraft/class_10769$class_10773;method_67630(Ljava/util/Map;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
official a
Lbtt$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 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
-
newBatch
protected abstract CompletableFuture<?> newBatch(AsyncHelper.Future<K, U, V> futures, int size, int maxCount, Executor executor) - 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;
-
addLastTask
protected abstract CompletableFuture<Map<K,V>> addLastTask(CompletableFuture<?> future, AsyncHelper.Future<K, U, V> entry) - 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;
-