Class Manager

java.lang.Object
me.unurled.srcore.api.Manager
All Implemented Interfaces:
org.bukkit.event.Listener

public class Manager extends Object implements org.bukkit.event.Listener
The Manager class is a class that is used to manage data and events.
  • Constructor Details

    • Manager

      public Manager()
      Create a new manager
  • Method Details

    • getInstance

      public static <T extends Manager> T getInstance(@NotNull @NotNull Class<T> clazz)
      Get an instance of a manager
      Type Parameters:
      T - The type of the manager
      Parameters:
      clazz - The class of the manager
      Returns:
      The instance of the manager
    • load

      public void load()
      Load the manager
    • unload

      public void unload()
      Unload the manager
    • saveData

      public void saveData()
      Save the data
    • loadData

      public void loadData()
      Load the data