Class LongArgumentType
-
- All Implemented Interfaces:
-
com.mojang.brigadier.arguments.ArgumentType
public class LongArgumentType implements ArgumentType<T>整数参数类型
-
-
Method Summary
Modifier and Type Method Description longgetMinimum()获取下限 longgetMaximum()获取上限 static LongArgumentTypepositiveLong()正整数类型 static LongArgumentTypenonNegativeLong()非负整数类型 static LongArgumentTypenegativeLong()负整数类型 static LongArgumentTypenonPositiveLong()非正整数类型 static LongArgumentTypelongValue()无限制整数类型 static LongArgumentTypelongValue(long min)限制最小值整数类型 static LongArgumentTypelongValue(long min, long max)限制最大值整数类型 static longgetLong(@NonNull() CommandContext<CommandSender> context, @NonNull() String name)Longparse(@NonNull() StringReader reader)Collection<String>getExamples()-
-
Method Detail
-
getMinimum
long getMinimum()
获取下限
-
getMaximum
long getMaximum()
获取上限
-
positiveLong
@NonNull() static LongArgumentType positiveLong()
正整数类型
-
nonNegativeLong
@NonNull() static LongArgumentType nonNegativeLong()
非负整数类型
-
negativeLong
@NonNull() static LongArgumentType negativeLong()
负整数类型
-
nonPositiveLong
@NonNull() static LongArgumentType nonPositiveLong()
非正整数类型
-
longValue
@NonNull() static LongArgumentType longValue()
无限制整数类型
-
longValue
@NonNull() static LongArgumentType longValue(long min)
限制最小值整数类型
-
longValue
@NonNull() static LongArgumentType longValue(long min, long max)
限制最大值整数类型
-
getLong
static long getLong(@NonNull() CommandContext<CommandSender> context, @NonNull() String name)
-
getExamples
@NonNull() Collection<String> getExamples()
-
-
-
-