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 Details

    • condition

      private final BooleanSupplier 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

      private final FetchRateLimiter 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

      private final Duration 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

      private final Runnable 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()
      Specified by:
      run in interface Runnable
      Mappings:
      Namespace Name Mixin selector
      official run Ldov;run()V
      intermediary run Lnet/minecraft/class_5784;run()V
      named run Lnet/minecraft/client/realms/gui/FetchTask;run()V
    • schedule

      public ScheduledFuture<?> schedule​(ScheduledExecutorService scheduler)
      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

      public static FetchTask create​(Runnable command, Duration period, BooleanSupplier condition)
      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;