Class SecurityVillagers
java.lang.Object
com.alessiodp.securityvillagers.api.SecurityVillagers
-
Method Summary
Modifier and TypeMethodDescriptionstatic SecurityVillagersAPIgetApi()Get theSecurityVillagersAPIinstancestatic booleanFlag to know if SecurityVillagers has been hookedstatic voidsetApi(SecurityVillagersAPI instance)Set the SecurityVillagers API instance.
-
Method Details
-
getApi
Get theSecurityVillagersAPIinstance- Returns:
- the
SecurityVillagersAPIinterface - Throws:
IllegalStateException- if SecurityVillagersAPI has not been initialized, in other words, SecurityVillagersAPI has not been loaded
-
setApi
Set the SecurityVillagers API instance. This should not be used.- Parameters:
instance- the SecurityVillagersAPI instance.
-
isFlagHook
public static boolean isFlagHook()Flag to know if SecurityVillagers has been hooked- Returns:
- true if the API has been hooked at least one time
-