Package com.zachsthings.libcomponents
Class AbstractComponent
java.lang.Object
com.zachsthings.libcomponents.AbstractComponent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends ConfigurationBase>
Tconfigure(T config)voiddisable()abstract voidenable()This method is called once all of this Component's fields have been set up and all other Component classes have been discoveredbooleanvoidreload()void<T extends ConfigurationBase>
TsaveConfig(T config)protected voidsetUp(ComponentLoader loader, ComponentInformation info)
-
Constructor Details
-
AbstractComponent
public AbstractComponent()
-
-
Method Details
-
setUp
-
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
-
saveConfig
-
saveConfig
public void saveConfig() -
isEnabled
public boolean isEnabled() -
getComponentLoader
-
getInformation
-
getRawConfiguration
-
getCommands
-