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

    Fields
    Modifier and Type
    Field
    Description
    protected static boolean
     
    protected final Map<UUID,FabricCommand<SOURCE>>
     

    Fields inherited from class dev.rollczi.litecommands.platform.AbstractPlatform

    commandRoutes, senderFactory, settings
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    FabricAbstractPlatform(LiteFabricSettings settings, dev.rollczi.litecommands.platform.PlatformSenderFactory<SOURCE> factory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    createCommand(dev.rollczi.litecommands.command.CommandRoute<SOURCE> command, dev.rollczi.litecommands.platform.PlatformInvocationListener<SOURCE> invocationHook, dev.rollczi.litecommands.platform.PlatformSuggestionListener<SOURCE> suggestionHook)
     
    protected void
    hook(dev.rollczi.litecommands.command.CommandRoute<SOURCE> commandRoute, dev.rollczi.litecommands.platform.PlatformInvocationListener<SOURCE> invocationHook, dev.rollczi.litecommands.platform.PlatformSuggestionListener<SOURCE> suggestionHook)
     
    protected void
    registerAllCommands(com.mojang.brigadier.CommandDispatcher<SOURCE> dispatcher)
     
    protected abstract void
     
    protected void
    unhook(dev.rollczi.litecommands.command.CommandRoute<SOURCE> commandRoute)
     

    Methods inherited from class dev.rollczi.litecommands.platform.AbstractPlatform

    createSender, getConfiguration, getSenderFactory, register, setConfiguration, unregister, unregisterAll

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface dev.rollczi.litecommands.platform.Platform

    createSender, getConfiguration, getSenderFactory, register, register, setConfiguration, start, stop, unregister, unregisterAll
  • Field Details

    • fabricCommands

      protected final Map<UUID,FabricCommand<SOURCE>> fabricCommands
    • COMMAND_API_V2

      protected static boolean COMMAND_API_V2
  • Constructor Details

    • FabricAbstractPlatform

      protected FabricAbstractPlatform(LiteFabricSettings settings, dev.rollczi.litecommands.platform.PlatformSenderFactory<SOURCE> factory)
  • Method Details

    • registerEvents

      protected abstract void registerEvents()
    • registerAllCommands

      protected void registerAllCommands(com.mojang.brigadier.CommandDispatcher<SOURCE> dispatcher)
    • 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:
      hook in class dev.rollczi.litecommands.platform.AbstractPlatform<SOURCE,LiteFabricSettings>
    • unhook

      protected void unhook(dev.rollczi.litecommands.command.CommandRoute<SOURCE> commandRoute)
      Specified by:
      unhook in class dev.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)