Class Patchwork

java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
me.totalfreedom.base.Patchwork
All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter, org.bukkit.command.TabExecutor, org.bukkit.plugin.Plugin

public class Patchwork extends org.bukkit.plugin.java.JavaPlugin
The base class for Patchwork.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the AdminChatDisplay for this plugin.
    Gets the EventBus for this plugin.
    Gets the FreedomExecutor for this plugin.
    static Patchwork
    Provides this plugin instance through a safe static method.
    Get's the Registration object for this plugin.
    void
     
    void
     

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

    getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getPluginMeta, getProvidingPlugin, getResource, getServer, getTextResource, init, init, 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

    Methods inherited from interface org.bukkit.plugin.Plugin

    getComponentLogger, getLog4JLogger, getSLF4JLogger
  • Constructor Details

    • Patchwork

      public Patchwork()
  • Method Details

    • getInstance

      public static Patchwork getInstance()
      Provides this plugin instance through a safe static method. This is effectively the same thing as using JavaPlugin.getPlugin(Class)
      Returns:
      the plugin instance
    • onDisable

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

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

      public FreedomExecutor getExecutor()
      Gets the FreedomExecutor for this plugin.
      Returns:
      the FreedomExecutor
    • getRegistrations

      public Registration getRegistrations()
      Get's the Registration object for this plugin. This object contains every registry class for the various features provided by this plugin.
      Returns:
      the Registration object
    • getEventBus

      public EventBus getEventBus()
      Gets the EventBus for this plugin. The EventBus is used to register and listen to custom events provided by Freedom Network Suite.
      Returns:
      the EventBus
    • getAdminChatDisplay

      public AdminChatDisplay getAdminChatDisplay()
      Gets the AdminChatDisplay for this plugin. The AdminChatDisplay is used to display messages sent in adminchat.
      Returns:
      the AdminChatDisplay