Package net.md_5.bungee.api.event
Class TabCompleteEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
net.md_5.bungee.api.event.TargetedEvent
net.md_5.bungee.api.event.TabCompleteEvent
- All Implemented Interfaces:
Cancellable
Event called when a player uses tab completion.
-
Constructor Summary
ConstructorsConstructorDescriptionTabCompleteEvent(Connection sender, Connection receiver, String cursor, List<String> suggestions) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe message the player has already entered.The suggestions that will be sent to the client.inthashCode()booleanCancelled state.voidsetCancelled(boolean cancelled) Cancelled state.toString()Methods inherited from class net.md_5.bungee.api.event.TargetedEvent
getReceiver, getSender
-
Constructor Details
-
TabCompleteEvent
public TabCompleteEvent(Connection sender, Connection receiver, String cursor, List<String> suggestions)
-
-
Method Details
-
isCancelled
public boolean isCancelled()Cancelled state.- Specified by:
isCancelledin interfaceCancellable- Returns:
- the cancelled state of this event
-
getCursor
The message the player has already entered. -
getSuggestions
The suggestions that will be sent to the client. This list is mutable. If this list is empty, the request will be forwarded to the server. -
setCancelled
public void setCancelled(boolean cancelled) Cancelled state.- Specified by:
setCancelledin interfaceCancellable- Parameters:
cancelled- the state to set
-
toString
- Overrides:
toStringin classTargetedEvent
-
equals
- Overrides:
equalsin classTargetedEvent
-
canEqual
- Overrides:
canEqualin classTargetedEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classTargetedEvent
-