Package net.minecraft.client
Class PeriodicNotificationManager
java.lang.Object
net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<String,List<PeriodicNotificationManager.Notification>>>
 
net.minecraft.client.PeriodicNotificationManager
- All Implemented Interfaces:
- AutoCloseable,- PreparableReloadListener
public class PeriodicNotificationManager
extends SimplePreparableReloadListener<Map<String,List<PeriodicNotificationManager.Notification>>>
implements AutoCloseable 
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final record(package private) static classNested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListenerPreparableReloadListener.PreparationBarrier
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<Map<String,List<PeriodicNotificationManager.Notification>>> private static final org.slf4j.Loggerprivate final ResourceLocationprivate final it.unimi.dsi.fastutil.objects.Object2BooleanFunction<String>private Timer
- 
Constructor SummaryConstructorsConstructorDescriptionPeriodicNotificationManager(ResourceLocation p_205293_, it.unimi.dsi.fastutil.objects.Object2BooleanFunction<String> p_205294_) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidapply(Map<String, List<PeriodicNotificationManager.Notification>> p_205318_, ResourceManager p_205319_, ProfilerFiller p_205320_) private longprivate longcalculateOptimalPeriod(List<PeriodicNotificationManager.Notification> p_205313_, long p_205314_) voidclose()protected Map<String,List<PeriodicNotificationManager.Notification>> prepare(ResourceManager p_205300_, ProfilerFiller p_205301_) private voidMethods inherited from class net.minecraft.server.packs.resources.SimplePreparableReloadListenerreloadMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListenergetName
- 
Field Details- 
CODECprivate static final com.mojang.serialization.Codec<Map<String,List<PeriodicNotificationManager.Notification>>> CODEC
- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
notifications
- 
selector
- 
timer
- 
notificationTask
 
- 
- 
Constructor Details- 
PeriodicNotificationManagerpublic PeriodicNotificationManager(ResourceLocation p_205293_, it.unimi.dsi.fastutil.objects.Object2BooleanFunction<String> p_205294_) 
 
- 
- 
Method Details- 
prepareprotected Map<String,List<PeriodicNotificationManager.Notification>> prepare(ResourceManager p_205300_, ProfilerFiller p_205301_) - Specified by:
- preparein class- SimplePreparableReloadListener<Map<String,- List<PeriodicNotificationManager.Notification>>> 
 
- 
applyprotected void apply(Map<String, List<PeriodicNotificationManager.Notification>> p_205318_, ResourceManager p_205319_, ProfilerFiller p_205320_) - Specified by:
- applyin class- SimplePreparableReloadListener<Map<String,- List<PeriodicNotificationManager.Notification>>> 
 
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
- 
stopTimerprivate void stopTimer()
- 
calculateOptimalPeriodprivate long calculateOptimalPeriod(List<PeriodicNotificationManager.Notification> p_205313_, long p_205314_) 
- 
calculateInitialDelay
 
-