Interface AdditionsPlugin


public interface AdditionsPlugin
The main AdditionsPlus plugin class that contains the API, all the utils and other feature handlers.
  • Method Details

    • getAPI

      AdditionsAPI getAPI()
      Get the AdditionsAPI class. This class contains everything you need to interact with Additions' features.
      Returns:
      The API class.
    • getYAMLManager

      YAMLManager getYAMLManager()
      Get the general YAMLManager.
      Returns:
      The YAMLManager.
    • getVaultSupport

      @Nullable AdditionsVaultSupport getVaultSupport()
      Get the AdditionsVaultSupport hook.
      Returns:
      AdditionsVaultSupport when Vault was detected, otherwise null.
    • getCustomMenuManager

      CustomMenuManager getCustomMenuManager()
      Returns:
      The CustomMenuManager.
    • getUtils

      AdditionsUtils getUtils()
      Get the general AdditionsUtils.
      Returns:
      The general AdditionsUtils.
    • getMenuUtils

      MenuUtils getMenuUtils()
      Get the MenuUtils used to check conditions of custom menus.
      Returns:
      The MenuUtils.
    • getActionUtils

      ActionUtils getActionUtils()
      Get the ActionUtils used to check conditions of actions.
      Returns:
      The ActionUtils.
    • getNMS

      NMS getNMS()
      Get the NMS manager used for version-specific code.
      Returns:
      NMS manager.
    • getActionQueuer

      ActionQueuer getActionQueuer()
      Get the official ActionQueuer 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

      Map<String,BaseCmd> getCommandCommands()
      Get a Map of all custom command commands.
      Returns:
      Map of all custom command commands.
    • getGeneralCommands

      Map<String,BaseCmd> getGeneralCommands()
      Get a Map of all general commands.
      Returns:
      Map of all general commands.
    • getItemCommands

      Map<String,BaseCmd> getItemCommands()
      Get a Map of all item commands.
      Returns:
      Map of all item commands.
    • getMenuCommands

      Map<String,BaseCmd> getMenuCommands()
      Get a Map 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

      HashMap<org.bukkit.entity.Player,String> getLanguages()
      Get a HashMap of the ProtocolLib language that players have selected.
      Returns:
      HashMap with the Player and their selected languages.
    • getActions

      Get a HashMap of all AdditionsAction and their identifiers.
      Returns:
      HashMap of all action identifiers and their AdditionsAction information.
    • getEvents

      Get a HashMap of all AdditionsEvent and their identifiers.
      Returns:
      HashMap of all event identifiers and their AdditionsEvent.
    • 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 the AnimationManager that allows you to register animations.
      Returns:
      The AnimationManager.
      Since:
      1.0.3