Class PeriodicNotificationManager

All Implemented Interfaces:
AutoCloseable, ResourceReloader

Mappings:
Namespace Name
named net/minecraft/client/resource/PeriodicNotificationManager
intermediary net/minecraft/class_6877
official fgo
  • Field Details

    • CODEC

      private static final com.mojang.serialization.Codec<Map<String,List<PeriodicNotificationManager.Entry>>> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/resource/PeriodicNotificationManager;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_36435 Lnet/minecraft/class_6877;field_36435:Lcom/mojang/serialization/Codec;
      official a Lfgo;a:Lcom/mojang/serialization/Codec;
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/resource/PeriodicNotificationManager;LOGGER:Lorg/slf4j/Logger;
      intermediary field_36436 Lnet/minecraft/class_6877;field_36436:Lorg/slf4j/Logger;
      official b Lfgo;b:Lorg/slf4j/Logger;
    • id

      private final Identifier id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/client/resource/PeriodicNotificationManager;id:Lnet/minecraft/util/Identifier;
      intermediary field_36437 Lnet/minecraft/class_6877;field_36437:Lnet/minecraft/class_2960;
      official c Lfgo;c:Lakq;
    • countryPredicate

      private final Object2BooleanFunction<String> countryPredicate
      Mappings:
      Namespace Name Mixin selector
      named countryPredicate Lnet/minecraft/client/resource/PeriodicNotificationManager;countryPredicate:Lit/unimi/dsi/fastutil/objects/Object2BooleanFunction;
      intermediary field_36438 Lnet/minecraft/class_6877;field_36438:Lit/unimi/dsi/fastutil/objects/Object2BooleanFunction;
      official d Lfgo;d:Lit/unimi/dsi/fastutil/objects/Object2BooleanFunction;
    • timer

      @Nullable private @Nullable Timer timer
      Mappings:
      Namespace Name Mixin selector
      named timer Lnet/minecraft/client/resource/PeriodicNotificationManager;timer:Ljava/util/Timer;
      intermediary field_36439 Lnet/minecraft/class_6877;field_36439:Ljava/util/Timer;
      official e Lfgo;e:Ljava/util/Timer;
    • task

      Mappings:
      Namespace Name Mixin selector
      named task Lnet/minecraft/client/resource/PeriodicNotificationManager;task:Lnet/minecraft/client/resource/PeriodicNotificationManager$NotifyTask;
      intermediary field_36440 Lnet/minecraft/class_6877;field_36440:Lnet/minecraft/class_6877$class_6879;
      official f Lfgo;f:Lfgo$b;
  • Constructor Details

    • PeriodicNotificationManager

      public PeriodicNotificationManager(Identifier id, Object2BooleanFunction<String> countryPredicate)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/resource/PeriodicNotificationManager;<init>(Lnet/minecraft/util/Identifier;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
      official <init> Lfgo;<init>(Lakq;Lit/unimi/dsi/fastutil/objects/Object2BooleanFunction;)V
  • Method Details

    • prepare

      protected Map<String,List<PeriodicNotificationManager.Entry>> prepare(ResourceManager resourceManager, Profiler profiler)
      Description copied from class: SinglePreparationResourceReloader
      Prepares the intermediate object.

      This method is called in the prepare executor in a reload.

      Specified by:
      prepare in 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
      named prepare Lnet/minecraft/client/resource/PeriodicNotificationManager;prepare(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)Ljava/util/Map;
      intermediary method_40192 Lnet/minecraft/class_6877;method_40192(Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Ljava/util/Map;
      official a Lfgo;a(Laud;Lbne;)Ljava/util/Map;
    • apply

      protected void apply(Map<String,List<PeriodicNotificationManager.Entry>> map, ResourceManager resourceManager, Profiler profiler)
      Description copied from class: SinglePreparationResourceReloader
      Handles the prepared intermediate object.

      This method is called in the apply executor, or the game engine, in a reload.

      Specified by:
      apply in 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
      named apply Lnet/minecraft/client/resource/PeriodicNotificationManager;apply(Ljava/util/Map;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)V
      intermediary method_40198 Lnet/minecraft/class_6877;method_40198(Ljava/util/Map;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)V
      official a Lfgo;a(Ljava/util/Map;Laud;Lbne;)V
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • cancelTimer

      private void cancelTimer()
      Mappings:
      Namespace Name Mixin selector
      named cancelTimer Lnet/minecraft/client/resource/PeriodicNotificationManager;cancelTimer()V
      intermediary method_40190 Lnet/minecraft/class_6877;method_40190()V
      official a Lfgo;a()V
    • getPeriod

      private long getPeriod(List<PeriodicNotificationManager.Entry> entries, long minDelay)
      Mappings:
      Namespace Name Mixin selector
      named getPeriod Lnet/minecraft/client/resource/PeriodicNotificationManager;getPeriod(Ljava/util/List;J)J
      intermediary method_40196 Lnet/minecraft/class_6877;method_40196(Ljava/util/List;J)J
      official a Lfgo;a(Ljava/util/List;J)J
    • getMinDelay

      private long getMinDelay(List<PeriodicNotificationManager.Entry> entries)
      Mappings:
      Namespace Name Mixin selector
      named getMinDelay Lnet/minecraft/client/resource/PeriodicNotificationManager;getMinDelay(Ljava/util/List;)J
      intermediary method_40195 Lnet/minecraft/class_6877;method_40195(Ljava/util/List;)J
      official a Lfgo;a(Ljava/util/List;)J