Class TeamParser<C>
java.lang.Object
com.xpdustry.distributor.command.cloud.parser.TeamParser<C>
- All Implemented Interfaces:
org.incendo.cloud.parser.ArgumentParser<C,,mindustry.game.Team> org.incendo.cloud.suggestion.SuggestionProviderHolder<C>
public final class TeamParser<C>
extends Object
implements org.incendo.cloud.parser.ArgumentParser<C,mindustry.game.Team>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe parsing mode for aTeamParser.static final classException thrown when a team cannot be found for the given input andTeamParser.TeamMode. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.incendo.cloud.parser.ArgumentParseResult<mindustry.game.Team>parse(org.incendo.cloud.context.CommandContext<C> ctx, org.incendo.cloud.context.CommandInput input) @NonNull org.incendo.cloud.suggestion.SuggestionProvider<C>static <C> org.incendo.cloud.component.CommandComponent.Builder<C,mindustry.game.Team> static <C> org.incendo.cloud.parser.ParserDescriptor<C,mindustry.game.Team> static <C> @NonNull org.incendo.cloud.parser.ParserDescriptor<C,mindustry.game.Team> teamParser(TeamParser.TeamMode teamMode) 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
-
Constructor Details
-
TeamParser
-
-
Method Details
-
teamParser
public static <C> org.incendo.cloud.parser.ParserDescriptor<C,mindustry.game.Team> teamParser() -
teamParser
public static <C> @NonNull org.incendo.cloud.parser.ParserDescriptor<C,mindustry.game.Team> teamParser(TeamParser.TeamMode teamMode) -
teamComponent
public static <C> org.incendo.cloud.component.CommandComponent.Builder<C,mindustry.game.Team> teamComponent() -
parse
public org.incendo.cloud.parser.ArgumentParseResult<mindustry.game.Team> parse(org.incendo.cloud.context.CommandContext<C> ctx, org.incendo.cloud.context.CommandInput input) - Specified by:
parsein interfaceorg.incendo.cloud.parser.ArgumentParser<C,mindustry.game.Team>
-
suggestionProvider
-