Package net.minecraft.client.realms.gui
Class FetchTask
java.lang.Object
net.minecraft.client.realms.gui.FetchTask
- All Implemented Interfaces:
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 dwx
intermediary net/minecraft/class_5784
named net/minecraft/client/realms/gui/FetchTask
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Runnable
private final BooleanSupplier
private final Duration
private final FetchRateLimiter
-
Constructor Summary
ModifierConstructorDescriptionprivate
FetchTask
(Runnable command, Duration period, BooleanSupplier condition, FetchRateLimiter rateLimiter) -
Method Summary
Modifier and TypeMethodDescriptionstatic FetchTask
create
(Runnable command, Duration period, BooleanSupplier condition) static FetchTask
createRateLimited
(Runnable command, Duration period, BooleanSupplier condition) void
run()
schedule
(ScheduledExecutorService scheduler)
-
Field Details
-
condition
- Mappings:
Namespace Name Mixin selector official a
Ldwx;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
Ldwx;b:Ldwy;
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
Ldwx;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
Ldwx;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>
Ldwx;<init>(Ljava/lang/Runnable;Ljava/time/Duration;Ljava/util/function/BooleanSupplier;Ldwy;)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
Ldwx;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
Ldwx;a(Ljava/lang/Runnable;Ljava/time/Duration;Ljava/util/function/BooleanSupplier;)Ldwx;
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
Ldwx;b(Ljava/lang/Runnable;Ljava/time/Duration;Ljava/util/function/BooleanSupplier;)Ldwx;
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;
-