Class DoubleArgumentType
-
- All Implemented Interfaces:
-
com.mojang.brigadier.arguments.ArgumentType
public class DoubleArgumentType implements ArgumentType<T>小数参数类型
-
-
Method Summary
Modifier and Type Method Description doublegetMinimum()获取下限 doublegetMaximum()获取上限 static DoubleArgumentTypenonNegativeDouble()非负小数类型 static DoubleArgumentTypenonPositiveDouble()非正小数类型 static DoubleArgumentTypedoubleValue()无限制小数类型 static DoubleArgumentTypedoubleValue(double min)限制最小值小数类型 static DoubleArgumentTypedoubleValue(double min, double max)限制最大值小数类型 static doublegetDouble(@NonNull() CommandContext<CommandSender> context, @NonNull() String name)Doubleparse(@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()
-
-
-
-