Class Module
java.lang.Object
org.rusherhack.client.api.feature.module.Module
- All Implemented Interfaces:
IModule,Globals,org.rusherhack.core.event.listener.EventListener,org.rusherhack.core.feature.IFeature,org.rusherhack.core.feature.IFeatureConfigurable,org.rusherhack.core.interfaces.IHideable,org.rusherhack.core.interfaces.INamed,org.rusherhack.core.logging.ILoggable,org.rusherhack.core.notification.INotifiable,org.rusherhack.core.serialize.ISerializable<com.google.gson.JsonElement>,org.rusherhack.core.serialize.JsonSerializable
- Direct Known Subclasses:
ToggleableModule
public abstract class Module
extends Object
implements IModule, org.rusherhack.core.event.listener.EventListener, org.rusherhack.core.logging.ILoggable, Globals
A base module with no implementation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.rusherhack.core.logging.ILoggerLogger for this module -
Constructor Summary
ConstructorsConstructorDescriptionModule(String name, String description, ModuleCategory category) Module(String name, ModuleCategory category) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleandeserialize(com.google.gson.JsonElement jsonElement) org.rusherhack.core.logging.ILoggergetName()List<org.rusherhack.core.setting.Setting<?>>booleanisHidden()booleanvoidregisterSettings(org.rusherhack.core.setting.Setting<?>... settings) voidsendNotification(org.rusherhack.core.notification.NotificationType type, String message) voidsendNotification(org.rusherhack.core.notification.NotificationType type, String message, int id) com.google.gson.JsonElementvoidsetHidden(boolean hidden) voidsetListening(boolean state) voidsetNotifications(boolean notifications) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.rusherhack.core.feature.IFeatureConfigurable
getSetting, resetMethods inherited from interface org.rusherhack.client.api.feature.module.IModule
getMetadataMethods inherited from interface org.rusherhack.core.interfaces.INamed
getAliases, getDisplayNameMethods inherited from interface org.rusherhack.core.serialize.ISerializable
shouldAutoSave, shouldSerialize
-
Field Details
-
logger
protected final org.rusherhack.core.logging.ILogger loggerLogger for this module
-
-
Constructor Details
-
Module
-
Module
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.rusherhack.core.interfaces.INamed
-
getDescription
- Specified by:
getDescriptionin interfaceorg.rusherhack.core.feature.IFeature
-
getCategory
- Specified by:
getCategoryin interfaceIModule- Returns:
- Category of this module
-
sendNotification
public void sendNotification(org.rusherhack.core.notification.NotificationType type, String message) - Specified by:
sendNotificationin interfaceorg.rusherhack.core.notification.INotifiable
-
sendNotification
public void sendNotification(org.rusherhack.core.notification.NotificationType type, String message, int id) - Specified by:
sendNotificationin interfaceorg.rusherhack.core.notification.INotifiable
-
registerSettings
public void registerSettings(org.rusherhack.core.setting.Setting<?>... settings) - Specified by:
registerSettingsin interfaceorg.rusherhack.core.feature.IFeatureConfigurable
-
getSettings
- Specified by:
getSettingsin interfaceorg.rusherhack.core.feature.IFeatureConfigurable
-
isHidden
public boolean isHidden()- Specified by:
isHiddenin interfaceorg.rusherhack.core.interfaces.IHideable
-
setHidden
public void setHidden(boolean hidden) -
areNotificationsEnabled
public boolean areNotificationsEnabled() -
setNotifications
public void setNotifications(boolean notifications) -
serialize
public com.google.gson.JsonElement serialize()- Specified by:
serializein interfaceorg.rusherhack.core.serialize.ISerializable<com.google.gson.JsonElement>
-
deserialize
public boolean deserialize(com.google.gson.JsonElement jsonElement) - Specified by:
deserializein interfaceorg.rusherhack.core.serialize.ISerializable<com.google.gson.JsonElement>
-
isListening
public boolean isListening()- Specified by:
isListeningin interfaceorg.rusherhack.core.event.listener.EventListener
-
setListening
public void setListening(boolean state) -
getLogger
public org.rusherhack.core.logging.ILogger getLogger()- Specified by:
getLoggerin interfaceorg.rusherhack.core.logging.ILoggable
-
createCommand
-