Class SidebarModule
java.lang.Object
net.flectone.pulse.module.message.sidebar.SidebarModule
- All Implemented Interfaces:
ModuleListLocalization<Localization.Message.Sidebar>, ModuleLocalization<Localization.Message.Sidebar>, ModuleSimple
public abstract class SidebarModule
extends Object
implements ModuleListLocalization<Localization.Message.Sidebar>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSidebarModule(FileFacade fileFacade, TaskScheduler taskScheduler, ListenerRegistry listenerRegistry, FPlayerService fPlayerService, RandomGenerator randomUtil, SocialService socialService) -
Method Summary
Modifier and TypeMethodDescriptionconfig()voidabstract voidgetAvailableMessages(FPlayer fPlayer) protected Stringprotected StringgetObjectiveName(FPlayer fPlayer) intgetPlayerIndexOrDefault(int id, int defaultIndex) localization(FPlayer fPlayer) name()intnextInt(int start, int end) voidvoidonEnable()abstract voidvoidsavePlayerIndex(int id, int playerIndex) abstract voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ModuleListLocalization
getCurrentMessage, getNextMessage, getNextMessage, joinMultiListMethods inherited from interface ModuleLocalization
cooldown, cooldownOrThrow, localization, permissionBuilder, sound, soundOrThrowMethods inherited from interface ModuleSimple
childrenBuilder, disablePredicate
-
Constructor Details
-
SidebarModule
protected SidebarModule(FileFacade fileFacade, TaskScheduler taskScheduler, ListenerRegistry listenerRegistry, FPlayerService fPlayerService, RandomGenerator randomUtil, SocialService socialService)
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceModuleSimple
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceModuleSimple
-
name
- Specified by:
namein interfaceModuleSimple
-
config
- Specified by:
configin interfaceModuleSimple
-
permission
- Specified by:
permissionin interfaceModuleSimple
-
localization
- Specified by:
localizationin interfaceModuleLocalization<Localization.Message.Sidebar>
-
getAvailableMessages
- Specified by:
getAvailableMessagesin interfaceModuleListLocalization<Localization.Message.Sidebar>
-
getPlayerIndexOrDefault
public int getPlayerIndexOrDefault(int id, int defaultIndex) - Specified by:
getPlayerIndexOrDefaultin interfaceModuleListLocalization<Localization.Message.Sidebar>
-
nextInt
public int nextInt(int start, int end) - Specified by:
nextIntin interfaceModuleListLocalization<Localization.Message.Sidebar>
-
savePlayerIndex
public void savePlayerIndex(int id, int playerIndex) - Specified by:
savePlayerIndexin interfaceModuleListLocalization<Localization.Message.Sidebar>
-
remove
-
update
-
create
-
create
-
getObjectiveName
-
getLineId
-