类 PeriodicNotificationManager
java.lang.Object
net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<String,List<PeriodicNotificationManager.Notification>>>
net.minecraft.client.PeriodicNotificationManager
- 所有已实现的接口:
AutoCloseable
,PreparableReloadListener
public class PeriodicNotificationManager
extends SimplePreparableReloadListener<Map<String,List<PeriodicNotificationManager.Notification>>>
implements AutoCloseable
-
嵌套类概要
嵌套类修饰符和类型类说明static final record
(专用程序包) static class
从接口继承的嵌套类/接口 net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
字段概要
字段修饰符和类型字段说明private static final com.mojang.serialization.Codec
<Map<String, List<PeriodicNotificationManager.Notification>>> private static final org.slf4j.Logger
private final ResourceLocation
private final it.unimi.dsi.fastutil.objects.Object2BooleanFunction
<String> private Timer
-
构造器概要
构造器构造器说明PeriodicNotificationManager
(ResourceLocation p_205293_, it.unimi.dsi.fastutil.objects.Object2BooleanFunction<String> p_205294_) -
方法概要
修饰符和类型方法说明protected void
apply
(Map<String, List<PeriodicNotificationManager.Notification>> p_205318_, ResourceManager p_205319_, ProfilerFiller p_205320_) private long
private long
calculateOptimalPeriod
(List<PeriodicNotificationManager.Notification> p_205313_, long p_205314_) void
close()
protected Map
<String, List<PeriodicNotificationManager.Notification>> prepare
(ResourceManager p_205300_, ProfilerFiller p_205301_) private void
从类继承的方法 net.minecraft.server.packs.resources.SimplePreparableReloadListener
reload
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.server.packs.resources.PreparableReloadListener
getName
-
字段详细资料
-
CODEC
private static final com.mojang.serialization.Codec<Map<String,List<PeriodicNotificationManager.Notification>>> CODEC -
LOGGER
private static final org.slf4j.Logger LOGGER -
notifications
-
selector
-
timer
-
notificationTask
-
-
构造器详细资料
-
PeriodicNotificationManager
public PeriodicNotificationManager(ResourceLocation p_205293_, it.unimi.dsi.fastutil.objects.Object2BooleanFunction<String> p_205294_)
-
-
方法详细资料
-
prepare
protected Map<String,List<PeriodicNotificationManager.Notification>> prepare(ResourceManager p_205300_, ProfilerFiller p_205301_) -
apply
protected void apply(Map<String, List<PeriodicNotificationManager.Notification>> p_205318_, ResourceManager p_205319_, ProfilerFiller p_205320_) -
close
public void close()- 指定者:
close
在接口中AutoCloseable
-
stopTimer
private void stopTimer() -
calculateOptimalPeriod
private long calculateOptimalPeriod(List<PeriodicNotificationManager.Notification> p_205313_, long p_205314_) -
calculateInitialDelay
-