Class GeyserSpongeCommandExecutor
java.lang.Object
org.geysermc.geyser.command.GeyserCommandExecutor
org.geysermc.geyser.platform.sponge.command.GeyserSpongeCommandExecutor
- All Implemented Interfaces:
org.spongepowered.api.command.Command,org.spongepowered.api.command.Command.Raw
public class GeyserSpongeCommandExecutor
extends org.geysermc.geyser.command.GeyserCommandExecutor
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 -
Field Summary
Fields inherited from class org.geysermc.geyser.command.GeyserCommandExecutor
geyser -
Constructor Summary
ConstructorsConstructorDescriptionGeyserSpongeCommandExecutor(org.geysermc.geyser.GeyserImpl geyser, Map<String,org.geysermc.geyser.api.command.Command> commands) -
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)Optional<net.kyori.adventure.text.Component>help(@NotNull 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 org.geysermc.geyser.command.GeyserCommandExecutor
getCommand, getGeyserSession, tabCompleteMethods 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.Raw
commandTree
-
Constructor Details
-
GeyserSpongeCommandExecutor
-
-
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
-
help
public Optional<net.kyori.adventure.text.Component> help(@NotNull @NotNull org.spongepowered.api.command.CommandCause cause)- Specified by:
helpin 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
-