Class AtreusApiProvider

java.lang.Object
id.luckynetwork.dev.lyrams.atreus.api.AtreusApiProvider

public class AtreusApiProvider extends Object
  • Constructor Details

    • AtreusApiProvider

      public AtreusApiProvider()
  • Method Details

    • register

      public static void register(AtreusAPI api)
      "This function sets the global reference to the AtreusAPI object that was passed in."
      Parameters:
      api - The AtreusAPI instance that is being registered.
    • get

      @NonNull public static @NonNull AtreusAPI get() throws NotLoadedException
      If the global reference is null, throw an exception. Otherwise, return the global reference
      Returns:
      The DataLoaderAPI object
      Throws:
      NotLoadedException