public class CommandSuggestionEvent extends Event
Constructor and Description |
---|
CommandSuggestionEvent(Actor actor,
java.lang.String arguments)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
Actor |
getActor()
Get the actor that issued the command.
|
java.lang.String |
getArguments()
Get the arguments.
|
java.util.List<Substring> |
getSuggestions()
Get the list of suggestions that are to be presented.
|
void |
setSuggestions(java.util.List<Substring> suggestions)
Set the list of suggestions that are to be presented.
|
public CommandSuggestionEvent(Actor actor, java.lang.String arguments)
actor
- the playerarguments
- the argumentspublic Actor getActor()
public java.lang.String getArguments()
public java.util.List<Substring> getSuggestions()
Each Substring holds the replacement as the substring, and the replacement range as the original substring range.
public void setSuggestions(java.util.List<Substring> suggestions)
suggestions
- the list of suggestions