Class StringVariableValueArgument<C>

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

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

    • newBuilder

      public static <C> @NonNull StringVariableValueArgument.Builder<C> newBuilder(@NonNull String name, NotQuests main, Variable<?> variable)
      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,String> of(@NonNull String name, NotQuests main, Variable<?> variable)
      Create a new required StringVariableValueArgument.
      Type Parameters:
      C - Command sender type
      Parameters:
      name - Argument name
      Returns:
      Created argument
    • optional

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

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