Package net.pl3x.map.core.command.parser
Class WorldParser<C>
java.lang.Object
net.pl3x.map.core.command.parser.WorldParser<C>
- Type Parameters:
C- command sender type
- All Implemented Interfaces:
org.incendo.cloud.parser.ArgumentParser<C,,World> org.incendo.cloud.suggestion.BlockingSuggestionProvider<C>,org.incendo.cloud.suggestion.BlockingSuggestionProvider.Strings<C>,org.incendo.cloud.suggestion.SuggestionProvider<C>,org.incendo.cloud.suggestion.SuggestionProviderHolder<C>
@NullMarked
public class WorldParser<C>
extends Object
implements org.incendo.cloud.parser.ArgumentParser<C,World>, org.incendo.cloud.suggestion.BlockingSuggestionProvider.Strings<C>
Parser that parses strings into
Worlds.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.incendo.cloud.parser.ArgumentParser
org.incendo.cloud.parser.ArgumentParser.FutureArgumentParser<C,T> Nested classes/interfaces inherited from interface org.incendo.cloud.suggestion.BlockingSuggestionProvider
org.incendo.cloud.suggestion.BlockingSuggestionProvider.Strings<C> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.incendo.cloud.parser.ArgumentParseResult<World> parse(org.incendo.cloud.context.CommandContext<C> commandContext, org.incendo.cloud.context.CommandInput commandInput) static <C> org.incendo.cloud.parser.ParserDescriptor<C, World> parser()static WorldresolveWorld(org.incendo.cloud.context.CommandContext<Sender> context, String name) stringSuggestions(org.incendo.cloud.context.CommandContext<C> commandContext, org.incendo.cloud.context.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
-
WorldParser
public WorldParser()
-
-
Method Details
-
parser
-
parse
-
resolveWorld
-
stringSuggestions
public Iterable<String> stringSuggestions(org.incendo.cloud.context.CommandContext<C> commandContext, org.incendo.cloud.context.CommandInput input) - Specified by:
stringSuggestionsin interfaceorg.incendo.cloud.suggestion.BlockingSuggestionProvider.Strings<C>
-