类 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 pNotifications, it.unimi.dsi.fastutil.objects.Object2BooleanFunction<String> pSelector) -
方法概要
修饰符和类型方法说明protected void
apply
(Map<String, List<PeriodicNotificationManager.Notification>> pObject, ResourceManager pResourceManager, ProfilerFiller pProfiler) private long
calculateInitialDelay
(List<PeriodicNotificationManager.Notification> pNotifications) private long
calculateOptimalPeriod
(List<PeriodicNotificationManager.Notification> pNotifications, long pDelay) void
close()
protected Map<String,
List<PeriodicNotificationManager.Notification>> prepare
(ResourceManager pResourceManager, ProfilerFiller pProfiler) 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 pNotifications, it.unimi.dsi.fastutil.objects.Object2BooleanFunction<String> pSelector)
-
-
方法详细资料
-
prepare
protected Map<String,List<PeriodicNotificationManager.Notification>> prepare(ResourceManager pResourceManager, ProfilerFiller pProfiler) -
apply
protected void apply(Map<String, List<PeriodicNotificationManager.Notification>> pObject, ResourceManager pResourceManager, ProfilerFiller pProfiler) -
close
public void close()- 指定者:
close
在接口中AutoCloseable
-
stopTimer
private void stopTimer() -
calculateOptimalPeriod
private long calculateOptimalPeriod(List<PeriodicNotificationManager.Notification> pNotifications, long pDelay) -
calculateInitialDelay
-