Package net.gcnt.additionsplus.api
Interface AdditionsPlugin
public interface AdditionsPlugin
The main AdditionsPlus plugin class that contains the API, all the utils and other feature handlers.
-
Method Summary
Modifier and TypeMethodDescriptionGet the officialActionQueuer
used for queuing actions.Get aHashMap
of allAdditionsAction
and their identifiers.Get theActionUtils
used to check conditions of actions.Get theAnimationManager
that allows you to register animations.getAPI()
Get theAdditionsAPI
class.Get aMap
of all custom command commands.Get theCustomMenuManager
.Get the main AdditionsPlus plugin data folder used for storing plugin data files.Get aHashMap
of allAdditionsEvent
and their identifiers.Get aMap
of all general commands.Get aMap
of all item commands.Get the menu creation item enchantments' setup instance.Get the menu creation item flag setup instance.Get the menu creation item lore setup instance.Get the menu creation item renaming setup instance.Get aHashMap
of the ProtocolLib language that players have selected.Get aMap
of all menu commands.Get theMenuUtils
used to check conditions of custom menus.getNMS()
Get theNMS
manager used for version-specific code.Get the GCNT Updater used for update checking.getUtils()
Get the generalAdditionsUtils
.Get theAdditionsVaultSupport
hook.Get the generalYAMLManager
.void
Load all AdditionsPlus (sub) commands.void
Start the interval that executes all queued actions.void
Start the interval that updates the interval actions.void
Start the interval that updates the player scoreboards.void
Start the interval that updates the player tablists.void
Start the automatic update checker.
-
Method Details
-
getAPI
AdditionsAPI getAPI()Get theAdditionsAPI
class. This class contains everything you need to interact with Additions' features.- Returns:
- The API class.
-
getYAMLManager
YAMLManager getYAMLManager()Get the generalYAMLManager
.- Returns:
- The
YAMLManager
.
-
getVaultSupport
Get theAdditionsVaultSupport
hook.- Returns:
AdditionsVaultSupport
when Vault was detected, otherwise null.
-
getCustomMenuManager
CustomMenuManager getCustomMenuManager()Get theCustomMenuManager
.- Returns:
- The
CustomMenuManager
.
-
getUtils
AdditionsUtils getUtils()Get the generalAdditionsUtils
.- Returns:
- The general
AdditionsUtils
.
-
getMenuUtils
MenuUtils getMenuUtils()Get theMenuUtils
used to check conditions of custom menus.- Returns:
- The
MenuUtils
.
-
getActionUtils
ActionUtils getActionUtils()Get theActionUtils
used to check conditions of actions.- Returns:
- The
ActionUtils
.
-
getNMS
NMS getNMS()Get theNMS
manager used for version-specific code.- Returns:
NMS
manager.
-
getActionQueuer
ActionQueuer getActionQueuer()Get the officialActionQueuer
used for queuing actions.- Returns:
- The
ActionQueuer
.
-
loadCommands
void loadCommands()Load all AdditionsPlus (sub) commands. -
startActionsQueuer
void startActionsQueuer()Start the interval that executes all queued actions. -
startIntervalScheduler
void startIntervalScheduler()Start the interval that updates the interval actions. -
startIntervalScoreboards
void startIntervalScoreboards()Start the interval that updates the player scoreboards. -
startIntervalTablists
void startIntervalTablists()Start the interval that updates the player tablists. -
startUpdateChecker
void startUpdateChecker()Start the automatic update checker. -
getUpdater
GCNTUpdater getUpdater()Get the GCNT Updater used for update checking.- Returns:
- The GCNT Updater.
-
getCommandCommands
Get aMap
of all custom command commands.- Returns:
- Map of all custom command commands.
-
getGeneralCommands
Get aMap
of all general commands.- Returns:
- Map of all general commands.
-
getItemCommands
Get aMap
of all item commands.- Returns:
- Map of all item commands.
-
getMenuCommands
Get aMap
of all menu commands.- Returns:
- Map of all menu commands.
-
getDataFolder
File getDataFolder()Get the main AdditionsPlus plugin data folder used for storing plugin data files.- Returns:
File
that links to the AdditionsPlus plugin data folder.
-
getLanguages
Get aHashMap
of the ProtocolLib language that players have selected.- Returns:
HashMap
with the Player and their selected languages.
-
getActions
HashMap<String,AdditionsAction> getActions()Get aHashMap
of allAdditionsAction
and their identifiers.- Returns:
HashMap
of all action identifiers and theirAdditionsAction
information.
-
getEvents
HashMap<String,AdditionsEvent> getEvents()Get aHashMap
of allAdditionsEvent
and their identifiers.- Returns:
HashMap
of all event identifiers and theirAdditionsEvent
.
-
getItemRenameMenu
AdditionsSubMenu getItemRenameMenu()Get the menu creation item renaming setup instance.- Returns:
- The Item renaming menu.
-
getItemEnchantMenu
AdditionsSubMenu getItemEnchantMenu()Get the menu creation item enchantments' setup instance.- Returns:
- The ItemFlag enchantments menu.
-
getItemLoreMenu
AdditionsSubMenu getItemLoreMenu()Get the menu creation item lore setup instance.- Returns:
- The Item Lore setup menu.
-
getItemFlagMenu
AdditionsSubMenu getItemFlagMenu()Get the menu creation item flag setup instance.- Returns:
- The ItemFlag setup menu.
-
getAnimationManager
AnimationManager getAnimationManager()Get theAnimationManager
that allows you to register animations.- Returns:
- The
AnimationManager
. - Since:
- 1.0.3
-