Class NpcApiProvider

java.lang.Object
lol.pyr.znpcsplus.api.NpcApiProvider

public class NpcApiProvider extends Object
Provider for the registered api instance
  • Method Summary

    Modifier and Type
    Method
    Description
    static NpcApi
    get()
    Static method that returns the api instance of the plugin
    static void
    register(org.bukkit.plugin.Plugin plugin, NpcApi api)
    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
    static 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • get

      public static NpcApi get()
      Static method that returns the api instance of the plugin
      Returns:
      The instance of the api for the ZNPCsPlus plugin
    • register

      public static void register(org.bukkit.plugin.Plugin plugin, NpcApi api)
      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 plugin
      api - 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