接口 FetchRateLimiter
-
- 所有已知实现类:
BasicFetchRateLimiter,DummyFetchRateLimiter
@Environment(CLIENT) public interface FetchRateLimiter
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 dsuintermediary net/minecraft/class_5785named net/minecraft/client/realms/gui/FetchRateLimiter
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 longgetRemainingPeriod()Returns the time left before the next scheduled run of the tracked task.voidonRun()Notifies the tracker that the tracked task is run.
-
-
-
方法详细资料
-
onRun
void onRun()
Notifies the tracker that the tracked task is run.- Mappings:
Namespace Name Mixin selector official aLdsu;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.- Mappings:
Namespace Name Mixin selector official bLdsu;b()Jintermediary method_33422Lnet/minecraft/class_5785;method_33422()Jnamed getRemainingPeriodLnet/minecraft/client/realms/gui/FetchRateLimiter;getRemainingPeriod()J
-
-