Package net.minecraft.client.realms.gui
Class BasicFetchRateLimiter
java.lang.Object
net.minecraft.client.realms.gui.BasicFetchRateLimiter
- All Implemented Interfaces:
FetchRateLimiter
An operational rate limiter.
- Mappings:
Namespace Name official edcintermediary net/minecraft/class_5782named net/minecraft/client/realms/gui/BasicFetchRateLimiter
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionBasicFetchRateLimiter(Duration period) protectedBasicFetchRateLimiter(Duration period, Supplier<Clock> clock) -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the time left before the next scheduled run of the tracked task.voidonRun()Notifies the tracker that the tracked task is run.
-
Field Details
-
period
- Mappings:
Namespace Name Mixin selector official aLedc;a:Ljava/time/Duration;intermediary field_28449Lnet/minecraft/class_5782;field_28449:Ljava/time/Duration;named periodLnet/minecraft/client/realms/gui/BasicFetchRateLimiter;period:Ljava/time/Duration;
-
clock
- Mappings:
Namespace Name Mixin selector official bLedc;b:Ljava/util/function/Supplier;intermediary field_28450Lnet/minecraft/class_5782;field_28450:Ljava/util/function/Supplier;named clockLnet/minecraft/client/realms/gui/BasicFetchRateLimiter;clock:Ljava/util/function/Supplier;
-
lastRun
- Mappings:
Namespace Name Mixin selector official cLedc;c:Ljava/time/Instant;intermediary field_28451Lnet/minecraft/class_5782;field_28451:Ljava/time/Instant;named lastRunLnet/minecraft/client/realms/gui/BasicFetchRateLimiter;lastRun:Ljava/time/Instant;
-
-
Constructor Details
-
BasicFetchRateLimiter
- Mappings:
Namespace Name Mixin selector official <init>Ledc;<init>(Ljava/time/Duration;)Vintermediary <init>Lnet/minecraft/class_5782;<init>(Ljava/time/Duration;)Vnamed <init>Lnet/minecraft/client/realms/gui/BasicFetchRateLimiter;<init>(Ljava/time/Duration;)V
-
BasicFetchRateLimiter
- Mappings:
Namespace Name Mixin selector official <init>Ledc;<init>(Ljava/time/Duration;Ljava/util/function/Supplier;)Vintermediary <init>Lnet/minecraft/class_5782;<init>(Ljava/time/Duration;Ljava/util/function/Supplier;)Vnamed <init>Lnet/minecraft/client/realms/gui/BasicFetchRateLimiter;<init>(Ljava/time/Duration;Ljava/util/function/Supplier;)V
-
-
Method Details
-
onRun
public void onRun()Notifies the tracker that the tracked task is run.- Specified by:
onRunin interfaceFetchRateLimiter- Mappings:
Namespace Name Mixin selector official aLedf;a()Vintermediary method_33421Lnet/minecraft/class_5785;method_33421()Vnamed onRunLnet/minecraft/client/realms/gui/FetchRateLimiter;onRun()V
-
getRemainingPeriod
public long getRemainingPeriod()Returns the time left before the next scheduled run of the tracked task.- Specified by:
getRemainingPeriodin interfaceFetchRateLimiter- Returns:
- the time left before the next scheduled run of the tracked task
- Mappings:
Namespace Name Mixin selector official bLedf;b()Jintermediary method_33422Lnet/minecraft/class_5785;method_33422()Jnamed getRemainingPeriodLnet/minecraft/client/realms/gui/FetchRateLimiter;getRemainingPeriod()J
-