Package com.alessiodp.parties.api
Class Parties
- java.lang.Object
-
- com.alessiodp.parties.api.Parties
-
public final class Parties extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PartiesAPIgetApi()Get thePartiesAPIinstancestatic booleanisFlagHook()Flag to know if Parties has been hookedstatic voidsetApi(PartiesAPI instance)Set the Parties API instance.
-
-
-
Method Detail
-
getApi
public static PartiesAPI getApi() throws IllegalStateException
Get thePartiesAPIinstance- Returns:
- the
PartiesAPIinterface - Throws:
IllegalStateException- if PartiesAPI has not been initialized, in other words, PartiesAPI has not been loaded
-
setApi
public static void setApi(PartiesAPI instance)
Set the Parties API instance. This should not be used.- Parameters:
instance- the PartiesAPI instance.
-
isFlagHook
public static boolean isFlagHook()
Flag to know if Parties has been hooked- Returns:
- true if the API has been hooked at least one time
-
-