Cancellablepublic class TabCompleteEvent extends Event implements Cancellable
CommandSender of any description (ie: player or
 console) attempts to tab complete.
 PlayerCommandSendEvent.Event.Result| Constructor | Description | 
|---|---|
| TabCompleteEvent(CommandSender sender,
                java.lang.String buffer,
                java.util.List<java.lang.String> completions) | |
| TabCompleteEvent(CommandSender sender,
                java.lang.String buffer,
                java.util.List<java.lang.String> completions,
                boolean isCommand,
                Location location) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| java.lang.String | getBuffer() | Return the entire buffer which formed the basis of this completion. | 
| java.util.List<java.lang.String> | getCompletions() | The list of completions which will be offered to the sender, in order. | 
| static HandlerList | getHandlerList() | |
| HandlerList | getHandlers() | |
| Location | getLocation() | |
| CommandSender | getSender() | Get the sender completing this command. | 
| boolean | isCancelled() | Gets the cancellation state of this event. | 
| boolean | isCommand() | |
| void | setCancelled(boolean cancelled) | Sets the cancellation state of this event. | 
| void | setCompletions(java.util.List<java.lang.String> completions) | Set the completions offered, overriding any already set. | 
callEvent, getEventName, isAsynchronouspublic TabCompleteEvent(CommandSender sender, java.lang.String buffer, java.util.List<java.lang.String> completions)
public TabCompleteEvent(CommandSender sender, java.lang.String buffer, java.util.List<java.lang.String> completions, boolean isCommand, Location location)
public CommandSender getSender()
CommandSender instancepublic java.lang.String getBuffer()
public java.util.List<java.lang.String> getCompletions()
public boolean isCommand()
public Location getLocation()
public void setCompletions(java.util.List<java.lang.String> completions)
getCompletions()} to mutate from herecompletions - 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 © 2018. All rights reserved.