Package org.yuemi.villagertweaks.api
Class VillagerTweaksApiProvider
java.lang.Object
org.yuemi.villagertweaks.api.VillagerTweaksApiProvider
Entry point for accessing the VillagerTweaks API.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable VillagerTweaksApiget()Gets the active instance of the VillagerTweaks API.static voidregister(VillagerTweaksApi instance) Registers the active instance of the VillagerTweaks API.static voidUnregisters the active instance of the VillagerTweaks API.
-
Method Details
-
get
Gets the active instance of the VillagerTweaks API.- Returns:
- the VillagerTweaksApi instance, or null if the plugin is not loaded yet
-
register
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.
-