org.bukkit.event.Cancellablepublic class AsyncPlayerSendSuggestionsEvent
extends org.bukkit.event.player.PlayerEvent
implements org.bukkit.event.Cancellable
| Constructor | Description |
|---|---|
AsyncPlayerSendSuggestionsEvent(org.bukkit.entity.Player player,
com.mojang.brigadier.suggestion.Suggestions suggestions,
String buffer) |
| Modifier and Type | Method | Description |
|---|---|---|
String |
getBuffer() |
|
static @NotNull org.bukkit.event.HandlerList |
getHandlerList() |
|
@NotNull org.bukkit.event.HandlerList |
getHandlers() |
|
com.mojang.brigadier.suggestion.Suggestions |
getSuggestions() |
|
boolean |
isCancelled() |
|
void |
setCancelled(boolean cancel) |
Cancels sending suggestions to the client
|
void |
setSuggestions(com.mojang.brigadier.suggestion.Suggestions suggestions) |
public AsyncPlayerSendSuggestionsEvent(org.bukkit.entity.Player player,
com.mojang.brigadier.suggestion.Suggestions suggestions,
String buffer)
public String getBuffer()
public com.mojang.brigadier.suggestion.Suggestions getSuggestions()
public void setSuggestions(com.mojang.brigadier.suggestion.Suggestions suggestions)
suggestions - The suggestions to be sent to client if need to change thempublic boolean isCancelled()
isCancelled in interface org.bukkit.event.Cancellablepublic void setCancelled(boolean cancel)
setCancelled in interface org.bukkit.event.Cancellable@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
getHandlers in class org.bukkit.event.Event@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
Copyright © 2020. All rights reserved.