Class SecurityVillagers
java.lang.Object
com.alessiodp.securityvillagers.api.SecurityVillagers
-
Method Summary
Modifier and TypeMethodDescriptionstatic SecurityVillagersAPI
getApi()
Get theSecurityVillagersAPI
instancestatic boolean
Flag to know if SecurityVillagers has been hookedstatic void
setApi(SecurityVillagersAPI instance)
Set the SecurityVillagers API instance.
-
Method Details
-
getApi
Get theSecurityVillagersAPI
instance- Returns:
- the
SecurityVillagersAPI
interface - 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
-