public class TabCompleteEvent extends Event implements Cancellable
CommandSender of any description (ie: player or
 console) attempts to tab complete.Event.Result| Constructor and Description | 
|---|
| TabCompleteEvent(CommandSender sender,
                String buffer,
                List<String> completions) | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getBuffer()Return the entire buffer which formed the basis of this completion. | 
| List<String> | getCompletions()The list of completions which will be offered to the sender, in order. | 
| static HandlerList | getHandlerList() | 
| HandlerList | getHandlers() | 
| CommandSender | getSender()Get the sender completing this command. | 
| boolean | isCancelled()Gets the cancellation state of this event. | 
| void | setCancelled(boolean cancelled)Sets the cancellation state of this event. | 
| void | setCompletions(List<String> completions)Set the completions offered, overriding any already set. | 
getEventName, isAsynchronouspublic TabCompleteEvent(CommandSender sender, String buffer, List<String> completions)
public CommandSender getSender()
CommandSender instancepublic String getBuffer()
public List<String> getCompletions()
public void setCompletions(List<String> completions)
completions - the new completionspublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
Copyright © 2016. All rights reserved.