public class BrigadierSuggestionsEvent extends TargetedEvent implements Cancellable
Constructor and Description |
---|
BrigadierSuggestionsEvent(Connection sender,
Connection receiver,
String cursor,
com.mojang.brigadier.suggestion.Suggestions suggestions) |
Modifier and Type | Method and Description |
---|---|
String |
getCursor() |
com.mojang.brigadier.suggestion.Suggestions |
getSuggestions() |
boolean |
isCancelled()
Get whether or not this event is cancelled.
|
void |
setCancelled(boolean cancelled)
Sets the cancelled state of this event.
|
void |
setSuggestions(com.mojang.brigadier.suggestion.Suggestions suggestions) |
canEqual, equals, getReceiver, getSender, hashCode, toString
public BrigadierSuggestionsEvent(Connection sender, Connection receiver, String cursor, com.mojang.brigadier.suggestion.Suggestions suggestions)
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public String getCursor()
public com.mojang.brigadier.suggestion.Suggestions getSuggestions()
public void setCancelled(boolean cancelled)
Cancellable
setCancelled
in interface Cancellable
cancelled
- the state to setpublic void setSuggestions(com.mojang.brigadier.suggestion.Suggestions suggestions)
Copyright © 2019–2022. All rights reserved.