Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
TabCompleter.java
1 package org.bukkit.command;
2 
3 import java.util.List;
4 
5 /**
6  * Represents a class which can suggest tab completions for commands.
7  */
8 public interface TabCompleter {
9 
10  /**
11  * Requests a list of possible completions for a command argument.
12  *
13  * @param sender Source of the command
14  * @param command Command which was executed
15  * @param alias The alias used
16  * @param args The arguments passed to the command, including final
17  * partial argument to be completed and command label
18  * @return A List of possible completions for the final argument, or null
19  * to default to the command executor
20  */
21  public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args);
22 }
List< String > onTabComplete(CommandSender sender, Command command, String alias, String[] args)