Package net.minecraft.client.realms.gui
Class FetchTask
java.lang.Object
net.minecraft.client.realms.gui.FetchTask
- All Implemented Interfaces:
Runnable
@Environment(CLIENT) public class FetchTask extends Object implements Runnable
A task for
RealmsDataFetcher
that runs at a fixed interval. It
optionally supports rate limits and stops when the fetcher is stopped.- Mappings:
Namespace Name official dov
intermediary net/minecraft/class_5784
named net/minecraft/client/realms/gui/FetchTask
-
Field Summary
Fields Modifier and Type Field Description private Runnable
command
private BooleanSupplier
condition
private Duration
period
private FetchRateLimiter
rateLimiter
-
Constructor Summary
Constructors Modifier Constructor Description private
FetchTask(Runnable command, Duration period, BooleanSupplier condition, FetchRateLimiter rateLimiter)
-
Method Summary
Modifier and Type Method Description static FetchTask
create(Runnable command, Duration period, BooleanSupplier condition)
static FetchTask
createRateLimited(Runnable command, Duration period, BooleanSupplier condition)
void
run()
ScheduledFuture<?>
schedule(ScheduledExecutorService scheduler)
-
Field Details
-
condition
- Mappings:
Namespace Name Mixin selector official a
Ldov;a:Ljava/util/function/BooleanSupplier;
intermediary field_28452
Lnet/minecraft/class_5784;field_28452:Ljava/util/function/BooleanSupplier;
named condition
Lnet/minecraft/client/realms/gui/FetchTask;condition:Ljava/util/function/BooleanSupplier;
-
rateLimiter
- Mappings:
Namespace Name Mixin selector official b
Ldov;b:Ldow;
intermediary field_28453
Lnet/minecraft/class_5784;field_28453:Lnet/minecraft/class_5785;
named rateLimiter
Lnet/minecraft/client/realms/gui/FetchTask;rateLimiter:Lnet/minecraft/client/realms/gui/FetchRateLimiter;
-
period
- Mappings:
Namespace Name Mixin selector official c
Ldov;c:Ljava/time/Duration;
intermediary field_28454
Lnet/minecraft/class_5784;field_28454:Ljava/time/Duration;
named period
Lnet/minecraft/client/realms/gui/FetchTask;period:Ljava/time/Duration;
-
command
- Mappings:
Namespace Name Mixin selector official d
Ldov;d:Ljava/lang/Runnable;
intermediary field_28455
Lnet/minecraft/class_5784;field_28455:Ljava/lang/Runnable;
named command
Lnet/minecraft/client/realms/gui/FetchTask;command:Ljava/lang/Runnable;
-
-
Constructor Details
-
FetchTask
private FetchTask(Runnable command, Duration period, BooleanSupplier condition, FetchRateLimiter rateLimiter)- Mappings:
Namespace Name Mixin selector official <init>
Ldov;<init>(Ljava/lang/Runnable;Ljava/time/Duration;Ljava/util/function/BooleanSupplier;Ldow;)V
intermediary <init>
Lnet/minecraft/class_5784;<init>(Ljava/lang/Runnable;Ljava/time/Duration;Ljava/util/function/BooleanSupplier;Lnet/minecraft/class_5785;)V
named <init>
Lnet/minecraft/client/realms/gui/FetchTask;<init>(Ljava/lang/Runnable;Ljava/time/Duration;Ljava/util/function/BooleanSupplier;Lnet/minecraft/client/realms/gui/FetchRateLimiter;)V
-
-
Method Details
-
run
public void run() -
schedule
- Mappings:
Namespace Name Mixin selector official a
Ldov;a(Ljava/util/concurrent/ScheduledExecutorService;)Ljava/util/concurrent/ScheduledFuture;
intermediary method_33419
Lnet/minecraft/class_5784;method_33419(Ljava/util/concurrent/ScheduledExecutorService;)Ljava/util/concurrent/ScheduledFuture;
named schedule
Lnet/minecraft/client/realms/gui/FetchTask;schedule(Ljava/util/concurrent/ScheduledExecutorService;)Ljava/util/concurrent/ScheduledFuture;
-
createRateLimited
public static FetchTask createRateLimited(Runnable command, Duration period, BooleanSupplier condition)- Mappings:
Namespace Name Mixin selector official a
Ldov;a(Ljava/lang/Runnable;Ljava/time/Duration;Ljava/util/function/BooleanSupplier;)Ldov;
intermediary method_33418
Lnet/minecraft/class_5784;method_33418(Ljava/lang/Runnable;Ljava/time/Duration;Ljava/util/function/BooleanSupplier;)Lnet/minecraft/class_5784;
named createRateLimited
Lnet/minecraft/client/realms/gui/FetchTask;createRateLimited(Ljava/lang/Runnable;Ljava/time/Duration;Ljava/util/function/BooleanSupplier;)Lnet/minecraft/client/realms/gui/FetchTask;
-
create
- Mappings:
Namespace Name Mixin selector official b
Ldov;b(Ljava/lang/Runnable;Ljava/time/Duration;Ljava/util/function/BooleanSupplier;)Ldov;
intermediary method_33420
Lnet/minecraft/class_5784;method_33420(Ljava/lang/Runnable;Ljava/time/Duration;Ljava/util/function/BooleanSupplier;)Lnet/minecraft/class_5784;
named create
Lnet/minecraft/client/realms/gui/FetchTask;create(Ljava/lang/Runnable;Ljava/time/Duration;Ljava/util/function/BooleanSupplier;)Lnet/minecraft/client/realms/gui/FetchTask;
-