Class PlayerParser

java.lang.Object
net.flectone.pulse.processing.parser.player.PlayerParser
All Implemented Interfaces:
org.incendo.cloud.parser.ArgumentParser<FPlayer,String>, org.incendo.cloud.suggestion.BlockingSuggestionProvider<FPlayer>, org.incendo.cloud.suggestion.BlockingSuggestionProvider.Strings<FPlayer>, org.incendo.cloud.suggestion.SuggestionProvider<FPlayer>, org.incendo.cloud.suggestion.SuggestionProviderHolder<FPlayer>
Direct Known Subclasses:
OfflinePlayerParser, PlatformPlayerParser

public class PlayerParser extends Object implements org.incendo.cloud.parser.ArgumentParser<FPlayer,String>, org.incendo.cloud.suggestion.BlockingSuggestionProvider.Strings<FPlayer>
  • 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
    Constructor
    Description
    PlayerParser(FPlayerService playerService, SocialService socialService, FileFacade fileFacade, PlatformPlayerAdapter platformPlayerAdapter, PermissionChecker permissionChecker)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected List<String>
     
    protected boolean
    isVisible(FPlayer sender, FPlayer fPlayer)
     
    @NonNull org.incendo.cloud.parser.ArgumentParseResult<String>
    parse(@NonNull org.incendo.cloud.context.CommandContext<FPlayer> context, @NonNull org.incendo.cloud.context.CommandInput input)
     
    @NonNull Iterable<@NonNull String>
    stringSuggestions(@NonNull org.incendo.cloud.context.CommandContext<FPlayer> context, @NonNull org.incendo.cloud.context.CommandInput input)
     
    protected void
    updateCache(FPlayer sender, List<String> suggestions)
     

    Methods inherited from class 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, suggestionProvider

    Methods inherited from interface org.incendo.cloud.suggestion.BlockingSuggestionProvider

    suggestionsFuture

    Methods inherited from interface org.incendo.cloud.suggestion.BlockingSuggestionProvider.Strings

    suggestions
  • Constructor Details

  • Method Details

    • parse

      public @NonNull org.incendo.cloud.parser.ArgumentParseResult<String> parse(@NonNull org.incendo.cloud.context.CommandContext<FPlayer> context, @NonNull org.incendo.cloud.context.CommandInput input)
      Specified by:
      parse in interface org.incendo.cloud.parser.ArgumentParser<FPlayer,String>
    • stringSuggestions

      public @NonNull Iterable<@NonNull String> stringSuggestions(@NonNull org.incendo.cloud.context.CommandContext<FPlayer> context, @NonNull org.incendo.cloud.context.CommandInput input)
      Specified by:
      stringSuggestions in interface org.incendo.cloud.suggestion.BlockingSuggestionProvider.Strings<FPlayer>
    • createSuggestions

      public List<String> createSuggestions(FPlayer sender)
    • getCachedSuggestion

      protected List<String> getCachedSuggestion(FPlayer sender)
    • updateCache

      protected void updateCache(FPlayer sender, List<String> suggestions)
    • isVisible

      protected boolean isVisible(FPlayer sender, FPlayer fPlayer)