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
 
 public class TabCompleteEvent extends TargetedEvent implements Cancellable Event called when a player uses tab completion.
- 
- 
Constructor SummaryConstructors Constructor Description TabCompleteEvent(Connection sender, Connection receiver, String cursor, List<String> suggestions)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetCursor()The message the player has already entered.List<String>getSuggestions()The suggestions that will be sent to the client.inthashCode()booleanisCancelled()Cancelled state.voidsetCancelled(boolean cancelled)Cancelled state.StringtoString()- 
Methods inherited from class net.md_5.bungee.api.event.TargetedEventgetReceiver, getSender
 
- 
 
- 
- 
- 
Constructor Detail- 
TabCompleteEventpublic TabCompleteEvent(Connection sender, Connection receiver, String cursor, List<String> suggestions) 
 
- 
 - 
Method Detail- 
isCancelledpublic boolean isCancelled() Cancelled state.- Specified by:
- isCancelledin interface- Cancellable
- Returns:
- the cancelled state of this event
 
 - 
getCursorpublic String getCursor() The message the player has already entered.
 - 
getSuggestionspublic List<String> 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.
 - 
setCancelledpublic void setCancelled(boolean cancelled) Cancelled state.- Specified by:
- setCancelledin interface- Cancellable
- Parameters:
- cancelled- the state to set
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- TargetedEvent
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- TargetedEvent
 
 - 
canEqualprotected boolean canEqual(Object other) - Overrides:
- canEqualin class- TargetedEvent
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- TargetedEvent
 
 
- 
 
-