Class DoubleArgumentType
-
- All Implemented Interfaces:
-
com.mojang.brigadier.arguments.ArgumentType
public class DoubleArgumentType implements ArgumentType<T>
小数参数类型
-
-
Method Summary
Modifier and Type Method Description double
getMinimum()
获取下限 double
getMaximum()
获取上限 static DoubleArgumentType
nonNegativeDouble()
非负小数类型 static DoubleArgumentType
nonPositiveDouble()
非正小数类型 static DoubleArgumentType
doubleValue()
无限制小数类型 static DoubleArgumentType
doubleValue(double min)
限制最小值小数类型 static DoubleArgumentType
doubleValue(double min, double max)
限制最大值小数类型 static double
getDouble(@NonNull() CommandContext<CommandSender> context, @NonNull() String name)
Double
parse(@NonNull() StringReader reader)
Collection<String>
getExamples()
-
-
Method Detail
-
getMinimum
double getMinimum()
获取下限
-
getMaximum
double getMaximum()
获取上限
-
nonNegativeDouble
@NonNull() static DoubleArgumentType nonNegativeDouble()
非负小数类型
-
nonPositiveDouble
@NonNull() static DoubleArgumentType nonPositiveDouble()
非正小数类型
-
doubleValue
@NonNull() static DoubleArgumentType doubleValue()
无限制小数类型
-
doubleValue
@NonNull() static DoubleArgumentType doubleValue(double min)
限制最小值小数类型
-
doubleValue
@NonNull() static DoubleArgumentType doubleValue(double min, double max)
限制最大值小数类型
-
getDouble
static double getDouble(@NonNull() CommandContext<CommandSender> context, @NonNull() String name)
-
getExamples
@NonNull() Collection<String> getExamples()
-
-
-
-