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, getSender
public TabCompleteResponseEvent(Connection sender, Connection receiver, List<String> suggestions)
public boolean isCancelled()
isCancelled
in interface Cancellable
public List<String> getSuggestions()
public void setCancelled(boolean cancelled)
setCancelled
in interface Cancellable
cancelled
- the state to setpublic String toString()
toString
in class TargetedEvent
public boolean equals(Object o)
equals
in class TargetedEvent
protected boolean canEqual(Object other)
canEqual
in class TargetedEvent
public int hashCode()
hashCode
in class TargetedEvent
Copyright © 2012–2020 SpigotMC. All rights reserved.