Package com.alessiodp.parties.api
Class Parties
java.lang.Object
com.alessiodp.parties.api.Parties
-
Method Summary
Modifier and TypeMethodDescriptionstatic PartiesAPIgetApi()Get thePartiesAPIinstancestatic booleanFlag to know if Parties has been hookedstatic voidsetApi(PartiesAPI instance) Set the Parties API instance.
-
Method Details
-
getApi
Get thePartiesAPIinstance- Returns:
- the
PartiesAPIinterface - Throws:
IllegalStateException- if PartiesAPI has not been initialized, in other words, PartiesAPI has not been loaded
-
setApi
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
-