Cancellable
public class TabCompleteEvent extends Event implements Cancellable
CommandSender
of any description (ie: player or
console) attempts to tab complete.Event.Result
Constructor | Description |
---|---|
TabCompleteEvent(CommandSender sender,
java.lang.String buffer,
java.util.List<java.lang.String> completions) |
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() |
|
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(java.util.List<java.lang.String> completions) |
Set the completions offered, overriding any already set.
|
getEventName, isAsynchronous
public TabCompleteEvent(CommandSender sender, java.lang.String buffer, java.util.List<java.lang.String> completions)
public CommandSender getSender()
CommandSender
instancepublic java.lang.String getBuffer()
public java.util.List<java.lang.String> getCompletions()
public void setCompletions(java.util.List<java.lang.String> completions)
completions
- the new completionspublic boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancelled)
Cancellable
setCancelled
in interface Cancellable
cancelled
- true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2018. All rights reserved.