Package com.alessiodp.oreannouncer.api
Class OreAnnouncer
java.lang.Object
com.alessiodp.oreannouncer.api.OreAnnouncer
-
Method Summary
Modifier and TypeMethodDescriptionstatic OreAnnouncerAPIgetApi()Get theOreAnnouncerAPIinstancestatic booleanFlag to know if OreAnnouncer has been hookedstatic voidsetApi(OreAnnouncerAPI instance) Set the OreAnnouncer API instance.
-
Method Details
-
getApi
Get theOreAnnouncerAPIinstance- Returns:
- Returns the
OreAnnouncerAPIinterface - Throws:
IllegalStateException- if OreAnnouncerAPI has not been initialized, in other words, OreAnnouncerAPI has not been loaded
-
setApi
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
-