Class AbstractPlatform<SENDER,C extends PlatformSettings>
java.lang.Object
dev.rollczi.litecommands.platform.AbstractPlatform<SENDER,C>
- All Implemented Interfaces:
Platform<SENDER,C>
- Direct Known Subclasses:
AbstractSimplePlatform
public abstract class AbstractPlatform<SENDER,C extends PlatformSettings>
extends Object
implements Platform<SENDER,C>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidhook(CommandRoute<SENDER> commandRoute, PlatformInvocationListener<SENDER> invocationHook, PlatformSuggestionListener<SENDER> suggestionHook) final voidregister(CommandRoute<SENDER> commandRoute, PlatformInvocationListener<SENDER> invocationHook, PlatformSuggestionListener<SENDER> suggestionHook) voidsetConfiguration(C liteConfiguration) protected abstract voidunhook(CommandRoute<SENDER> commandRoute) final voidunregister(CommandRoute<SENDER> commandRoute) final voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.rollczi.litecommands.platform.Platform
createSender, getSenderFactory, register, start, stop
-
Field Details
-
settings
-
commandRoutes
-
-
Constructor Details
-
AbstractPlatform
-
-
Method Details
-
setConfiguration
- Specified by:
setConfigurationin interfacePlatform<SENDER,C extends PlatformSettings>
-
getConfiguration
- Specified by:
getConfigurationin interfacePlatform<SENDER,C extends PlatformSettings>
-
register
public final void register(CommandRoute<SENDER> commandRoute, PlatformInvocationListener<SENDER> invocationHook, PlatformSuggestionListener<SENDER> suggestionHook) - Specified by:
registerin interfacePlatform<SENDER,C extends PlatformSettings>
-
unregister
- Specified by:
unregisterin interfacePlatform<SENDER,C extends PlatformSettings>
-
unregisterAll
public final void unregisterAll()- Specified by:
unregisterAllin interfacePlatform<SENDER,C extends PlatformSettings>
-
hook
protected abstract void hook(CommandRoute<SENDER> commandRoute, PlatformInvocationListener<SENDER> invocationHook, PlatformSuggestionListener<SENDER> suggestionHook) -
unhook
-