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
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. Use
TabCompleteEvent for that.-
Constructor Summary
ConstructorsConstructorDescriptionTabCompleteResponseEvent(Connection sender, Connection receiver, List<String> suggestions) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanMutable list of suggestions sent back to the player.inthashCode()booleanWhether the event is cancelled.voidsetCancelled(boolean cancelled) Whether the event is cancelled.toString()Methods inherited from class net.md_5.bungee.api.event.TargetedEvent
getReceiver, getSender
-
Constructor Details
-
TabCompleteResponseEvent
-
-
Method Details
-
isCancelled
public boolean isCancelled()Whether the event is cancelled.- Specified by:
isCancelledin interfaceCancellable- Returns:
- the cancelled state of this event
-
getSuggestions
Mutable list of suggestions sent back to the player. If this list is empty, an empty list is sent back to the client. -
setCancelled
public void setCancelled(boolean cancelled) Whether the event is cancelled.- 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
-