Class SpongeCommand

java.lang.Object
com.djrapitops.plan.commands.use.SpongeCommand
All Implemented Interfaces:
org.spongepowered.api.command.Command, org.spongepowered.api.command.Command.Raw

public class SpongeCommand extends Object implements org.spongepowered.api.command.Command.Raw
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.spongepowered.api.command.Command

    org.spongepowered.api.command.Command.Builder, org.spongepowered.api.command.Command.Parameterized, org.spongepowered.api.command.Command.Raw
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpongeCommand(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory, Supplier<PlanSpongeComponent> componentSupplier, Subcommand initialCommand)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canExecute(org.spongepowered.api.command.CommandCause cause)
     
    List<org.spongepowered.api.command.CommandCompletion>
    complete(org.spongepowered.api.command.CommandCause cause, org.spongepowered.api.command.parameter.ArgumentReader.Mutable arguments)
     
    Optional<net.kyori.adventure.text.Component>
    extendedDescription(org.spongepowered.api.command.CommandCause cause)
     
    org.spongepowered.api.command.CommandResult
    process(org.spongepowered.api.command.CommandCause cause, org.spongepowered.api.command.parameter.ArgumentReader.Mutable arguments)
     
    Optional<net.kyori.adventure.text.Component>
    shortDescription(org.spongepowered.api.command.CommandCause cause)
     
    net.kyori.adventure.text.Component
    usage(org.spongepowered.api.command.CommandCause cause)
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.spongepowered.api.command.Command

    help

    Methods inherited from interface org.spongepowered.api.command.Command.Raw

    commandTree
  • Constructor Details

    • SpongeCommand

      public SpongeCommand(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory, Supplier<PlanSpongeComponent> componentSupplier, Subcommand initialCommand)
  • Method Details

    • process

      public org.spongepowered.api.command.CommandResult process(org.spongepowered.api.command.CommandCause cause, org.spongepowered.api.command.parameter.ArgumentReader.Mutable arguments)
      Specified by:
      process in interface org.spongepowered.api.command.Command
    • complete

      public List<org.spongepowered.api.command.CommandCompletion> complete(org.spongepowered.api.command.CommandCause cause, org.spongepowered.api.command.parameter.ArgumentReader.Mutable arguments)
      Specified by:
      complete in interface org.spongepowered.api.command.Command
    • canExecute

      public boolean canExecute(org.spongepowered.api.command.CommandCause cause)
      Specified by:
      canExecute in interface org.spongepowered.api.command.Command
    • shortDescription

      public Optional<net.kyori.adventure.text.Component> shortDescription(org.spongepowered.api.command.CommandCause cause)
      Specified by:
      shortDescription in interface org.spongepowered.api.command.Command
    • extendedDescription

      public Optional<net.kyori.adventure.text.Component> extendedDescription(org.spongepowered.api.command.CommandCause cause)
      Specified by:
      extendedDescription in interface org.spongepowered.api.command.Command
    • usage

      public net.kyori.adventure.text.Component usage(org.spongepowered.api.command.CommandCause cause)
      Specified by:
      usage in interface org.spongepowered.api.command.Command