An argument that represents the Bukkit Environment object.
More...
An argument that represents the Bukkit Environment object.
- Deprecated:
- Use
WorldArgument
instead.
◆ EnvironmentArgument()
dev.jorel.commandapi.arguments.EnvironmentArgument.EnvironmentArgument |
( |
String |
nodeName | ) |
|
◆ includeSafeSuggestions()
Includes the suggestions provided with the existing suggestions for this argument.
Use the static methods in SafeSuggestions
to create safe suggestions.
- Parameters
-
suggestions | The safe suggestions to use |
- Returns
- the current argument
◆ includeWithSafeSuggestions()
Include suggestions to add to the list of default suggestions represented by this argument.
- Parameters
-
suggestions | a function that takes in SuggestionInfo which includes information about the current state at the time the suggestions are run and returns a S array of suggestions to add, where S is your custom type |
- Returns
- the current argument
- Deprecated:
- use
includeSafeSuggestions(SafeSuggestions)
◆ includeWithSafeSuggestionsT()
Include suggestions to add to the list of default suggestions represented by this argument.
- Parameters
-
suggestions | a function that takes in SuggestionInfo which includes information about the current state at the time the suggestions are run and returns a Tooltip array of suggestions to add, parameterized over S where S is your custom type |
- Returns
- the current argument
- Deprecated:
- use
includeSafeSuggestions(SafeSuggestions)
◆ replaceSafeSuggestions()
Replaces the suggestions with a safe SafeSuggestions
object.
Use the static methods in SafeSuggestions
to create safe suggestions.
- Parameters
-
suggestions | The safe suggestions to use |
- Returns
- the current argument
◆ replaceWithSafeSuggestions()
◆ replaceWithSafeSuggestionsT()