Class FloatArgument<C>

    • Method Detail

      • of

        public static <C> @NonNull CommandArgument<C,​Floatof​(@NonNull String name)
        Create a new required command argument
        Type Parameters:
        C - Command sender type
        Parameters:
        name - Argument name
        Returns:
        Created argument
      • optional

        public static <C> @NonNull CommandArgument<C,​Floatoptional​(@NonNull String name,
                                                                           float defaultNum)
        Create a new required command argument with a default value
        Type Parameters:
        C - Command sender type
        Parameters:
        name - Argument name
        defaultNum - Default num
        Returns:
        Created argument
      • getMin

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

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