Class PlainNumberVariableValueArgument<C>

java.lang.Object
cloud.commandframework.arguments.CommandArgument<C,Long>
rocks.gravili.notquests.paper.commands.arguments.variables.PlainNumberVariableValueArgument<C>
All Implemented Interfaces:
cloud.commandframework.keys.CloudKeyHolder<Long>, Comparable<cloud.commandframework.arguments.CommandArgument<?,?>>

public final class PlainNumberVariableValueArgument<C> extends cloud.commandframework.arguments.CommandArgument<C,Long>
  • Method Details

    • newBuilder

      public static <C> @NonNull PlainNumberVariableValueArgument.Builder<C> newBuilder(@NonNull String name, NotQuests main)
      Type Parameters:
      C - Command sender type
      Parameters:
      name - Name of the argument
      Returns:
      Created builder
    • of

      public static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,Long> of(@NonNull String name, NotQuests main)
      Create a new required PlainNumberVariableValueArgument.
      Type Parameters:
      C - Command sender type
      Parameters:
      name - Argument name
      Returns:
      Created argument
    • optional

      public static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,Long> optional(@NonNull String name, NotQuests main)
      Create a new optional PlainNumberVariableValueArgument.
      Type Parameters:
      C - Command sender type
      Parameters:
      name - Argument name
      Returns:
      Created argument
    • optional

      public static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,Long> optional(@NonNull String name, long defaultNum, NotQuests main)
      Create a new required PlainNumberVariableValueArgument with the specified default value.
      Type Parameters:
      C - Command sender type
      Parameters:
      name - Argument name
      defaultNum - Default value
      Returns:
      Created argument
    • getMin

      public long getMin()
      Get the minimum accepted Long that could have been parsed
      Returns:
      Minimum Long
    • getMax

      public long getMax()
      Get the maximum accepted Long that could have been parsed
      Returns:
      Maximum Long