Class ZoomArgument<C>

java.lang.Object
cloud.commandframework.arguments.CommandArgument<@NotNull C,@NotNull Integer>
net.pl3x.map.core.command.argument.ZoomArgument<C>
Type Parameters:
C - command sender type
All Implemented Interfaces:
cloud.commandframework.keys.CloudKeyHolder<Integer>, Comparable<cloud.commandframework.arguments.CommandArgument<?,?>>

public class ZoomArgument<C> extends cloud.commandframework.arguments.CommandArgument<@NotNull C,@NotNull Integer>
A Integer argument that belongs to a command.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Mutable builder for ZoomArgument instances.

    Nested classes/interfaces inherited from class cloud.commandframework.arguments.CommandArgument

    cloud.commandframework.arguments.CommandArgument.TypedBuilder<C extends Object,T extends Object,B extends cloud.commandframework.arguments.CommandArgument.Builder<C,T>>
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ZoomArgument(boolean required, @NotNull String name, @NotNull String defaultValue, @NotNull BiFunction<@NotNull cloud.commandframework.context.CommandContext<@NotNull C>,@NotNull String,@NotNull List<@NotNull String>> suggestionsProvider, @NotNull cloud.commandframework.ArgumentDescription defaultDescription)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <C> @NotNull cloud.commandframework.arguments.CommandArgument.Builder<@NotNull C,@NotNull Integer>
    newBuilder(@NotNull String name)
    Create a new ZoomArgument builder.
    static <C> @NotNull cloud.commandframework.arguments.CommandArgument<@NotNull C,@NotNull Integer>
    of(@NotNull String name)
    Create a required ZoomArgument.
    static <C> @NotNull cloud.commandframework.arguments.CommandArgument<@NotNull C,@NotNull Integer>
    optional(@NotNull String name)
    Create an optional ZoomArgument.
    static <C> @NotNull cloud.commandframework.arguments.CommandArgument<@NotNull C,@NotNull Integer>
    optional(@NotNull String name, @NotNull String defaultValue)
    Create an optional ZoomArgument with a default value.

    Methods inherited from class cloud.commandframework.arguments.CommandArgument

    addPreprocessor, compareTo, copy, equals, getDefaultDescription, getDefaultValue, getKey, getName, getOwningCommand, getParser, getSuggestionsProvider, getValueType, hasDefaultValue, hashCode, isArgumentRegistered, isRequired, ofType, ofType, preprocess, setArgumentRegistered, setOwningCommand, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ZoomArgument

      protected ZoomArgument(boolean required, @NotNull @NotNull String name, @NotNull @NotNull String defaultValue, @NotNull @NotNull BiFunction<@NotNull cloud.commandframework.context.CommandContext<@NotNull C>,@NotNull String,@NotNull List<@NotNull String>> suggestionsProvider, @NotNull @NotNull cloud.commandframework.ArgumentDescription defaultDescription)
  • Method Details

    • newBuilder

      public static <C> @NotNull cloud.commandframework.arguments.CommandArgument.Builder<@NotNull C,@NotNull Integer> newBuilder(@NotNull @NotNull String name)
      Create a new ZoomArgument builder.
      Parameters:
      name - argument name
      Returns:
      new player argument builder
    • of

      @NotNull public static <C> @NotNull cloud.commandframework.arguments.CommandArgument<@NotNull C,@NotNull Integer> of(@NotNull @NotNull String name)
      Create a required ZoomArgument.
      Parameters:
      name - argument name
      Returns:
      constructed player argument
    • optional

      @NotNull public static <C> @NotNull cloud.commandframework.arguments.CommandArgument<@NotNull C,@NotNull Integer> optional(@NotNull @NotNull String name)
      Create an optional ZoomArgument.

      All arguments prior to any other required argument must also be required.

      Parameters:
      name - argument name
      Returns:
      constructed player argument
    • optional

      @NotNull public static <C> @NotNull cloud.commandframework.arguments.CommandArgument<@NotNull C,@NotNull Integer> optional(@NotNull @NotNull String name, @NotNull @NotNull String defaultValue)
      Create an optional ZoomArgument with a default value.

      All arguments prior to any other required argument must also be required.

      Parameters:
      name - argument name
      defaultValue - default value that will be used if none was supplied
      Returns:
      constructed player argument