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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isGreedy(studio.mevera.imperat.command.parameters.CommandParameter<BukkitSource> parameter)
     
    @Nullable org.bukkit.Location
    resolve(@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, 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, 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)