Class MVCommandCompletions

java.lang.Object
co.aikar.commands.CommandCompletions<co.aikar.commands.BukkitCommandCompletionContext>
co.aikar.commands.BukkitCommandCompletions
co.aikar.commands.PaperCommandCompletions
org.mvplugins.multiverse.core.command.MVCommandCompletions

@Service public class MVCommandCompletions extends co.aikar.commands.PaperCommandCompletions
  • Nested Class Summary

    Nested classes/interfaces inherited from class co.aikar.commands.CommandCompletions

    co.aikar.commands.CommandCompletions.AsyncCommandCompletionHandler<C extends co.aikar.commands.CommandCompletionContext>, co.aikar.commands.CommandCompletions.CommandCompletionHandler<C extends co.aikar.commands.CommandCompletionContext>, co.aikar.commands.CommandCompletions.SyncCompletionRequired
  • Method Summary

    Modifier and Type
    Method
    Description
    co.aikar.commands.CommandCompletions.CommandCompletionHandler
    registerAsyncCompletion(String id, co.aikar.commands.CommandCompletions.AsyncCommandCompletionHandler<co.aikar.commands.BukkitCommandCompletionContext> handler)
     
    co.aikar.commands.CommandCompletions.CommandCompletionHandler
    registerCompletion(String id, co.aikar.commands.CommandCompletions.CommandCompletionHandler<co.aikar.commands.BukkitCommandCompletionContext> handler)
     
    <T extends Enum<T>>
    Collection<String>
    suggestEnums(Class<T> enumClass)
    Shortcut to suggest enums values

    Methods inherited from class co.aikar.commands.CommandCompletions

    registerStaticCompletion, registerStaticCompletion, registerStaticCompletion, registerStaticCompletion, setDefaultCompletion, unregisterCompletion

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • registerCompletion

      public co.aikar.commands.CommandCompletions.CommandCompletionHandler registerCompletion(String id, co.aikar.commands.CommandCompletions.CommandCompletionHandler<co.aikar.commands.BukkitCommandCompletionContext> handler)
      Overrides:
      registerCompletion in class co.aikar.commands.CommandCompletions<co.aikar.commands.BukkitCommandCompletionContext>
    • registerAsyncCompletion

      public co.aikar.commands.CommandCompletions.CommandCompletionHandler registerAsyncCompletion(String id, co.aikar.commands.CommandCompletions.AsyncCommandCompletionHandler<co.aikar.commands.BukkitCommandCompletionContext> handler)
      Overrides:
      registerAsyncCompletion in class co.aikar.commands.CommandCompletions<co.aikar.commands.BukkitCommandCompletionContext>
    • suggestEnums

      public <T extends Enum<T>> Collection<String> suggestEnums(Class<T> enumClass)
      Shortcut to suggest enums values
      Type Parameters:
      T - The enum type
      Parameters:
      enumClass - The enum class with values
      Returns:
      A collection of possible string values