Package net.md_5.bungee.api.event
Class TabCompleteResponseEvent
- java.lang.Object
- 
- net.md_5.bungee.api.plugin.Event
- 
- net.md_5.bungee.api.event.TargetedEvent
- 
- net.md_5.bungee.api.event.TabCompleteResponseEvent
 
 
 
- 
- All Implemented Interfaces:
- Cancellable
 
 public class TabCompleteResponseEvent extends TargetedEvent implements Cancellable Event called when a backend server sends a response to a player asking to tab-complete a chat message or command. Note that this is not called when BungeeCord or a plugin responds to a tab-complete request. UseTabCompleteEventfor that.
- 
- 
Constructor SummaryConstructors Constructor Description TabCompleteResponseEvent(Connection sender, Connection receiver, List<String> suggestions)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)List<String>getSuggestions()Mutable list of suggestions sent back to the player.inthashCode()booleanisCancelled()Whether the event is cancelled.voidsetCancelled(boolean cancelled)Whether the event is cancelled.StringtoString()- 
Methods inherited from class net.md_5.bungee.api.event.TargetedEventgetReceiver, getSender
 
- 
 
- 
- 
- 
Constructor Detail- 
TabCompleteResponseEventpublic TabCompleteResponseEvent(Connection sender, Connection receiver, List<String> suggestions) 
 
- 
 - 
Method Detail- 
isCancelledpublic boolean isCancelled() Whether the event is cancelled.- Specified by:
- isCancelledin interface- Cancellable
- Returns:
- the cancelled state of this event
 
 - 
getSuggestionspublic List<String> getSuggestions() Mutable list of suggestions sent back to the player. If this list is empty, an empty list is sent back to the client.
 - 
setCancelledpublic void setCancelled(boolean cancelled) Whether the event is cancelled.- 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
 
 
- 
 
-