Class PluginListPageManager

java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginListPageManager

public class PluginListPageManager extends Object
A manager for active plugin list pages, for updating and notifying changes
  • Field Details

    • instance

      public static PluginListPageManager instance
      The static plugin list manager for faster access
  • Constructor Details

    • PluginListPageManager

      public PluginListPageManager()
      Default Constructor for a PluginListPageManager instance
  • Method Details

    • get

      @Nonnull public static PluginListPageManager get()
      Returns:
      the static PluginListPageManager instance
    • registerPluginListPage

      public void registerPluginListPage(@Nonnull PluginListPage page)
      Registers the given page as an active page
      Parameters:
      page - The page to be registered
    • deregisterPluginListPage

      public void deregisterPluginListPage(@Nonnull PluginListPage page)
      Deregisters the given page as an active page
      Parameters:
      page - The page to be deregistered
    • notifyPluginChange

      public void notifyPluginChange(@Nonnull Map<PluginIdentifier, PluginBase> plugins, @Nonnull PluginIdentifier pluginIdentifier)
      Called when a specific plugin has been changed, updating all active pages
      Parameters:
      plugins - The map of all plugins available
      pluginIdentifier - The identifier of the plugin that has changed