Package dev.rollczi.litecommands.fabric
Class FabricAbstractPlatform<SOURCE>
java.lang.Object
dev.rollczi.litecommands.platform.AbstractPlatform<SOURCE,dev.rollczi.litecommands.platform.PlatformSettings>
dev.rollczi.litecommands.fabric.FabricAbstractPlatform<SOURCE>
- All Implemented Interfaces:
dev.rollczi.litecommands.platform.Platform<SOURCE,dev.rollczi.litecommands.platform.PlatformSettings>
- Direct Known Subclasses:
FabricClientPlatform,FabricServerPlatform
public abstract class FabricAbstractPlatform<SOURCE>
extends dev.rollczi.litecommands.platform.AbstractPlatform<SOURCE,dev.rollczi.litecommands.platform.PlatformSettings>
implements dev.rollczi.litecommands.platform.Platform<SOURCE,dev.rollczi.litecommands.platform.PlatformSettings>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static booleanprotected final Map<UUID, FabricAbstractCommand<SOURCE>> Fields inherited from class dev.rollczi.litecommands.platform.AbstractPlatform
commandRoutes, senderFactory, settings -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFabricAbstractPlatform(dev.rollczi.litecommands.platform.PlatformSettings settings, dev.rollczi.litecommands.platform.PlatformSenderFactory<SOURCE> factory) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract FabricAbstractCommand<SOURCE> createCommand(dev.rollczi.litecommands.command.CommandRoute<SOURCE> commandRoute, dev.rollczi.litecommands.platform.PlatformInvocationListener<SOURCE> invocationHook, dev.rollczi.litecommands.platform.PlatformSuggestionListener<SOURCE> suggestionHook) protected voidhook(dev.rollczi.litecommands.command.CommandRoute<SOURCE> commandRoute, dev.rollczi.litecommands.platform.PlatformInvocationListener<SOURCE> invocationHook, dev.rollczi.litecommands.platform.PlatformSuggestionListener<SOURCE> suggestionHook) protected abstract voidprotected voidMethods inherited from class dev.rollczi.litecommands.platform.AbstractPlatform
createSender, getConfiguration, getSenderFactory, register, setConfiguration, unregister, unregisterAllMethods 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, getConfiguration, getSenderFactory, register, register, setConfiguration, start, stop, unregister, unregisterAll
-
Field Details
-
fabricCommands
-
COMMAND_API_V2
protected static boolean COMMAND_API_V2
-
-
Constructor Details
-
FabricAbstractPlatform
protected FabricAbstractPlatform(dev.rollczi.litecommands.platform.PlatformSettings settings, dev.rollczi.litecommands.platform.PlatformSenderFactory<SOURCE> factory)
-
-
Method Details
-
registerEvents
protected abstract void registerEvents() -
hook
protected void hook(dev.rollczi.litecommands.command.CommandRoute<SOURCE> commandRoute, dev.rollczi.litecommands.platform.PlatformInvocationListener<SOURCE> invocationHook, dev.rollczi.litecommands.platform.PlatformSuggestionListener<SOURCE> suggestionHook) - Specified by:
hookin classdev.rollczi.litecommands.platform.AbstractPlatform<SOURCE,dev.rollczi.litecommands.platform.PlatformSettings>
-
unhook
- Specified by:
unhookin classdev.rollczi.litecommands.platform.AbstractPlatform<SOURCE,dev.rollczi.litecommands.platform.PlatformSettings>
-
createCommand
protected abstract FabricAbstractCommand<SOURCE> createCommand(dev.rollczi.litecommands.command.CommandRoute<SOURCE> commandRoute, dev.rollczi.litecommands.platform.PlatformInvocationListener<SOURCE> invocationHook, dev.rollczi.litecommands.platform.PlatformSuggestionListener<SOURCE> suggestionHook)
-