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
Modifier and TypeFieldDescriptionstatic final String
static final net.minecraft.advancements.Criterion<?>
Criterion Instance for Internal Use -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
clearActiveTab
(Player player) Clears the active tabstatic NameKey
getActiveTab
(Player player) Gets the active tabstatic com.google.gson.Gson
getGson()
Gets the Gson Instancestatic CrazyAdvancementsAPI
Gets the Instanceboolean
onCommand
(CommandSender sender, Command cmd, String label, String[] args) void
void
onEnable()
void
void
onLoad()
void
onTabComplete
(CommandSender sender, Command cmd, String alias, String[] args) void
reload()
Reloads the API
Currently reloads JSON Advancements and Custom Item Definitionsstatic void
setActiveTab
(Player player, NameKey rootAdvancement) Sets the active tabstatic void
setActiveTab
(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, toString
Methods 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:
onLoad
in interfacePlugin
- Overrides:
onLoad
in classJavaPlugin
-
onEnable
public void onEnable()- Specified by:
onEnable
in interfacePlugin
- Overrides:
onEnable
in classJavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisable
in interfacePlugin
- Overrides:
onDisable
in 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:
onCommand
in interfaceCommandExecutor
- Overrides:
onCommand
in classJavaPlugin
-
onTabComplete
- Specified by:
onTabComplete
in interfaceTabCompleter
- Overrides:
onTabComplete
in classJavaPlugin
-