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
-
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
ConstructorsConstructorDescriptionPlayerParser(FPlayerService playerService, SocialService socialService, FileFacade fileFacade, PlatformPlayerAdapter platformPlayerAdapter, PermissionChecker permissionChecker) -
Method Summary
Modifier and TypeMethodDescriptioncreateSuggestions(FPlayer sender) getCachedSuggestion(FPlayer sender) protected boolean@NonNull org.incendo.cloud.parser.ArgumentParseResult<String> parse(@NonNull org.incendo.cloud.context.CommandContext<FPlayer> context, @NonNull org.incendo.cloud.context.CommandInput input) stringSuggestions(@NonNull org.incendo.cloud.context.CommandContext<FPlayer> context, @NonNull org.incendo.cloud.context.CommandInput input) protected voidupdateCache(FPlayer sender, List<String> suggestions) Methods inherited from class 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
-
PlayerParser
@Inject public PlayerParser(FPlayerService playerService, SocialService socialService, FileFacade fileFacade, PlatformPlayerAdapter platformPlayerAdapter, PermissionChecker permissionChecker)
-
-
Method Details
-
parse
-
stringSuggestions
public @NonNull Iterable<@NonNull String> stringSuggestions(@NonNull org.incendo.cloud.context.CommandContext<FPlayer> context, @NonNull org.incendo.cloud.context.CommandInput input) - Specified by:
stringSuggestionsin interfaceorg.incendo.cloud.suggestion.BlockingSuggestionProvider.Strings<FPlayer>
-
createSuggestions
-
getCachedSuggestion
-
updateCache
-
isVisible
-