Class PlayerParser<C>

java.lang.Object
com.xpdustry.distributor.command.cloud.parser.PlayerParser<C>
All Implemented Interfaces:
org.incendo.cloud.parser.ArgumentParser<C,mindustry.gen.Player>, org.incendo.cloud.suggestion.SuggestionProviderHolder<C>

public final class PlayerParser<C> extends Object implements org.incendo.cloud.parser.ArgumentParser<C,mindustry.gen.Player>
  • Nested Class Summary

    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.gen.Player>
    parse(org.incendo.cloud.context.CommandContext<C> ctx, org.incendo.cloud.context.CommandInput input)
     
    @NonNull CompletableFuture<@NonNull org.incendo.cloud.parser.ArgumentParseResult<mindustry.gen.Player>>
    parseFuture(org.incendo.cloud.context.CommandContext<C> ctx, org.incendo.cloud.context.CommandInput input)
     
    static <C> org.incendo.cloud.component.CommandComponent.Builder<C,mindustry.gen.Player>
     
    static <C> org.incendo.cloud.parser.ParserDescriptor<C,mindustry.gen.Player>
     
    @NonNull org.incendo.cloud.suggestion.SuggestionProvider<C>
     

    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
  • Constructor Details

    • PlayerParser

      public PlayerParser()
  • Method Details

    • playerParser

      public static <C> org.incendo.cloud.parser.ParserDescriptor<C,mindustry.gen.Player> playerParser()
    • playerComponent

      public static <C> org.incendo.cloud.component.CommandComponent.Builder<C,mindustry.gen.Player> playerComponent()
    • parse

      public org.incendo.cloud.parser.ArgumentParseResult<mindustry.gen.Player> 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.gen.Player>
    • parseFuture

      public @NonNull CompletableFuture<@NonNull org.incendo.cloud.parser.ArgumentParseResult<mindustry.gen.Player>> parseFuture(org.incendo.cloud.context.CommandContext<C> ctx, org.incendo.cloud.context.CommandInput input)
      Specified by:
      parseFuture in interface org.incendo.cloud.parser.ArgumentParser<C,mindustry.gen.Player>
    • suggestionProvider

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