Package com.alessiodp.oreannouncer.api
Class OreAnnouncer
- java.lang.Object
-
- com.alessiodp.oreannouncer.api.OreAnnouncer
-
public final class OreAnnouncer extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OreAnnouncerAPIgetApi()Get theOreAnnouncerAPIinstancestatic booleanisFlagHook()Flag to know if OreAnnouncer has been hookedstatic voidsetApi(OreAnnouncerAPI instance)Set the OreAnnouncer API instance.
-
-
-
Method Detail
-
getApi
public static OreAnnouncerAPI getApi() throws IllegalStateException
Get theOreAnnouncerAPIinstance- Returns:
- Returns the
OreAnnouncerAPIinterface - 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
-
-