Class VillagerTweaksApiProvider

java.lang.Object
org.yuemi.villagertweaks.api.VillagerTweaksApiProvider

public final class VillagerTweaksApiProvider extends Object
Entry point for accessing the VillagerTweaks API.
  • Method Details

    • get

      @Nullable public static @Nullable VillagerTweaksApi get()
      Gets the active instance of the VillagerTweaks API.
      Returns:
      the VillagerTweaksApi instance, or null if the plugin is not loaded yet
    • register

      public static void register(VillagerTweaksApi instance)
      Registers the active instance of the VillagerTweaks API.
      Parameters:
      instance - the active API instance
    • unregister

      public static void unregister()
      Unregisters the active instance of the VillagerTweaks API.