Package org.incendo.cloud.bukkit.parser
Class WorldParser<C>
java.lang.Object
org.incendo.cloud.bukkit.parser.WorldParser<C>
- All Implemented Interfaces:
ArgumentParser<C,,World> BlockingSuggestionProvider<C>,BlockingSuggestionProvider.Strings<C>,SuggestionProvider<C>,SuggestionProviderHolder<C>
public final class WorldParser<C>
extends Object
implements ArgumentParser<C,World>, 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 TypeMethodDescriptionparse(@NonNull CommandContext<C> commandContext, @NonNull CommandInput commandInput) stringSuggestions(@NonNull CommandContext<C> commandContext, @NonNull CommandInput input) static <C> @NonNull CommandComponent.Builder<C, World> Returns aCommandComponent.BuilderusingworldParser()as the parser.static <C> @NonNull ParserDescriptor<C, World> Creates a new world parser.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
-
WorldParser
public WorldParser()
-
-
Method Details
-
worldParser
@API(status=STABLE, since="2.0.0") public static <C> @NonNull ParserDescriptor<C,World> worldParser()Creates a new world parser.- Type Parameters:
C- command sender type- Returns:
- the created parser
- Since:
- 2.0.0
-
worldComponent
@API(status=STABLE, since="2.0.0") public static <C> @NonNull CommandComponent.Builder<C,World> worldComponent()Returns aCommandComponent.BuilderusingworldParser()as the parser.- Type Parameters:
C- the command sender type- Returns:
- the component builder
- Since:
- 2.0.0
-
parse
public @NonNull ArgumentParseResult<World> parse(@NonNull CommandContext<C> commandContext, @NonNull CommandInput commandInput) - Specified by:
parsein interfaceArgumentParser<C,World>
-
stringSuggestions
public @NonNull Iterable<@NonNull String> stringSuggestions(@NonNull CommandContext<C> commandContext, @NonNull CommandInput input) - Specified by:
stringSuggestionsin interfaceBlockingSuggestionProvider.Strings<C>
-