Class ObjectiveParser<C>

java.lang.Object
uk.radialbog9.spigot.manhunt.tabcompleters.ObjectiveParser<C>
All Implemented Interfaces:
cloud.commandframework.arguments.parser.ArgumentParser<C,Objective>

public class ObjectiveParser<C> extends Object implements cloud.commandframework.arguments.parser.ArgumentParser<C,Objective>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Exception thrown when an objective cannot be parsed.
  • 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<Objective>
    parse(@NonNull cloud.commandframework.context.CommandContext<@NonNull C> context, @NotNull Queue<String> input)
    Parses a player from a string.

    Methods inherited from class java.lang.Object

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

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

    getRequestedArgumentCount, isContextFree, map, suggestions
  • Constructor Details

    • ObjectiveParser

      public ObjectiveParser()
  • Method Details

    • parse

      @NotNull public @NotNull cloud.commandframework.arguments.parser.ArgumentParseResult<Objective> parse(@NonNull cloud.commandframework.context.CommandContext<@NonNull C> context, @NotNull @NotNull Queue<String> input)
      Parses a player from a string.
      Specified by:
      parse in interface cloud.commandframework.arguments.parser.ArgumentParser<C,Objective>
      Parameters:
      context - The command context.
      input - The input queue.
      Returns:
      The player.