Class LocationArgument

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

public class LocationArgument extends studio.mevera.imperat.command.arguments.type.ArgumentType<BukkitCommandSource,org.bukkit.Location>
  • 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
    boolean
    isGreedy(studio.mevera.imperat.command.arguments.Argument<BukkitCommandSource> parameter)
     
    org.bukkit.Location
    parse(@NotNull studio.mevera.imperat.context.CommandContext<BukkitCommandSource> context, @NonNull studio.mevera.imperat.command.arguments.Argument<BukkitCommandSource> argument, @NotNull String input)
     
    org.bukkit.Location
    parse(@NotNull studio.mevera.imperat.context.ExecutionContext<BukkitCommandSource> context, @NotNull studio.mevera.imperat.context.internal.Cursor<BukkitCommandSource> cursor)
     

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

    addStaticSuggestions, equalsExactly, getDefaultValueProvider, getNumberOfParametersToConsume, getPriority, getSuggestionProvider, isRelatedToType, 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

    • LocationArgument

      public LocationArgument()
  • Method Details

    • parse

      public org.bukkit.Location 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.Location>
      Throws:
      studio.mevera.imperat.exception.CommandException
    • parse

      public org.bukkit.Location parse(@NotNull @NotNull studio.mevera.imperat.context.ExecutionContext<BukkitCommandSource> context, @NotNull @NotNull studio.mevera.imperat.context.internal.Cursor<BukkitCommandSource> cursor) throws studio.mevera.imperat.exception.CommandException
      Overrides:
      parse in class studio.mevera.imperat.command.arguments.type.ArgumentType<BukkitCommandSource,org.bukkit.Location>
      Throws:
      studio.mevera.imperat.exception.CommandException
    • isGreedy

      public boolean isGreedy(studio.mevera.imperat.command.arguments.Argument<BukkitCommandSource> parameter)
      Overrides:
      isGreedy in class studio.mevera.imperat.command.arguments.type.ArgumentType<BukkitCommandSource,org.bukkit.Location>