Class AlchemicalArrows

java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
wtf.choco.arrows.AlchemicalArrows
All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter, org.bukkit.command.TabExecutor, org.bukkit.plugin.Plugin

public class AlchemicalArrows
extends org.bukkit.plugin.java.JavaPlugin
The entry point of the AlchemicalArrows plugin and its API.
Author:
Parker Hawke - Choco
  • Field Summary

    Fields
    Modifier and Type Field Description
    static String CHAT_PREFIX  
  • Constructor Summary

    Constructors
    Constructor Description
    AlchemicalArrows()  
  • Method Summary

    Modifier and Type Method Description
    ArrowRegistry getArrowRegistry()
    Get the arrow registry instance used to register arrows to AlchemicalArrows.
    ArrowStateManager getArrowStateManager()
    Get the arrow state manager.
    static AlchemicalArrows getInstance()
    Get an instance of AlchemicalArrows.
    boolean isWorldGuardSupported()
    Whether WorldGuard support is available or not.
    static org.bukkit.NamespacedKey key​(String key)
    Create a NamespacedKey with this plugin.
    void onDisable()  
    void onEnable()  

    Methods inherited from class org.bukkit.plugin.java.JavaPlugin

    getCommand, getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggable, toString

    Methods inherited from class org.bukkit.plugin.PluginBase

    equals, getName, hashCode

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • CHAT_PREFIX

      public static final String CHAT_PREFIX
  • Constructor Details

    • AlchemicalArrows

      public AlchemicalArrows()
  • Method Details

    • onEnable

      public void onEnable()
      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • onDisable

      public void onDisable()
      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class org.bukkit.plugin.java.JavaPlugin
    • getInstance

      public static AlchemicalArrows getInstance()
      Get an instance of AlchemicalArrows.
      Returns:
      the AlchemicalArrows instance
    • key

      public static org.bukkit.NamespacedKey key​(String key)
      Create a NamespacedKey with this plugin.
      Parameters:
      key - the key
      Returns:
      the created namespaced key
    • getArrowRegistry

      public ArrowRegistry getArrowRegistry()
      Get the arrow registry instance used to register arrows to AlchemicalArrows. All arrows must be registered in order to be recognized by the plugin.
      Returns:
      the arrow registry instance
    • getArrowStateManager

      public ArrowStateManager getArrowStateManager()
      Get the arrow state manager.
      Returns:
      the arrow state manager instance
    • isWorldGuardSupported

      public boolean isWorldGuardSupported()
      Whether WorldGuard support is available or not. If the returned value is true, some arrow functionality may be limited in WorldGuard regions.
      Returns:
      true if WorldGuard is present on the server