Class SpongeHandler

java.lang.Object
revxrsal.commands.core.BaseCommandHandler
revxrsal.commands.sponge.core.SpongeHandler
All Implemented Interfaces:
CommandHandler, SpongeCommandHandler

public class SpongeHandler extends BaseCommandHandler implements SpongeCommandHandler
  • Constructor Details

    • SpongeHandler

      public SpongeHandler(Object plugin)
  • Method Details

    • register

      @NotNull public @NotNull CommandHandler register(@NotNull @NotNull Object... commands)
      Description copied from interface: CommandHandler
      Registers the specified command from an instance. This will automatically set all Dependency-annotated fields with their values.
      Specified by:
      register in interface CommandHandler
      Overrides:
      register in class BaseCommandHandler
      Parameters:
      commands - The commands object instances. Can be a class if methods are static.
      Returns:
      This command handler
    • getPlugin

      @NotNull public @NotNull Object getPlugin()
      Description copied from interface: SpongeCommandHandler
      Returns the plugin this command handler was registered for.
      Specified by:
      getPlugin in interface SpongeCommandHandler
      Returns:
      The owning plugin