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 Classes
    Modifier and Type
    Class
    Description
    static enum 
    The parsing mode for a TeamParser.
    static final class 
    Exception thrown when a team cannot be found for the given input and TeamParser.TeamMode.

    Nested classes/interfaces inherited from interface org.incendo.cloud.parser.ArgumentParser

    org.incendo.cloud.parser.ArgumentParser.FutureArgumentParser<C extends Object,T extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.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>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.incendo.cloud.parser.ArgumentParser

    flatMap, flatMapSuccess, mapSuccess, parseFuture
  • Constructor Details

  • 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:
      parse in interface org.incendo.cloud.parser.ArgumentParser<C,mindustry.game.Team>
    • suggestionProvider

      public @NonNull org.incendo.cloud.suggestion.SuggestionProvider<C> suggestionProvider()
      Specified by:
      suggestionProvider in interface org.incendo.cloud.parser.ArgumentParser<C,mindustry.game.Team>
      Specified by:
      suggestionProvider in interface org.incendo.cloud.suggestion.SuggestionProviderHolder<C>