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

    Constructors
    Constructor
    Description
    GeyserSpongeCommandExecutor​(org.geysermc.geyser.GeyserImpl geyser, Map<String,​org.geysermc.geyser.api.command.Command> commands)
     
  • 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)
     
    Optional<net.kyori.adventure.text.Component>
    help​(@NotNull 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 org.geysermc.geyser.command.GeyserCommandExecutor

    getCommand, getGeyserSession, tabComplete

    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.Raw

    commandTree
  • Constructor Details

    • GeyserSpongeCommandExecutor

      public GeyserSpongeCommandExecutor(org.geysermc.geyser.GeyserImpl geyser, Map<String,​org.geysermc.geyser.api.command.Command> commands)
  • 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
    • help

      public Optional<net.kyori.adventure.text.Component> help(@NotNull @NotNull org.spongepowered.api.command.CommandCause cause)
      Specified by:
      help 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