Package net.minecraft.client.realms.gui
Interface FetchRateLimiter
- All Known Implementing Classes:
BasicFetchRateLimiter,DummyFetchRateLimiter
A fetch rate limiter allows tracking the period of realms data fetcher
tasks even when the fetcher has stopped running. It prevents spamming
rate-limited fetches.
- Mappings:
Namespace Name official edfintermediary net/minecraft/class_5785named net/minecraft/client/realms/gui/FetchRateLimiter
-
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.
-
Method Details
-
onRun
void onRun()Notifies the tracker that the tracked task is run.- 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
long getRemainingPeriod()Returns the time left before the next scheduled run of the tracked task.- 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
-