Package net.minecraft.client.resource
Class PeriodicNotificationManager
java.lang.Object
net.minecraft.resource.SinglePreparationResourceReloader<Map<String,List<PeriodicNotificationManager.Entry>>>
 
net.minecraft.client.resource.PeriodicNotificationManager
- All Implemented Interfaces:
 AutoCloseable,ResourceReloader
@Environment(CLIENT)
public class PeriodicNotificationManager
extends SinglePreparationResourceReloader<Map<String,List<PeriodicNotificationManager.Entry>>>
implements AutoCloseable 
- Mappings:
 Namespace Name named net/minecraft/client/resource/PeriodicNotificationManagerintermediary net/minecraft/class_6877official fqv
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordprivate static classNested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<Map<String, List<PeriodicNotificationManager.Entry>>> private final Object2BooleanFunction<String> private final Identifierprivate static final Logger - 
Constructor Summary
ConstructorsConstructorDescriptionPeriodicNotificationManager(Identifier id, Object2BooleanFunction<String> countryPredicate)  - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidapply(Map<String, List<PeriodicNotificationManager.Entry>> map, ResourceManager resourceManager, Profiler profiler) Handles the prepared intermediate object.private voidvoidclose()private longgetMinDelay(List<PeriodicNotificationManager.Entry> entries) private longgetPeriod(List<PeriodicNotificationManager.Entry> entries, long minDelay) protected Map<String, List<PeriodicNotificationManager.Entry>> prepare(ResourceManager resourceManager, Profiler profiler) Prepares the intermediate object.Methods inherited from class net.minecraft.resource.SinglePreparationResourceReloader
reloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resource.ResourceReloader
getName 
- 
Field Details
- 
CODEC
private static final com.mojang.serialization.Codec<Map<String,List<PeriodicNotificationManager.Entry>>> CODEC- Mappings:
 Namespace Name Mixin selector named CODECLnet/minecraft/client/resource/PeriodicNotificationManager;CODEC:Lcom/mojang/serialization/Codec;intermediary field_36435Lnet/minecraft/class_6877;field_36435:Lcom/mojang/serialization/Codec;official aLfqv;a:Lcom/mojang/serialization/Codec;
 - 
LOGGER
- Mappings:
 Namespace Name Mixin selector named LOGGERLnet/minecraft/client/resource/PeriodicNotificationManager;LOGGER:Lorg/slf4j/Logger;intermediary field_36436Lnet/minecraft/class_6877;field_36436:Lorg/slf4j/Logger;official bLfqv;b:Lorg/slf4j/Logger;
 - 
id
- Mappings:
 Namespace Name Mixin selector named idLnet/minecraft/client/resource/PeriodicNotificationManager;id:Lnet/minecraft/util/Identifier;intermediary field_36437Lnet/minecraft/class_6877;field_36437:Lnet/minecraft/class_2960;official cLfqv;c:Lalr;
 - 
countryPredicate
- Mappings:
 Namespace Name Mixin selector named countryPredicateLnet/minecraft/client/resource/PeriodicNotificationManager;countryPredicate:Lit/unimi/dsi/fastutil/objects/Object2BooleanFunction;intermediary field_36438Lnet/minecraft/class_6877;field_36438:Lit/unimi/dsi/fastutil/objects/Object2BooleanFunction;official dLfqv;d:Lit/unimi/dsi/fastutil/objects/Object2BooleanFunction;
 - 
timer
- Mappings:
 Namespace Name Mixin selector named timerLnet/minecraft/client/resource/PeriodicNotificationManager;timer:Ljava/util/Timer;intermediary field_36439Lnet/minecraft/class_6877;field_36439:Ljava/util/Timer;official eLfqv;e:Ljava/util/Timer;
 - 
task
- Mappings:
 Namespace Name Mixin selector named taskLnet/minecraft/client/resource/PeriodicNotificationManager;task:Lnet/minecraft/client/resource/PeriodicNotificationManager$NotifyTask;intermediary field_36440Lnet/minecraft/class_6877;field_36440:Lnet/minecraft/class_6877$class_6879;official fLfqv;f:Lfqv$b;
 
 - 
 - 
Constructor Details
- 
PeriodicNotificationManager
- Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/client/resource/PeriodicNotificationManager;<init>(Lnet/minecraft/util/Identifier;Lit/unimi/dsi/fastutil/objects/Object2BooleanFunction;)Vintermediary <init>Lnet/minecraft/class_6877;<init>(Lnet/minecraft/class_2960;Lit/unimi/dsi/fastutil/objects/Object2BooleanFunction;)Vofficial <init>Lfqv;<init>(Lalr;Lit/unimi/dsi/fastutil/objects/Object2BooleanFunction;)V
 
 - 
 - 
Method Details
- 
prepare
protected Map<String,List<PeriodicNotificationManager.Entry>> prepare(ResourceManager resourceManager, Profiler profiler) Description copied from class:SinglePreparationResourceReloaderPrepares the intermediate object.This method is called in the prepare executor in a reload.
- Specified by:
 preparein classSinglePreparationResourceReloader<Map<String,List<PeriodicNotificationManager.Entry>>> - Parameters:
 resourceManager- the resource managerprofiler- the prepare profiler- Returns:
 - the prepared object
 - Mappings:
 Namespace Name Mixin selector named prepareLnet/minecraft/client/resource/PeriodicNotificationManager;prepare(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)Ljava/util/Map;intermediary method_40192Lnet/minecraft/class_6877;method_40192(Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Ljava/util/Map;official aLfqv;a(Lavo;Lbrm;)Ljava/util/Map;
 - 
apply
protected void apply(Map<String, List<PeriodicNotificationManager.Entry>> map, ResourceManager resourceManager, Profiler profiler) Description copied from class:SinglePreparationResourceReloaderHandles the prepared intermediate object.This method is called in the apply executor, or the game engine, in a reload.
- Specified by:
 applyin classSinglePreparationResourceReloader<Map<String,List<PeriodicNotificationManager.Entry>>> - Parameters:
 map- the prepared objectresourceManager- the resource managerprofiler- the apply profiler- Mappings:
 Namespace Name Mixin selector named applyLnet/minecraft/client/resource/PeriodicNotificationManager;apply(Ljava/util/Map;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)Vintermediary method_40198Lnet/minecraft/class_6877;method_40198(Ljava/util/Map;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Vofficial aLfqv;a(Ljava/util/Map;Lavo;Lbrm;)V
 - 
close
public void close()- Specified by:
 closein interfaceAutoCloseable
 - 
cancelTimer
private void cancelTimer()- Mappings:
 Namespace Name Mixin selector named cancelTimerLnet/minecraft/client/resource/PeriodicNotificationManager;cancelTimer()Vintermediary method_40190Lnet/minecraft/class_6877;method_40190()Vofficial aLfqv;a()V
 - 
getPeriod
- Mappings:
 Namespace Name Mixin selector named getPeriodLnet/minecraft/client/resource/PeriodicNotificationManager;getPeriod(Ljava/util/List;J)Jintermediary method_40196Lnet/minecraft/class_6877;method_40196(Ljava/util/List;J)Jofficial aLfqv;a(Ljava/util/List;J)J
 - 
getMinDelay
- Mappings:
 Namespace Name Mixin selector named getMinDelayLnet/minecraft/client/resource/PeriodicNotificationManager;getMinDelay(Ljava/util/List;)Jintermediary method_40195Lnet/minecraft/class_6877;method_40195(Ljava/util/List;)Jofficial aLfqv;a(Ljava/util/List;)J
 
 -