Package studio.mevera.imperat.type
Class ParameterLocation
java.lang.Object
studio.mevera.imperat.util.TypeCapturer
studio.mevera.imperat.command.parameters.type.BaseParameterType<BukkitSource,org.bukkit.Location>
studio.mevera.imperat.type.ParameterLocation
- All Implemented Interfaces:
studio.mevera.imperat.command.parameters.type.ParameterType<BukkitSource,org.bukkit.Location>
public class ParameterLocation
extends studio.mevera.imperat.command.parameters.type.BaseParameterType<BukkitSource,org.bukkit.Location>
-
Field Summary
Fields inherited from class studio.mevera.imperat.command.parameters.type.BaseParameterType
suggestions, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisGreedy(studio.mevera.imperat.command.parameters.CommandParameter<BukkitSource> parameter) @Nullable org.bukkit.Locationresolve(@NotNull studio.mevera.imperat.context.ExecutionContext<BukkitSource> context, @NotNull studio.mevera.imperat.context.internal.CommandInputStream<BukkitSource> stream, @NotNull String input) Methods inherited from class studio.mevera.imperat.command.parameters.type.BaseParameterType
getSuggestionResolver, matchesInput, 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, isRelatedToType, supplyDefaultValue, wrappedType
-
Constructor Details
-
ParameterLocation
public ParameterLocation()
-
-
Method Details
-
resolve
@Nullable public @Nullable org.bukkit.Location resolve(@NotNull @NotNull studio.mevera.imperat.context.ExecutionContext<BukkitSource> context, @NotNull @NotNull studio.mevera.imperat.context.internal.CommandInputStream<BukkitSource> stream, @NotNull @NotNull String input) throws studio.mevera.imperat.exception.ImperatException - Throws:
studio.mevera.imperat.exception.ImperatException
-
isGreedy
public boolean isGreedy(studio.mevera.imperat.command.parameters.CommandParameter<BukkitSource> parameter)
-