Class BrigadierSuggestionsEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
net.md_5.bungee.api.event.TargetedEvent
com.mrivanplays.ivancord.api.event.BrigadierSuggestionsEvent
- All Implemented Interfaces:
Cancellable
-
Constructor Summary
ConstructorDescriptionBrigadierSuggestionsEvent
(Connection sender, Connection receiver, String cursor, com.mojang.brigadier.suggestion.Suggestions suggestions) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.brigadier.suggestion.Suggestions
boolean
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) Methods inherited from class net.md_5.bungee.api.event.TargetedEvent
canEqual, equals, getReceiver, getSender, hashCode, toString
-
Constructor Details
-
BrigadierSuggestionsEvent
public BrigadierSuggestionsEvent(Connection sender, Connection receiver, String cursor, com.mojang.brigadier.suggestion.Suggestions suggestions)
-
-
Method Details
-
isCancelled
public boolean isCancelled()Description copied from interface:Cancellable
Get whether or not this event is cancelled.- Specified by:
isCancelled
in interfaceCancellable
- Returns:
- the cancelled state of this event
-
getCursor
-
getSuggestions
public com.mojang.brigadier.suggestion.Suggestions getSuggestions() -
setCancelled
public void setCancelled(boolean cancelled) Description copied from interface:Cancellable
Sets the cancelled state of this event.- Specified by:
setCancelled
in interfaceCancellable
- Parameters:
cancelled
- the state to set
-
setSuggestions
public void setSuggestions(com.mojang.brigadier.suggestion.Suggestions suggestions)
-