Package org.incendo.cloud.bukkit.parser
Class EnchantmentParser<C>
java.lang.Object
org.incendo.cloud.bukkit.parser.EnchantmentParser<C>
- All Implemented Interfaces:
ArgumentParser<C,,Enchantment> BlockingSuggestionProvider<C>,BlockingSuggestionProvider.Strings<C>,SuggestionProvider<C>,SuggestionProviderHolder<C>
public final class EnchantmentParser<C>
extends Object
implements ArgumentParser<C,Enchantment>, BlockingSuggestionProvider.Strings<C>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.incendo.cloud.parser.ArgumentParser
ArgumentParser.FutureArgumentParser<C,T> Nested classes/interfaces inherited from interface org.incendo.cloud.suggestion.BlockingSuggestionProvider
BlockingSuggestionProvider.Strings<C> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <C> @NonNull CommandComponent.Builder<C, Enchantment> Returns aCommandComponent.BuilderusingenchantmentParser()as the parser.static <C> @NonNull ParserDescriptor<C, Enchantment> Creates a enchantment parser.parse(@NonNull CommandContext<C> commandContext, @NonNull CommandInput commandInput) stringSuggestions(@NonNull CommandContext<C> commandContext, @NonNull CommandInput input) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.incendo.cloud.parser.ArgumentParser
flatMap, flatMapSuccess, mapSuccess, parseFuture, suggestionProviderMethods inherited from interface org.incendo.cloud.suggestion.BlockingSuggestionProvider
suggestionsFutureMethods inherited from interface org.incendo.cloud.suggestion.BlockingSuggestionProvider.Strings
suggestions
-
Constructor Details
-
EnchantmentParser
public EnchantmentParser()
-
-
Method Details
-
enchantmentParser
@API(status=STABLE, since="2.0.0") public static <C> @NonNull ParserDescriptor<C,Enchantment> enchantmentParser()Creates a enchantment parser.- Type Parameters:
C- command sender type- Returns:
- the created parser
- Since:
- 2.0.0
-
enchantmentComponent
@API(status=STABLE, since="2.0.0") public static <C> @NonNull CommandComponent.Builder<C,Enchantment> enchantmentComponent()Returns aCommandComponent.BuilderusingenchantmentParser()as the parser.- Type Parameters:
C- the command sender type- Returns:
- the component builder
- Since:
- 2.0.0
-
parse
public @NonNull ArgumentParseResult<Enchantment> parse(@NonNull CommandContext<C> commandContext, @NonNull CommandInput commandInput) - Specified by:
parsein interfaceArgumentParser<C,Enchantment>
-
stringSuggestions
public @NonNull Iterable<@NonNull String> stringSuggestions(@NonNull CommandContext<C> commandContext, @NonNull CommandInput input) - Specified by:
stringSuggestionsin interfaceBlockingSuggestionProvider.Strings<C>
-