Class SecurityVillagers

java.lang.Object
com.alessiodp.securityvillagers.api.SecurityVillagers

public final class SecurityVillagers extends Object
  • Method Details

    • getApi

      public static SecurityVillagersAPI getApi() throws IllegalStateException
      Get the SecurityVillagersAPI instance
      Returns:
      the SecurityVillagersAPI interface
      Throws:
      IllegalStateException - if SecurityVillagersAPI has not been initialized, in other words, SecurityVillagersAPI has not been loaded
    • setApi

      public static void setApi(SecurityVillagersAPI instance)
      Set the SecurityVillagers API instance. This should not be used.
      Parameters:
      instance - the SecurityVillagersAPI instance.
    • isFlagHook

      public static boolean isFlagHook()
      Flag to know if SecurityVillagers has been hooked
      Returns:
      true if the API has been hooked at least one time