CommandAPI 9.6.0
An API for the command UI introduced in Minecraft 1.13
dev.jorel.commandapi.arguments.SafeOverrideable< T, S, Impl, Argument, CommandSender > Interface Template Reference
+ Inheritance diagram for dev.jorel.commandapi.arguments.SafeOverrideable< T, S, Impl, Argument, CommandSender >:

Public Member Functions

Impl replaceSuggestions (ArgumentSuggestions< CommandSender > suggestions)
 
Impl includeSuggestions (ArgumentSuggestions< CommandSender > suggestions)
 
Function< S, String > getMapper ()
 
default Impl replaceSafeSuggestions (SafeSuggestions< S, CommandSender > suggestions)
 Replaces the suggestions with a safe SafeSuggestions object. More...
 
default Impl includeSafeSuggestions (SafeSuggestions< S, CommandSender > suggestions)
 Includes the suggestions provided with the existing suggestions for this argument. More...
 
Impl instance ()
 Returns the instance of this class with the class Impl. More...
 

Member Function Documentation

◆ includeSafeSuggestions()

default Impl dev.jorel.commandapi.arguments.SafeOverrideable< T, S, Impl, Argument, CommandSender >.includeSafeSuggestions ( SafeSuggestions< S, CommandSender >  suggestions)

Includes the suggestions provided with the existing suggestions for this argument.

Use the static methods in SafeSuggestions to create safe suggestions.

Parameters
suggestionsThe safe suggestions to use
Returns
the current argument

◆ instance()

Impl dev.jorel.commandapi.ChainableBuilder< Impl >.instance ( )
inherited

Returns the instance of this class with the class Impl.

Used for chaining builder methods.

Implemented in dev.jorel.commandapi.arguments.Argument< T >.

◆ replaceSafeSuggestions()

default Impl dev.jorel.commandapi.arguments.SafeOverrideable< T, S, Impl, Argument, CommandSender >.replaceSafeSuggestions ( SafeSuggestions< S, CommandSender >  suggestions)

Replaces the suggestions with a safe SafeSuggestions object.

Use the static methods in SafeSuggestions to create safe suggestions.

Parameters
suggestionsThe safe suggestions to use
Returns
the current argument