Class PlayerArgument

java.lang.Object
studio.mevera.imperat.util.TypeCapturer
studio.mevera.imperat.command.arguments.type.ArgumentType<BukkitCommandSource,org.bukkit.entity.Player>
studio.mevera.imperat.type.PlayerArgument
All Implemented Interfaces:
studio.mevera.imperat.util.priority.Prioritizable

public class PlayerArgument extends studio.mevera.imperat.command.arguments.type.ArgumentType<BukkitCommandSource,org.bukkit.entity.Player>
  • Field Summary

    Fields inherited from class studio.mevera.imperat.command.arguments.type.ArgumentType

    suggestions, type
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    studio.mevera.imperat.providers.SuggestionProvider<BukkitCommandSource>
    Returns the suggestion resolver associated with this parameter type.
    org.bukkit.entity.Player
    parse(@NotNull studio.mevera.imperat.context.CommandContext<BukkitCommandSource> context, @NonNull studio.mevera.imperat.command.arguments.Argument<BukkitCommandSource> argument, @NotNull String input)
     

    Methods inherited from class studio.mevera.imperat.command.arguments.type.ArgumentType

    addStaticSuggestions, equalsExactly, getDefaultValueProvider, getNumberOfParametersToConsume, getPriority, isGreedy, isRelatedToType, parse, type, wrappedType

    Methods inherited from class studio.mevera.imperat.util.TypeCapturer

    extractType, extractType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PlayerArgument

      public PlayerArgument()
  • Method Details

    • parse

      public org.bukkit.entity.Player parse(@NotNull @NotNull studio.mevera.imperat.context.CommandContext<BukkitCommandSource> context, @NonNull studio.mevera.imperat.command.arguments.Argument<BukkitCommandSource> argument, @NotNull @NotNull String input) throws studio.mevera.imperat.exception.CommandException
      Specified by:
      parse in class studio.mevera.imperat.command.arguments.type.ArgumentType<BukkitCommandSource,org.bukkit.entity.Player>
      Throws:
      studio.mevera.imperat.exception.CommandException
    • getSuggestionProvider

      public studio.mevera.imperat.providers.SuggestionProvider<BukkitCommandSource> getSuggestionProvider()
      Returns the suggestion resolver associated with this parameter type.
      Overrides:
      getSuggestionProvider in class studio.mevera.imperat.command.arguments.type.ArgumentType<BukkitCommandSource,org.bukkit.entity.Player>
      Returns:
      the suggestion resolver for generating suggestions based on the parameter type.