net.minecraft.client.resource

public class PeriodicNotificationManager

extends SinglePreparationResourceReloader<Map<String, List<PeriodicNotificationManager$Entry>>> implements AutoCloseable

All mapped superinterfaces:

ResourceReloader

net.minecraft.client.PeriodicNotificationManager
net.minecraft.class_6877
net.minecraft.client.resource.PeriodicNotificationManager

Field summary

Modifier and TypeField
private static final com.mojang.serialization.Codec<Map<String, List<PeriodicNotificationManager$Entry>>>
CODEC
field_36435
CODEC
private static final org.slf4j.Logger
LOGGER
field_36436
LOGGER
private final Identifier
notifications
field_36437
id
private final it.unimi.dsi.fastutil.objects.Object2BooleanFunction<String>
selector
field_36438
countryPredicate
private Timer
timer
field_36439
timer
private PeriodicNotificationManager$NotifyTask
notificationTask
field_36440
task

Constructor summary

ModifierConstructor
public (Identifier id, it.unimi.dsi.fastutil.objects.Object2BooleanFunction<String> countryPredicate)

Method summary

Modifier and TypeMethod
protected Map<String, List<PeriodicNotificationManager$Entry>>
prepare(ResourceManager manager, ProfilerFiller profiler)
method_18789(class_3300 arg0, class_3695 arg1)
prepare(ResourceManager arg0, Profiler arg1)
protected void
apply(Map<String, List<PeriodicNotificationManager$Notification>> preparations, ResourceManager manager, ProfilerFiller profiler)
method_40198(Map<String, List<class_6877$class_6878>> arg0, class_3300 arg1, class_3695 arg2)
apply(Map<String, List<PeriodicNotificationManager$Entry>> arg0, ResourceManager arg1, Profiler arg2)
public void
close()
private void
stopTimer()
method_40190()
cancelTimer()
private long
calculateOptimalPeriod(List<PeriodicNotificationManager$Notification> notifications, long initialDelay)
method_40196(List<class_6877$class_6878> arg0, long arg1)
getPeriod(List<PeriodicNotificationManager$Entry> entries, long minDelay)
private long
calculateInitialDelay(List<PeriodicNotificationManager$Notification> notifications)
method_40195(List<class_6877$class_6878> arg0)
getMinDelay(List<PeriodicNotificationManager$Entry> entries)
protected void
apply(Object preparations, ResourceManager manager, ProfilerFiller profiler)
method_18788(Object arg0, class_3300 arg1, class_3695 arg2)
apply(Object arg0, ResourceManager arg1, Profiler arg2)
protected Object
prepare(ResourceManager manager, ProfilerFiller profiler)
method_18789(class_3300 arg0, class_3695 arg1)
prepare(ResourceManager arg0, Profiler arg1)
private static long
lambda$calculateInitialDelay$0(PeriodicNotificationManager$Notification arg0)
method_40194(class_6877$class_6878 arg0)
method_40194(PeriodicNotificationManager$Entry entry)
private IllegalStateException
lambda$calculateOptimalPeriod$1()
method_40199()
method_40199()
private static long
lambda$calculateOptimalPeriod$0(long arg0, PeriodicNotificationManager$Notification arg1)
method_40191(long arg0, class_6877$class_6878 arg1)
method_40191(long arg0, PeriodicNotificationManager$Entry entry)
private static boolean
lambda$apply$1(PeriodicNotificationManager$Notification arg0)
method_40200(class_6877$class_6878 arg0)
method_40200(PeriodicNotificationManager$Entry entry)
private boolean
lambda$apply$0(Map$Entry arg0)
method_40197(Map$Entry arg0)
method_40197(Map$Entry entry)
private static com.mojang.datafixers.kinds.App
lambda$static$0(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_40193(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_40193(com.mojang.serialization.codecs.RecordCodecBuilder$Instance instance)