Class CrazyAdvancementsAPI
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
eu.endercentral.crazy_advancements.CrazyAdvancementsAPI
- All Implemented Interfaces:
CommandExecutor,TabCompleter,TabExecutor,Listener,Plugin
Represents the API's Plugin
- Author:
- Axel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final net.minecraft.advancements.Criterion<?>Criterion Instance for Internal Use -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclearActiveTab(Player player) Clears the active tabstatic NameKeygetActiveTab(Player player) Gets the active tabstatic com.google.gson.GsongetGson()Gets the Gson Instancestatic CrazyAdvancementsAPIGets the InstancebooleanonCommand(CommandSender sender, Command cmd, String label, String[] args) voidvoidonEnable()voidvoidonLoad()voidonTabComplete(CommandSender sender, Command cmd, String alias, String[] args) voidreload()Reloads the API
Currently reloads JSON Advancements and Custom Item Definitionsstatic voidsetActiveTab(Player player, NameKey rootAdvancement) Sets the active tabstatic voidsetActiveTab(Player player, String rootAdvancement) Sets the active tabMethods inherited from class org.bukkit.plugin.java.JavaPlugin
getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, isEnabled, isNaggable, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
-
Field Details
-
API_NAMESPACE
- See Also:
-
CRITERION
public static final net.minecraft.advancements.Criterion<?> CRITERIONCriterion Instance for Internal Use
-
-
Constructor Details
-
CrazyAdvancementsAPI
public CrazyAdvancementsAPI()
-
-
Method Details
-
reload
public void reload()Reloads the API
Currently reloads JSON Advancements and Custom Item Definitions -
onLoad
public void onLoad()- Specified by:
onLoadin interfacePlugin- Overrides:
onLoadin classJavaPlugin
-
onEnable
public void onEnable()- Specified by:
onEnablein interfacePlugin- Overrides:
onEnablein classJavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisablein interfacePlugin- Overrides:
onDisablein classJavaPlugin
-
getInstance
Gets the Instance- Returns:
- The Instance
-
getGson
public static com.google.gson.Gson getGson()Gets the Gson Instance- Returns:
- The Gson Instance
-
onJoin
-
onQuit
-
clearActiveTab
Clears the active tab- Parameters:
player- The player whose Tab should be cleared
-
setActiveTab
Sets the active tab- Parameters:
player- The player whose Tab should be changedrootAdvancement- The name of the tab to change to
-
setActiveTab
Sets the active tab- Parameters:
player- The player whose Tab should be changedrootAdvancement- The name of the tab to change to
-
getActiveTab
Gets the active tab- Parameters:
player- Player to check- Returns:
- The active Tab
-
onCommand
- Specified by:
onCommandin interfaceCommandExecutor- Overrides:
onCommandin classJavaPlugin
-
onTabComplete
- Specified by:
onTabCompletein interfaceTabCompleter- Overrides:
onTabCompletein classJavaPlugin
-