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
Modifier and TypeFieldDescriptionprotected final org.rusherhack.core.logging.ILogger
Logger for this module -
Constructor Summary
ConstructorDescriptionModule
(String name, String description, ModuleCategory category) Module
(String name, ModuleCategory category) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
deserialize
(com.google.gson.JsonElement jsonElement) org.rusherhack.core.logging.ILogger
getName()
List<org.rusherhack.core.setting.Setting<?>>
boolean
isHidden()
boolean
void
registerSettings
(org.rusherhack.core.setting.Setting<?>... settings) void
sendNotification
(org.rusherhack.core.notification.NotificationType type, String message) void
sendNotification
(org.rusherhack.core.notification.NotificationType type, String message, int id) com.google.gson.JsonElement
void
setHidden
(boolean hidden) void
setListening
(boolean state) void
setNotifications
(boolean notifications) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.rusherhack.core.feature.IFeatureConfigurable
getSetting, reset
Methods inherited from interface org.rusherhack.client.api.feature.module.IModule
getMetadata
Methods inherited from interface org.rusherhack.core.interfaces.INamed
getAliases, getDisplayName
Methods 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:
getName
in interfaceorg.rusherhack.core.interfaces.INamed
-
getDescription
- Specified by:
getDescription
in interfaceorg.rusherhack.core.feature.IFeature
-
getCategory
- Specified by:
getCategory
in interfaceIModule
- Returns:
- Category of this module
-
sendNotification
public void sendNotification(org.rusherhack.core.notification.NotificationType type, String message) - Specified by:
sendNotification
in interfaceorg.rusherhack.core.notification.INotifiable
-
sendNotification
public void sendNotification(org.rusherhack.core.notification.NotificationType type, String message, int id) - Specified by:
sendNotification
in interfaceorg.rusherhack.core.notification.INotifiable
-
registerSettings
public void registerSettings(org.rusherhack.core.setting.Setting<?>... settings) - Specified by:
registerSettings
in interfaceorg.rusherhack.core.feature.IFeatureConfigurable
-
getSettings
- Specified by:
getSettings
in interfaceorg.rusherhack.core.feature.IFeatureConfigurable
-
isHidden
public boolean isHidden()- Specified by:
isHidden
in 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:
serialize
in interfaceorg.rusherhack.core.serialize.ISerializable<com.google.gson.JsonElement>
-
deserialize
public boolean deserialize(com.google.gson.JsonElement jsonElement) - Specified by:
deserialize
in interfaceorg.rusherhack.core.serialize.ISerializable<com.google.gson.JsonElement>
-
isListening
public boolean isListening()- Specified by:
isListening
in interfaceorg.rusherhack.core.event.listener.EventListener
-
setListening
public void setListening(boolean state) -
getLogger
public org.rusherhack.core.logging.ILogger getLogger()- Specified by:
getLogger
in interfaceorg.rusherhack.core.logging.ILoggable
-
createCommand
-