Package com.sk89q.worldedit.sponge
Class CommandAdapter
java.lang.Object
com.sk89q.worldedit.sponge.CommandAdapter
- All Implemented Interfaces:
org.spongepowered.api.command.Command
,org.spongepowered.api.command.Command.Raw
public abstract class CommandAdapter
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 -
Method Summary
Modifier and TypeMethodDescriptionboolean
canExecute
(org.spongepowered.api.command.CommandCause cause) Optional
<net.kyori.adventure.text.Component> extendedDescription
(org.spongepowered.api.command.CommandCause cause) Optional
<net.kyori.adventure.text.Component> help
(@NonNull org.spongepowered.api.command.CommandCause cause) 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
complete, process
Methods inherited from interface org.spongepowered.api.command.Command.Raw
commandTree
-
Constructor Details
-
CommandAdapter
protected CommandAdapter(org.enginehub.piston.Command command)
-
-
Method Details
-
canExecute
public boolean canExecute(org.spongepowered.api.command.CommandCause cause) - Specified by:
canExecute
in interfaceorg.spongepowered.api.command.Command
-
shortDescription
public Optional<net.kyori.adventure.text.Component> shortDescription(org.spongepowered.api.command.CommandCause cause) - Specified by:
shortDescription
in interfaceorg.spongepowered.api.command.Command
-
extendedDescription
public Optional<net.kyori.adventure.text.Component> extendedDescription(org.spongepowered.api.command.CommandCause cause) - Specified by:
extendedDescription
in interfaceorg.spongepowered.api.command.Command
-
help
public Optional<net.kyori.adventure.text.Component> help(@NonNull org.spongepowered.api.command.CommandCause cause) - Specified by:
help
in interfaceorg.spongepowered.api.command.Command
-
usage
public net.kyori.adventure.text.Component usage(org.spongepowered.api.command.CommandCause cause) - Specified by:
usage
in interfaceorg.spongepowered.api.command.Command
-