Class TictactoeModule
java.lang.Object
net.flectone.pulse.module.command.tictactoe.TictactoeModule
- All Implemented Interfaces:
ModuleCommand<Localization.Command.Tictactoe>, ModuleLocalization<Localization.Command.Tictactoe>, ModuleSimple, org.incendo.cloud.execution.CommandExecutionHandler<FPlayer>
public class TictactoeModule
extends Object
implements ModuleCommand<Localization.Command.Tictactoe>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.incendo.cloud.execution.CommandExecutionHandler
org.incendo.cloud.execution.CommandExecutionHandler.FutureCommandExecutionHandler<C> -
Constructor Summary
ConstructorsConstructorDescriptionTictactoeModule(FileFacade fileFacade, FPlayerService fPlayerService, TictactoeService tictactoeService, ProxySender proxySender, SocialService socialService, CommandParserProvider commandParserProvider, com.google.gson.Gson gson, IgnoreSender ignoreSender, DisableSender disableSender, MessagePipeline messagePipeline, MessageDispatcher messageDispatcher, ModuleController moduleController, ModuleCommandController commandModuleController, ProxyRegistry proxyRegistry, ListenerRegistry listenerRegistry) -
Method Summary
Modifier and TypeMethodDescriptionconfig()voidvoidexecuteMove(FPlayer fPlayer, org.incendo.cloud.context.CommandContext<FPlayer> commandContext) getMoveMessage(TicTacToe ticTacToe, FPlayer fPlayer, int typeTile, String move) localization(FPlayer fPlayer) name()voidvoidonEnable()voidsendCreateMessage(FPlayer fPlayer, FPlayer fReceiver, TicTacToe ticTacToe, UUID metadataUUID) voidsendMoveMessage(FPlayer fPlayer, FPlayer fReceiver, TicTacToe ticTacToe, int typeTitle, String move, UUID metadataUUID) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.incendo.cloud.execution.CommandExecutionHandler
executeFutureMethods inherited from interface ModuleCommand
executeMethods inherited from interface ModuleLocalization
cooldown, cooldownOrThrow, localization, permissionBuilder, sound, soundOrThrowMethods inherited from interface ModuleSimple
childrenBuilder, disablePredicate
-
Constructor Details
-
TictactoeModule
@Inject public TictactoeModule(FileFacade fileFacade, FPlayerService fPlayerService, TictactoeService tictactoeService, ProxySender proxySender, SocialService socialService, CommandParserProvider commandParserProvider, com.google.gson.Gson gson, IgnoreSender ignoreSender, DisableSender disableSender, MessagePipeline messagePipeline, MessageDispatcher messageDispatcher, ModuleController moduleController, ModuleCommandController commandModuleController, ProxyRegistry proxyRegistry, ListenerRegistry listenerRegistry)
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceModuleSimple
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceModuleSimple
-
execute
public void execute(FPlayer fPlayer, org.incendo.cloud.context.CommandContext<FPlayer> commandContext) - Specified by:
executein interfaceModuleCommand<Localization.Command.Tictactoe>
-
name
- Specified by:
namein interfaceModuleSimple
-
config
- Specified by:
configin interfaceModuleCommand<Localization.Command.Tictactoe>- Specified by:
configin interfaceModuleSimple
-
permission
- Specified by:
permissionin interfaceModuleSimple
-
localization
- Specified by:
localizationin interfaceModuleLocalization<Localization.Command.Tictactoe>
-
sendCreateMessage
-
sendMoveMessage
-
executeMove
-
getMoveMessage
public BiFunction<FPlayer, Localization.Command.Tictactoe, String> getMoveMessage(TicTacToe ticTacToe, FPlayer fPlayer, int typeTile, String move)
-