| Constructor and Description |
|---|
ModuleAdapter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<? extends State> |
getStateType() |
void |
initialize(State state)
This function is called when you module is first loaded by the framework
|
void |
postLoad(Bot bot)
This function will be executed just after your module was loaded by a bot.
|
void |
postUnload(Bot bot)
This function will be executed after your module was unloaded.
|
void |
preLoad(Bot bot)
This function will be executed just before your module will be loaded by a bot.
|
void |
preUnload(Bot bot)
This function will be executed just before your module will be unloaded.
|
State |
saveState(Bot bot)
This method is called when the bot wants you to save.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetModuleInfo, processUpdatepublic void initialize(State state)
Moduleinitialize in interface Modulestate - the state last returned by the save function or null, if no previous state has been foundpublic void preLoad(Bot bot)
Modulepublic void postLoad(Bot bot)
Modulepublic void preUnload(Bot bot)
Modulepublic void postUnload(Bot bot)
ModulepostUnload in interface Modulepublic State saveState(Bot bot)
Modulepublic java.lang.Class<? extends State> getStateType()
getStateType in interface Module