Class OreAnnouncer

java.lang.Object
com.alessiodp.oreannouncer.api.OreAnnouncer

public final class OreAnnouncer extends Object
  • Method Details

    • getApi

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

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

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