Class ParameterPlayer

java.lang.Object
studio.mevera.imperat.util.TypeCapturer
studio.mevera.imperat.command.parameters.type.BaseParameterType<VelocitySource,com.velocitypowered.api.proxy.Player>
studio.mevera.imperat.type.ParameterPlayer
All Implemented Interfaces:
studio.mevera.imperat.command.parameters.type.ParameterType<VelocitySource,com.velocitypowered.api.proxy.Player>

public final class ParameterPlayer extends studio.mevera.imperat.command.parameters.type.BaseParameterType<VelocitySource,com.velocitypowered.api.proxy.Player>
  • Field Summary

    Fields inherited from class studio.mevera.imperat.command.parameters.type.BaseParameterType

    suggestions, type
  • Constructor Summary

    Constructors
    Constructor
    Description
    ParameterPlayer(com.velocitypowered.api.proxy.ProxyServer server)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    studio.mevera.imperat.resolvers.SuggestionResolver<VelocitySource>
    Returns the suggestion resolver associated with this parameter type.
    boolean
    matchesInput(int rawPosition, studio.mevera.imperat.context.Context<VelocitySource> context, studio.mevera.imperat.command.parameters.CommandParameter<VelocitySource> parameter)
     
    @NotNull com.velocitypowered.api.proxy.Player
    resolve(@NotNull studio.mevera.imperat.context.ExecutionContext<VelocitySource> context, @NotNull studio.mevera.imperat.context.internal.CommandInputStream<VelocitySource> commandInputStream, @NotNull String input)
     

    Methods inherited from class studio.mevera.imperat.command.parameters.type.BaseParameterType

    type, withSuggestions

    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

    Methods inherited from interface studio.mevera.imperat.command.parameters.type.ParameterType

    equalsExactly, getConsumedArguments, isGreedy, isRelatedToType, supplyDefaultValue, wrappedType
  • Constructor Details

    • ParameterPlayer

      public ParameterPlayer(com.velocitypowered.api.proxy.ProxyServer server)
  • Method Details

    • resolve

      @NotNull public @NotNull com.velocitypowered.api.proxy.Player resolve(@NotNull @NotNull studio.mevera.imperat.context.ExecutionContext<VelocitySource> context, @NotNull @NotNull studio.mevera.imperat.context.internal.CommandInputStream<VelocitySource> commandInputStream, @NotNull @NotNull String input) throws studio.mevera.imperat.exception.ImperatException
      Throws:
      studio.mevera.imperat.exception.ImperatException
    • matchesInput

      public boolean matchesInput(int rawPosition, studio.mevera.imperat.context.Context<VelocitySource> context, studio.mevera.imperat.command.parameters.CommandParameter<VelocitySource> parameter)
      Specified by:
      matchesInput in interface studio.mevera.imperat.command.parameters.type.ParameterType<VelocitySource,com.velocitypowered.api.proxy.Player>
      Overrides:
      matchesInput in class studio.mevera.imperat.command.parameters.type.BaseParameterType<VelocitySource,com.velocitypowered.api.proxy.Player>
    • getSuggestionResolver

      public studio.mevera.imperat.resolvers.SuggestionResolver<VelocitySource> getSuggestionResolver()
      Returns the suggestion resolver associated with this parameter type.
      Specified by:
      getSuggestionResolver in interface studio.mevera.imperat.command.parameters.type.ParameterType<VelocitySource,com.velocitypowered.api.proxy.Player>
      Overrides:
      getSuggestionResolver in class studio.mevera.imperat.command.parameters.type.BaseParameterType<VelocitySource,com.velocitypowered.api.proxy.Player>
      Returns:
      the suggestion resolver for generating suggestions based on the parameter type.