Package dev.rollczi.litecommands.fabric
Class FabricAbstractPlatform<SOURCE>
java.lang.Object
dev.rollczi.litecommands.platform.AbstractPlatform<SOURCE,LiteFabricSettings>
dev.rollczi.litecommands.fabric.FabricAbstractPlatform<SOURCE>
- All Implemented Interfaces:
dev.rollczi.litecommands.platform.Platform<SOURCE,LiteFabricSettings>
- Direct Known Subclasses:
FabricClientPlatform,FabricServerPlatform
public abstract class FabricAbstractPlatform<SOURCE>
extends dev.rollczi.litecommands.platform.AbstractPlatform<SOURCE,LiteFabricSettings>
implements dev.rollczi.litecommands.platform.Platform<SOURCE,LiteFabricSettings>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static booleanprotected final Map<UUID, FabricCommand<SOURCE>> Fields inherited from class dev.rollczi.litecommands.platform.AbstractPlatform
commandRoutes, settings -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFabricAbstractPlatform(LiteFabricSettings settings, dev.rollczi.litecommands.permission.PermissionService permissionService) -
Method Summary
Modifier and TypeMethodDescriptionprotected FabricCommand<SOURCE> createCommand(dev.rollczi.litecommands.command.CommandRoute<SOURCE> command, dev.rollczi.litecommands.platform.PlatformInvocationListener<SOURCE> invocationHook, dev.rollczi.litecommands.platform.PlatformSuggestionListener<SOURCE> suggestionHook, dev.rollczi.litecommands.permission.PermissionService permissionService) protected voidhook(dev.rollczi.litecommands.command.CommandRoute<SOURCE> commandRoute, dev.rollczi.litecommands.platform.PlatformInvocationListener<SOURCE> invocationHook, dev.rollczi.litecommands.platform.PlatformSuggestionListener<SOURCE> suggestionHook) protected voidregisterAllCommands(com.mojang.brigadier.CommandDispatcher<SOURCE> dispatcher) protected abstract voidprotected voidMethods inherited from class dev.rollczi.litecommands.platform.AbstractPlatform
getConfiguration, 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
-
COMMAND_API_V2
protected static boolean COMMAND_API_V2 -
fabricCommands
-
-
Constructor Details
-
FabricAbstractPlatform
protected FabricAbstractPlatform(LiteFabricSettings settings, dev.rollczi.litecommands.permission.PermissionService permissionService)
-
-
Method Details
-
registerEvents
protected abstract void registerEvents() -
registerAllCommands
-
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,LiteFabricSettings>
-
unhook
- Specified by:
unhookin classdev.rollczi.litecommands.platform.AbstractPlatform<SOURCE,LiteFabricSettings>
-
createCommand
protected FabricCommand<SOURCE> createCommand(dev.rollczi.litecommands.command.CommandRoute<SOURCE> command, dev.rollczi.litecommands.platform.PlatformInvocationListener<SOURCE> invocationHook, dev.rollczi.litecommands.platform.PlatformSuggestionListener<SOURCE> suggestionHook, dev.rollczi.litecommands.permission.PermissionService permissionService)
-