Class HookManager

java.lang.Object
fr.sandro642.github.hook.HookManager

public class HookManager extends Object
HookManager is a class that manages hooks for different resource types. It allows for the initialization and management of hooks based on the specified resource type.
See Also:
  • Constructor Details

    • HookManager

      public HookManager()
  • Method Details

    • initHook

      public ResourceType initHook(ResourceType resourceType)
      Initializes the hook for the specified resource type. * This method sets the resource type for the hook manager and returns the initialized resource type.
      Parameters:
      resourceType -
      Returns:
      the initialized resource type
    • FILE_LOCATION_KEY

      public void FILE_LOCATION_KEY()
      Sets the file location key based on the resource type. This method updates the store with the file location key based on the resource type. It handles different resource types such as MC_RESOURCES, MAIN_RESOURCES, and TEST_RESOURCES.
    • BASE_PATH

      public String BASE_PATH()
    • getInstance

      public static HookManager getInstance()
      Returns the singleton instance of HookManager. This method ensures that only one instance of HookManager is created and returned.
      Returns:
      the singleton instance of HookManager