Package wtf.choco.arrows
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 StringCHAT_PREFIX -
Constructor Summary
Constructors Constructor Description AlchemicalArrows() -
Method Summary
Modifier and Type Method Description ArrowRegistrygetArrowRegistry()Get the arrow registry instance used to register arrows to AlchemicalArrows.ArrowStateManagergetArrowStateManager()Get the arrow state manager.static AlchemicalArrowsgetInstance()Get an instance of AlchemicalArrows.booleanisWorldGuardSupported()Whether WorldGuard support is available or not.static org.bukkit.NamespacedKeykey(String key)Create a NamespacedKey with this plugin.voidonDisable()voidonEnable()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, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
-
Field Details
-
CHAT_PREFIX
-
-
Constructor Details
-
AlchemicalArrows
public AlchemicalArrows()
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onDisablein classorg.bukkit.plugin.java.JavaPlugin
-
getInstance
Get an instance of AlchemicalArrows.- Returns:
- the AlchemicalArrows instance
-
key
Create a NamespacedKey with this plugin.- Parameters:
key- the key- Returns:
- the created namespaced key
-
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
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
-