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,
                String buffer,
                List<String> completions) | |
| TabCompleteEvent(CommandSender sender,
                String buffer,
                List<String> completions,
                boolean isCommand,
                Location location) | 
| Modifier and Type | Method | 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() | |
| 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(List<String> completions) | Set the completions offered, overriding any already set. | 
callEvent, getEventName, isAsynchronouspublic TabCompleteEvent(@NotNull CommandSender sender, @NotNull String buffer, @NotNull List<String> completions)
@NotNull public CommandSender getSender()
CommandSender instance@NotNull public String getBuffer()
@NotNull public List<String> getCompletions()
public boolean isCommand()
@Nullable public Location getLocation()
public void setCompletions(@NotNull List<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 event@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2020. All rights reserved.