Class FloatArgument.FloatParser<C>

    • Constructor Detail

      • FloatParser

        public FloatParser​(float min,
                           float max)
        Construct a new float parser
        min - Minimum value
        max - Maximum value
    • Method Detail

      • isContextFree

        public boolean isContextFree()
        Description copied from interface: ArgumentParser
        Check whether or not this argument parser is context free. A context free parser will not use the provided command context, and so supports impromptu parsing
        Specified by:
        isContextFree in interface ArgumentParser<C,​Float>
        true if the parser is context free, else false
      • getMax

        public float getMax()
        Get the max value
        Max value
      • getMin

        public float getMin()
        Get the min value
        Min value