public class TabCompleteResponseEvent extends TargetedEvent implements Cancellable
TabCompleteEvent for that.| Constructor and Description |
|---|
TabCompleteResponseEvent(Connection sender,
Connection receiver,
List<String> suggestions) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<String> |
getSuggestions()
Mutable list of suggestions sent back to the player.
|
int |
hashCode() |
boolean |
isCancelled()
Whether the event is cancelled.
|
void |
setCancelled(boolean cancelled)
Whether the event is cancelled.
|
String |
toString() |
getReceiver, getSenderpublic TabCompleteResponseEvent(Connection sender, Connection receiver, List<String> suggestions)
public boolean isCancelled()
isCancelled in interface Cancellablepublic List<String> getSuggestions()
public void setCancelled(boolean cancelled)
setCancelled in interface Cancellablecancelled - the state to setpublic String toString()
toString in class TargetedEventpublic boolean equals(Object o)
equals in class TargetedEventprotected boolean canEqual(Object other)
canEqual in class TargetedEventpublic int hashCode()
hashCode in class TargetedEventCopyright © 2012–2020 SpigotMC. All rights reserved.