Class AbstractComponent

java.lang.Object
com.zachsthings.libcomponents.AbstractComponent

public abstract class AbstractComponent extends Object
  • Constructor Details

    • AbstractComponent

      public AbstractComponent()
  • Method Details

    • setUp

      protected void setUp(ComponentLoader loader, ComponentInformation info)
    • enable

      public abstract void enable()
      This method is called once all of this Component's fields have been set up and all other Component classes have been discovered
    • disable

      public void disable()
    • reload

      public void reload()
    • configure

      protected <T extends ConfigurationBase> T configure(T config)
    • saveConfig

      public <T extends ConfigurationBase> T saveConfig(T config)
    • saveConfig

      public void saveConfig()
    • isEnabled

      public boolean isEnabled()
    • getComponentLoader

      public ComponentLoader getComponentLoader()
    • getInformation

      public ComponentInformation getInformation()
    • getRawConfiguration

      public ConfigurationNode getRawConfiguration()
    • getCommands

      public abstract Map<String,​String> getCommands()