Package fr.sandro642.github.hook
Class HookManager
java.lang.Object
fr.sandro642.github.hook.HookManager
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets the file location key based on the resource type.static HookManager
Returns the singleton instance of HookManager.initHook
(ResourceType resourceType) Initializes the hook for the specified resource type.
-
Constructor Details
-
HookManager
public HookManager()
-
-
Method Details
-
initHook
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
-
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
-