Class GenesisAddon

java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
studio.magemonkey.genesis.api.GenesisAddon
All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter, org.bukkit.command.TabExecutor, org.bukkit.plugin.Plugin
Direct Known Subclasses:
GenesisAddonConfigurable

public abstract class GenesisAddon extends org.bukkit.plugin.java.JavaPlugin
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    createStorage(org.bukkit.plugin.Plugin plugin, String name)
    Creates store for an addon
    protected void
    Called to disable the addon
    abstract void
    Disables the addon
    protected void
    Called to enable the addon
    abstract void
    Enables the addon
    abstract void
     
    abstract void
    genesisReloaded(org.bukkit.command.CommandSender sender)
     
    abstract String
    Get the name of the addon
    final Genesis
    Get an instance of the Genesis class
    abstract String
    Get the version required for the addon to work
    protected double
     
    void
     
    void
     
    void
    Prints information in the info logger
    void
    Prints a serve statement in the logger
    void
    Prints a warning in the warning logger
    void
    reload(org.bukkit.command.CommandSender sender)
    Called to reload the addon

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

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

    Methods inherited from class org.bukkit.plugin.PluginBase

    equals, getName, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GenesisAddon

      public GenesisAddon()
  • 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
    • enable

      protected void enable()
      Called to enable the addon
    • disable

      protected void disable()
      Called to disable the addon
    • reload

      public void reload(org.bukkit.command.CommandSender sender)
      Called to reload the addon
      Parameters:
      sender - the sender of the command
    • printSevere

      public void printSevere(String msg)
      Prints a serve statement in the logger
      Parameters:
      msg - the message to log
    • printWarning

      public void printWarning(String msg)
      Prints a warning in the warning logger
      Parameters:
      msg - the message to log
    • printInfo

      public void printInfo(String msg)
      Prints information in the info logger
      Parameters:
      msg - message to log
    • getGenesis

      public final Genesis getGenesis()
      Get an instance of the Genesis class
      Returns:
      instance of class
    • getWorth

      protected double getWorth(String s)
    • createStorage

      public GenesisAddonStorage createStorage(org.bukkit.plugin.Plugin plugin, String name)
      Creates store for an addon
      Parameters:
      plugin - the plugin addon
      name - the name of the addon
      Returns:
      new storage for an addon
    • getAddonName

      public abstract String getAddonName()
      Get the name of the addon
      Returns:
      name of addon
    • getRequiredGenesisVersion

      public abstract String getRequiredGenesisVersion()
      Get the version required for the addon to work
      Returns:
      version required
    • enableAddon

      public abstract void enableAddon()
      Enables the addon
    • genesisFinishedLoading

      public abstract void genesisFinishedLoading()
    • disableAddon

      public abstract void disableAddon()
      Disables the addon
    • genesisReloaded

      public abstract void genesisReloaded(org.bukkit.command.CommandSender sender)