Class ConnectLib

java.lang.Object
fr.sandro642.github.ConnectLib

public class ConnectLib extends Object
ConnectLib is the main class of the ConnectorAPI library for Standard API. It provides methods to initialize the library with resource types, routes, and schemas,
See Also:
  • Constructor Details

    • ConnectLib

      public ConnectLib()
  • Method Details

    • initialize

      public static void initialize(ResourceType resourceType, Class<? extends Enum<?>>... routes)
      Init the ConnectLib with the specified resource type and routes.
      Parameters:
      resourceType - the type of resource to initialize
      routes - the routes to be used in the ConnectLib
    • getRoute

      public static String getRoute(String routeName)
      Return the route associated with the given route name.
      Parameters:
      routeName - the name of the route to retrieve
      Returns:
      the route as a String
    • getRoute

      public static String getRoute(Enum<?> routeEnum)
      Return the route associated with the given Enum route. The Enum name is converted to lowercase to match the route names.
      Parameters:
      routeEnum - the Enum representing the route
      Returns:
      the route as a String
    • JobGetInfos

      public static JobGetInfos JobGetInfos()
      Return an instance of JobGetInfos.
      Returns:
      JobGetInfos instance
    • Logger

      public static Logger Logger()
      Return the instance of Logger.
      Returns:
      Logger instance
    • StoreAndRetrieve

      public static StoreAndRetrieve StoreAndRetrieve()
      Return the instance of StoreAndRetrieve.
      Returns:
      StoreAndRetrieve instance
    • YamlUtils

      public static YamlUtils YamlUtils()
      Return the instance of YamlUtils.
      Returns:
      YamlUtils instance
    • MCSupport

      public static MCSupport MCSupport()
      Return the instance of Logs.
      Returns:
      Logs instance
    • HookManager

      public static HookManager HookManager()
      Return the instance of HookManager.
      Returns:
      HookManager instance