Package com.djrapitops.plan.commands.use
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
-
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
ConstructorsConstructorDescriptionSpongeCommand(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory, Supplier<PlanSpongeComponent> componentSupplier, Subcommand initialCommand) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanExecute(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.CommandResultprocess(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.Componentusage(org.spongepowered.api.command.CommandCause cause) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.spongepowered.api.command.Command
helpMethods 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:
processin interfaceorg.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:
completein interfaceorg.spongepowered.api.command.Command
-
canExecute
public boolean canExecute(org.spongepowered.api.command.CommandCause cause) - Specified by:
canExecutein interfaceorg.spongepowered.api.command.Command
-
shortDescription
public Optional<net.kyori.adventure.text.Component> shortDescription(org.spongepowered.api.command.CommandCause cause) - Specified by:
shortDescriptionin interfaceorg.spongepowered.api.command.Command
-
extendedDescription
public Optional<net.kyori.adventure.text.Component> extendedDescription(org.spongepowered.api.command.CommandCause cause) - Specified by:
extendedDescriptionin interfaceorg.spongepowered.api.command.Command
-
usage
public net.kyori.adventure.text.Component usage(org.spongepowered.api.command.CommandCause cause) - Specified by:
usagein interfaceorg.spongepowered.api.command.Command
-