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 net.minecraft.advancements.Criterion
Criterion Instance for Internal Use -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
clearActiveTab
(Player player) Clears the active tabstatic NameKey
getActiveTab
(Player player) Gets the active tabstatic CrazyAdvancementsAPI
Gets the Instanceboolean
onCommand
(CommandSender sender, Command cmd, String label, String[] args) void
void
onEnable()
void
void
onLoad()
onTabComplete
(CommandSender sender, Command cmd, String alias, String[] args) void
static 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
-
CRITERION
public static final net.minecraft.advancements.Criterion CRITERIONCriterion Instance for Internal Use
-
-
Constructor Details
-
CrazyAdvancementsAPI
public CrazyAdvancementsAPI()
-
-
Method Details
-
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
-
onJoin
-
quit
-
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
-