public class TabCompleteEvent extends TargetedEvent implements Cancellable
Constructor and Description |
---|
TabCompleteEvent(Connection sender,
Connection receiver,
String cursor,
List<String> suggestions) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getCursor()
The message the player has already entered.
|
List<String> |
getSuggestions()
The suggestions that will be sent to the client.
|
int |
hashCode() |
boolean |
isCancelled()
Cancelled state.
|
void |
setCancelled(boolean cancelled)
Cancelled state.
|
String |
toString() |
getReceiver, getSender
public TabCompleteEvent(Connection sender, Connection receiver, String cursor, List<String> suggestions)
public boolean isCancelled()
isCancelled
in interface Cancellable
public String getCursor()
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.