Package studio.mevera.imperat.type
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 -
Method Summary
Modifier and TypeMethodDescriptionstudio.mevera.imperat.resolvers.SuggestionResolver<VelocitySource> Returns the suggestion resolver associated with this parameter type.booleanmatchesInput(int rawPosition, studio.mevera.imperat.context.Context<VelocitySource> context, studio.mevera.imperat.command.parameters.CommandParameter<VelocitySource> parameter) @NotNull com.velocitypowered.api.proxy.Playerresolve(@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, withSuggestionsMethods inherited from class studio.mevera.imperat.util.TypeCapturer
extractType, extractTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
matchesInputin interfacestudio.mevera.imperat.command.parameters.type.ParameterType<VelocitySource,com.velocitypowered.api.proxy.Player> - Overrides:
matchesInputin classstudio.mevera.imperat.command.parameters.type.BaseParameterType<VelocitySource,com.velocitypowered.api.proxy.Player>
-
getSuggestionResolver
Returns the suggestion resolver associated with this parameter type.- Specified by:
getSuggestionResolverin interfacestudio.mevera.imperat.command.parameters.type.ParameterType<VelocitySource,com.velocitypowered.api.proxy.Player> - Overrides:
getSuggestionResolverin classstudio.mevera.imperat.command.parameters.type.BaseParameterType<VelocitySource,com.velocitypowered.api.proxy.Player> - Returns:
- the suggestion resolver for generating suggestions based on the parameter type.
-