Package revxrsal.commands.bukkit.core
Enum Class EntitySelectorResolver.SelectorSuggestionFactory
java.lang.Object
java.lang.Enum<EntitySelectorResolver.SelectorSuggestionFactory>
revxrsal.commands.bukkit.core.EntitySelectorResolver.SelectorSuggestionFactory
- All Implemented Interfaces:
Serializable
,Comparable<EntitySelectorResolver.SelectorSuggestionFactory>
,Constable
,SuggestionProviderFactory
- Enclosing class:
- EntitySelectorResolver
public static enum EntitySelectorResolver.SelectorSuggestionFactory
extends Enum<EntitySelectorResolver.SelectorSuggestionFactory>
implements SuggestionProviderFactory
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable SuggestionProvider
createSuggestionProvider
(@NotNull CommandParameter parameter) Creates aSuggestionProvider
for the given parameter.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
createSuggestionProvider
@Nullable public @Nullable SuggestionProvider createSuggestionProvider(@NotNull @NotNull CommandParameter parameter) Description copied from interface:SuggestionProviderFactory
Creates aSuggestionProvider
for the given parameter. If this parameter is not applicable,null
should be returned.- Specified by:
createSuggestionProvider
in interfaceSuggestionProviderFactory
- Parameters:
parameter
- Parameter to create for- Returns:
- The suggestion provider for the parameter, or
null
if not applicable.
-