Class WorldParser<C>

java.lang.Object
net.pl3x.map.core.command.parser.WorldParser<C>
Type Parameters:
C - command sender type
All Implemented Interfaces:
org.incendo.cloud.parser.ArgumentParser<@NotNull C,@NotNull World>, org.incendo.cloud.suggestion.BlockingSuggestionProvider<C>, org.incendo.cloud.suggestion.BlockingSuggestionProvider.Strings<C>, org.incendo.cloud.suggestion.SuggestionProvider<C>, org.incendo.cloud.suggestion.SuggestionProviderHolder<C>

public class WorldParser<C> extends Object implements org.incendo.cloud.parser.ArgumentParser<@NotNull C,@NotNull World>, org.incendo.cloud.suggestion.BlockingSuggestionProvider.Strings<C>
Parser that parses strings into Worlds.
  • 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull org.incendo.cloud.parser.ArgumentParseResult<@NonNull @NotNull World>
    parse(@NonNull org.incendo.cloud.context.CommandContext<@NonNull @NotNull C> commandContext, @NonNull org.incendo.cloud.context.CommandInput commandInput)
     
    static <C> org.incendo.cloud.parser.ParserDescriptor<C,World>
     
    static @NotNull World
    resolveWorld(@NotNull org.incendo.cloud.context.CommandContext<@NotNull Sender> context, @NotNull String name)
     
    @NonNull Iterable<@NonNull String>
    stringSuggestions(@NonNull org.incendo.cloud.context.CommandContext<C> commandContext, @NonNull org.incendo.cloud.context.CommandInput input)
     

    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, suggestionProvider

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

    suggestionsFuture

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

    suggestions
  • Constructor Details

    • WorldParser

      public WorldParser()
  • Method Details

    • parser

      public static <C> org.incendo.cloud.parser.ParserDescriptor<C,World> parser()
    • parse

      public @NonNull org.incendo.cloud.parser.ArgumentParseResult<@NonNull @NotNull World> parse(@NonNull org.incendo.cloud.context.CommandContext<@NonNull @NotNull C> commandContext, @NonNull org.incendo.cloud.context.CommandInput commandInput)
      Specified by:
      parse in interface org.incendo.cloud.parser.ArgumentParser<@NotNull C,@NotNull World>
    • resolveWorld

      @NotNull public static @NotNull World resolveWorld(@NotNull @NotNull org.incendo.cloud.context.CommandContext<@NotNull Sender> context, @NotNull @NotNull String name)
    • stringSuggestions

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