Class Main

  • All Implemented Interfaces:
    org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter, org.bukkit.command.TabExecutor, org.bukkit.plugin.Plugin

    public class Main
    extends org.bukkit.plugin.java.JavaPlugin
    The main class of the GUI. Here gets everything initialized
    • Constructor Summary

      Constructors 
      Constructor Description
      Main()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      org.bukkit.inventory.ItemStack blockOutput​(int itemNumber, int inventoryNumber)
      Deprecated.
      java.lang.String getColor​(int colorNumber)  
      static Main getInstance()  
      org.bukkit.inventory.ItemStack getLoamStackWithName​(TextIdentifier pIdentifier, short pShort)
      Deprecated.
      org.bukkit.inventory.ItemStack getLoamStackWithName112​(TextIdentifier pIdentifier, short pShort)  
      void loadConfig()  
      void onDisable()  
      void onEnable()
      Will be executed on enable
      void registerCommand​(org.bukkit.command.defaults.BukkitCommand pCommand, org.bukkit.plugin.java.JavaPlugin pPlugin)  
      • Methods inherited from class org.bukkit.plugin.java.JavaPlugin

        getClassLoader, getCommand, getConfig, getDataFolder, 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 Detail

      • Main

        public Main()
    • Method Detail

      • getInstance

        public static Main getInstance()
      • onEnable

        public void onEnable()
        Will be executed on enable
        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
      • loadConfig

        public void loadConfig()
      • getColor

        public java.lang.String getColor​(int colorNumber)
      • blockOutput

        @Deprecated
        public org.bukkit.inventory.ItemStack blockOutput​(int itemNumber,
                                                          int inventoryNumber)
        Deprecated.
        Outputs a block.
        Parameters:
        itemNumber - The item number of the searched item
        inventoryNumber - The inventory number, where the the item can be found
        Returns:
        Returns the searched item (makes it easier for changes)
      • getLoamStackWithName

        @Deprecated
        public org.bukkit.inventory.ItemStack getLoamStackWithName​(TextIdentifier pIdentifier,
                                                                   short pShort)
        Deprecated.
      • getLoamStackWithName112

        public org.bukkit.inventory.ItemStack getLoamStackWithName112​(TextIdentifier pIdentifier,
                                                                      short pShort)
      • registerCommand

        public void registerCommand​(org.bukkit.command.defaults.BukkitCommand pCommand,
                                    org.bukkit.plugin.java.JavaPlugin pPlugin)