Class FloatArgumentType
java.lang.Object
com.mojang.brigadier.arguments.FloatArgumentType
- All Implemented Interfaces:
ArgumentType<Float>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Collection<String> private final floatprivate final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic FloatArgumentTypefloatArg()static FloatArgumentTypefloatArg(float min) static FloatArgumentTypefloatArg(float min, float max) static floatgetFloat(CommandContext<?> context, String name) floatfloatinthashCode()parse(StringReader reader) toString()Methods inherited from interface ArgumentType
listSuggestions, parse
-
Field Details
-
EXAMPLES
-
minimum
private final float minimum -
maximum
private final float maximum
-
-
Constructor Details
-
FloatArgumentType
private FloatArgumentType(float minimum, float maximum)
-
-
Method Details
-
floatArg
-
floatArg
-
floatArg
-
getFloat
-
getMinimum
public float getMinimum() -
getMaximum
public float getMaximum() -
parse
- Specified by:
parsein interfaceArgumentType<Float>- Throws:
CommandSyntaxException
-
equals
-
hashCode
-
toString
-
getExamples
- Specified by:
getExamplesin interfaceArgumentType<Float>
-