Class ZoomParser<C>

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

public class ZoomParser<C> extends Object implements cloud.commandframework.arguments.parser.ArgumentParser<C,Integer>
Parser that parses strings into Integers for zoom levels.
  • 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<Integer>
    parse(@NotNull cloud.commandframework.context.CommandContext<C> context, @NotNull Queue<@NotNull String> inputQueue)
     
    @NotNull List<@NotNull String>
    suggestions(@NotNull cloud.commandframework.context.CommandContext<C> context, @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

    • ZoomParser

      public ZoomParser()
  • Method Details

    • parse

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

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