Promotion background
Easter Season IS HERE!
10% off limited time offer!
Ends in
00
H
00
M
00
S
limited time offer SAVE 10% NOW →
Packages com.phoenixplugins.sdk.api plugin hooks
com.phoenixplugins.sdk.api.plugin.hooks

Interface HookProvider



  • public interface HookProvider
    The HookProvider interface defines the contract for creating hooks to integrate with other plugins.
    • Method Summary

      Modifier and Type Method and Description
      Hook createHook()
      Creates and returns an instance of the Hook for the specified plugin.
      @NotNull String getDescription()
      Gets the description of the plugin.
      String getName()
      Gets the name of the plugin that this hook is associated with.
      @Nullable HookRegistry getRegistry() 
      @NotNull String getUrl()
      Gets the URL of the plugin (e.g., for documentation or downloads).
      boolean isAvailable()
      Checks whether the target component is available on the platform.
      boolean isCompatible()
      Checks whether this HookProvider is compatible with the current platform.
      boolean isEnabled()
      Checks whether this HookProvider itself is enabled.
      void setDescription(@NotNull String description)
      Sets the description of the plugin.
      void setRegistry(@NotNull HookRegistry registry) 
      void setUrl(@NotNull String url)
      Sets the URL of the plugin.
    • Method Detail

      • createHook

        Hook createHook()
        Creates and returns an instance of the Hook for the specified plugin.
        Returns:
        a new Hook instance.
      • getName

        String getName()
        Gets the name of the plugin that this hook is associated with.
        Returns:
        the name of the plugin as a String.
      • getDescription

        @NotNull
        @NotNull String getDescription()
        Gets the description of the plugin.
        Returns:
        the plugin description as a String.
      • setDescription

        void setDescription(@NotNull
                            @NotNull String description)
        Sets the description of the plugin.
        Parameters:
        description - the plugin description to set.
      • getUrl

        @NotNull
        @NotNull String getUrl()
        Gets the URL of the plugin (e.g., for documentation or downloads).
        Returns:
        the plugin URL as a String.
      • setUrl

        void setUrl(@NotNull
                    @NotNull String url)
        Sets the URL of the plugin.
        Parameters:
        url - the plugin URL to set.
      • isEnabled

        boolean isEnabled()
        Checks whether this HookProvider itself is enabled. If this returns false, the provider will not create new hooks.
        Returns:
        true if the HookProvider is enabled, false otherwise.
      • isAvailable

        boolean isAvailable()
        Checks whether the target component is available on the platform.
        Returns:
        true if the plugin is installed, false otherwise.
      • isCompatible

        boolean isCompatible()
        Checks whether this HookProvider is compatible with the current platform. This can include checking API versions or required dependencies.
        Returns:
        true if the plugin is compatible, false otherwise.
      • getRegistry

        @Nullable
        @Nullable HookRegistry getRegistry()
      • setRegistry

        void setRegistry(@NotNull
                         @NotNull HookRegistry registry)
Last updated about 4 hours ago
My Cart (0 items)

Oops... looks like the spiders padded through here

Add products to your cart and remove them from here Lets buy
This site uses cookies to personalize content, enhance your experience. By continuing, you agree to our cookie use. Learn more