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

    Fields
    Modifier and Type
    Field
    Description
    protected static boolean
     
     

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

    commandRoutes, settings
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    FabricAbstractPlatform(dev.rollczi.litecommands.platform.PlatformSettings settings)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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 abstract void
     
    protected void
    unhook(dev.rollczi.litecommands.command.CommandRoute<SOURCE> commandRoute)
     

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

    getConfiguration, 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

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

  • Constructor Details

    • FabricAbstractPlatform

      protected FabricAbstractPlatform(dev.rollczi.litecommands.platform.PlatformSettings settings)
  • 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:
      hook in class dev.rollczi.litecommands.platform.AbstractPlatform<SOURCE,dev.rollczi.litecommands.platform.PlatformSettings>
    • unhook

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