Class WorldParser<C>

java.lang.Object
net.pl3x.map.core.command.argument.parser.WorldParser<C>
Type Parameters:
C - command sender type
All Implemented Interfaces:
cloud.commandframework.arguments.parser.ArgumentParser<@NotNull C,@NotNull World>

public class WorldParser<C> extends Object implements cloud.commandframework.arguments.parser.ArgumentParser<@NotNull C,@NotNull World>
Parser that parses strings into Worlds.
  • Field Summary

    Fields inherited from interface cloud.commandframework.arguments.parser.ArgumentParser

    DEFAULT_ARGUMENT_COUNT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull cloud.commandframework.arguments.parser.ArgumentParseResult<@NotNull World>
    parse(@NotNull cloud.commandframework.context.CommandContext<@NotNull C> context, @NotNull Queue<@NotNull String> queue)
     
    @NotNull List<@NotNull String>
    suggestions(@NotNull cloud.commandframework.context.CommandContext<@NotNull C> commandContext, @NotNull String input)
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface cloud.commandframework.arguments.parser.ArgumentParser

    getRequestedArgumentCount, isContextFree, map
  • Constructor Details

    • WorldParser

      public WorldParser()
  • Method Details

    • parse

      @NotNull public @NotNull cloud.commandframework.arguments.parser.ArgumentParseResult<@NotNull World> parse(@NotNull @NotNull cloud.commandframework.context.CommandContext<@NotNull C> context, @NotNull @NotNull Queue<@NotNull String> queue)
      Specified by:
      parse in interface cloud.commandframework.arguments.parser.ArgumentParser<@NotNull C,@NotNull World>
    • suggestions

      @NotNull public @NotNull List<@NotNull String> suggestions(@NotNull @NotNull cloud.commandframework.context.CommandContext<@NotNull C> commandContext, @NotNull @NotNull String input)
      Specified by:
      suggestions in interface cloud.commandframework.arguments.parser.ArgumentParser<@NotNull C,@NotNull World>