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 - official - ent- intermediary - net/minecraft/class_6877- named - net/minecraft/client/resource/PeriodicNotificationManager
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final recordprivate static classNested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloaderResourceReloader.Synchronizer
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<Map<String,List<PeriodicNotificationManager.Entry>>> private final Object2BooleanFunction<String>private final Identifierprivate static final Logger
- 
Constructor SummaryConstructorsConstructorDescriptionPeriodicNotificationManager(Identifier id, Object2BooleanFunction<String> countryPredicate) 
- 
Method SummaryModifier 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.SinglePreparationResourceReloaderreloadMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resource.ResourceReloadergetName
- 
Field Details- 
CODECprivate static final com.mojang.serialization.Codec<Map<String,List<PeriodicNotificationManager.Entry>>> CODEC- Mappings:
- Namespace - Name - Mixin selector - official - a- Lent;a:Lcom/mojang/serialization/Codec;- intermediary - field_36435- Lnet/minecraft/class_6877;field_36435:Lcom/mojang/serialization/Codec;- named - CODEC- Lnet/minecraft/client/resource/PeriodicNotificationManager;CODEC:Lcom/mojang/serialization/Codec;
 
- 
LOGGER- Mappings:
- Namespace - Name - Mixin selector - official - b- Lent;b:Lorg/slf4j/Logger;- intermediary - field_36436- Lnet/minecraft/class_6877;field_36436:Lorg/slf4j/Logger;- named - LOGGER- Lnet/minecraft/client/resource/PeriodicNotificationManager;LOGGER:Lorg/slf4j/Logger;
 
- 
id- Mappings:
- Namespace - Name - Mixin selector - official - c- Lent;c:Lacq;- intermediary - field_36437- Lnet/minecraft/class_6877;field_36437:Lnet/minecraft/class_2960;- named - id- Lnet/minecraft/client/resource/PeriodicNotificationManager;id:Lnet/minecraft/util/Identifier;
 
- 
countryPredicate- Mappings:
- Namespace - Name - Mixin selector - official - d- Lent;d:Lit/unimi/dsi/fastutil/objects/Object2BooleanFunction;- intermediary - field_36438- Lnet/minecraft/class_6877;field_36438:Lit/unimi/dsi/fastutil/objects/Object2BooleanFunction;- named - countryPredicate- Lnet/minecraft/client/resource/PeriodicNotificationManager;countryPredicate:Lit/unimi/dsi/fastutil/objects/Object2BooleanFunction;
 
- 
timer- Mappings:
- Namespace - Name - Mixin selector - official - e- Lent;e:Ljava/util/Timer;- intermediary - field_36439- Lnet/minecraft/class_6877;field_36439:Ljava/util/Timer;- named - timer- Lnet/minecraft/client/resource/PeriodicNotificationManager;timer:Ljava/util/Timer;
 
- 
task- Mappings:
- Namespace - Name - Mixin selector - official - f- Lent;f:Lent$b;- intermediary - field_36440- Lnet/minecraft/class_6877;field_36440:Lnet/minecraft/class_6877$class_6879;- named - task- Lnet/minecraft/client/resource/PeriodicNotificationManager;task:Lnet/minecraft/client/resource/PeriodicNotificationManager$NotifyTask;
 
 
- 
- 
Constructor Details- 
PeriodicNotificationManager- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lent;<init>(Lacq;Lit/unimi/dsi/fastutil/objects/Object2BooleanFunction;)V- intermediary - <init>- Lnet/minecraft/class_6877;<init>(Lnet/minecraft/class_2960;Lit/unimi/dsi/fastutil/objects/Object2BooleanFunction;)V- named - <init>- Lnet/minecraft/client/resource/PeriodicNotificationManager;<init>(Lnet/minecraft/util/Identifier;Lit/unimi/dsi/fastutil/objects/Object2BooleanFunction;)V
 
 
- 
- 
Method Details- 
prepareprotected 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 class- SinglePreparationResourceReloader<Map<String,- List<PeriodicNotificationManager.Entry>>> 
- Parameters:
- resourceManager- the resource manager
- profiler- the prepare profiler
- Returns:
- the prepared object
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lent;a(Lakx;Lban;)Ljava/util/Map;- intermediary - method_40192- Lnet/minecraft/class_6877;method_40192(Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Ljava/util/Map;- named - prepare- Lnet/minecraft/client/resource/PeriodicNotificationManager;prepare(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)Ljava/util/Map;
 
- 
applyprotected 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 class- SinglePreparationResourceReloader<Map<String,- List<PeriodicNotificationManager.Entry>>> 
- Parameters:
- map- the prepared object
- resourceManager- the resource manager
- profiler- the apply profiler
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lent;a(Ljava/util/Map;Lakx;Lban;)V- intermediary - method_40198- Lnet/minecraft/class_6877;method_40198(Ljava/util/Map;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)V- named - apply- Lnet/minecraft/client/resource/PeriodicNotificationManager;apply(Ljava/util/Map;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)V
 
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
- 
cancelTimerprivate void cancelTimer()- Mappings:
- Namespace - Name - Mixin selector - official - a- Lent;a()V- intermediary - method_40190- Lnet/minecraft/class_6877;method_40190()V- named - cancelTimer- Lnet/minecraft/client/resource/PeriodicNotificationManager;cancelTimer()V
 
- 
getPeriod- Mappings:
- Namespace - Name - Mixin selector - official - a- Lent;a(Ljava/util/List;J)J- intermediary - method_40196- Lnet/minecraft/class_6877;method_40196(Ljava/util/List;J)J- named - getPeriod- Lnet/minecraft/client/resource/PeriodicNotificationManager;getPeriod(Ljava/util/List;J)J
 
- 
getMinDelay- Mappings:
- Namespace - Name - Mixin selector - official - a- Lent;a(Ljava/util/List;)J- intermediary - method_40195- Lnet/minecraft/class_6877;method_40195(Ljava/util/List;)J- named - getMinDelay- Lnet/minecraft/client/resource/PeriodicNotificationManager;getMinDelay(Ljava/util/List;)J
 
 
-