Package lol.pyr.znpcsplus.api
Class NpcApiProvider
java.lang.Object
lol.pyr.znpcsplus.api.NpcApiProvider
Provider for the registered api instance
-
Method Summary
Modifier and TypeMethodDescriptionstatic NpcApi
get()
Static method that returns the api instance of the pluginstatic void
Internal method used to register the main instance of the plugin as the api provider You probably shouldn't call this method under any circumstancesstatic void
Internal method used to unregister the plugin from the provider when the plugin shuts down You probably shouldn't call this method under any circumstances
-
Method Details
-
get
Static method that returns the api instance of the plugin- Returns:
- The instance of the api for the ZNPCsPlus plugin
-
register
Internal method used to register the main instance of the plugin as the api provider You probably shouldn't call this method under any circumstances- Parameters:
plugin
- Instance of the ZNPCsPlus pluginapi
- Instance of the ZNPCsPlus api
-
unregister
public static void unregister()Internal method used to unregister the plugin from the provider when the plugin shuts down You probably shouldn't call this method under any circumstances
-