Class SpongeCommand

  • All Implemented Interfaces:
    org.spongepowered.api.command.CommandCallable

    public class SpongeCommand
    extends java.lang.Object
    implements org.spongepowered.api.command.CommandCallable
    • Constructor Summary

      Constructors 
      Constructor Description
      SpongeCommand​(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory, ErrorLogger errorLogger, Subcommand command)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<org.spongepowered.api.text.Text> getHelp​(org.spongepowered.api.command.CommandSource source)  
      java.util.Optional<org.spongepowered.api.text.Text> getShortDescription​(org.spongepowered.api.command.CommandSource source)  
      java.util.List<java.lang.String> getSuggestions​(org.spongepowered.api.command.CommandSource source, java.lang.String arguments, org.spongepowered.api.world.Location<org.spongepowered.api.world.World> targetPosition)  
      org.spongepowered.api.text.Text getUsage​(org.spongepowered.api.command.CommandSource source)  
      org.spongepowered.api.command.CommandResult process​(org.spongepowered.api.command.CommandSource source, java.lang.String arguments)  
      boolean testPermission​(org.spongepowered.api.command.CommandSource source)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpongeCommand

        public SpongeCommand​(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory,
                             ErrorLogger errorLogger,
                             Subcommand command)
    • Method Detail

      • process

        public org.spongepowered.api.command.CommandResult process​(org.spongepowered.api.command.CommandSource source,
                                                                   java.lang.String arguments)
        Specified by:
        process in interface org.spongepowered.api.command.CommandCallable
      • getSuggestions

        public java.util.List<java.lang.String> getSuggestions​(org.spongepowered.api.command.CommandSource source,
                                                               java.lang.String arguments,
                                                               @Nullable
                                                               org.spongepowered.api.world.Location<org.spongepowered.api.world.World> targetPosition)
        Specified by:
        getSuggestions in interface org.spongepowered.api.command.CommandCallable
      • testPermission

        public boolean testPermission​(org.spongepowered.api.command.CommandSource source)
        Specified by:
        testPermission in interface org.spongepowered.api.command.CommandCallable
      • getShortDescription

        public java.util.Optional<org.spongepowered.api.text.Text> getShortDescription​(org.spongepowered.api.command.CommandSource source)
        Specified by:
        getShortDescription in interface org.spongepowered.api.command.CommandCallable
      • getHelp

        public java.util.Optional<org.spongepowered.api.text.Text> getHelp​(org.spongepowered.api.command.CommandSource source)
        Specified by:
        getHelp in interface org.spongepowered.api.command.CommandCallable
      • getUsage

        public org.spongepowered.api.text.Text getUsage​(org.spongepowered.api.command.CommandSource source)
        Specified by:
        getUsage in interface org.spongepowered.api.command.CommandCallable