Class LongArgumentType
-
- All Implemented Interfaces:
-
com.mojang.brigadier.arguments.ArgumentType
public class LongArgumentType implements ArgumentType<T>
整数参数类型
-
-
Method Summary
Modifier and Type Method Description long
getMinimum()
获取下限 long
getMaximum()
获取上限 static LongArgumentType
positiveLong()
正整数类型 static LongArgumentType
nonNegativeLong()
非负整数类型 static LongArgumentType
negativeLong()
负整数类型 static LongArgumentType
nonPositiveLong()
非正整数类型 static LongArgumentType
longValue()
无限制整数类型 static LongArgumentType
longValue(long min)
限制最小值整数类型 static LongArgumentType
longValue(long min, long max)
限制最大值整数类型 static long
getLong(@NonNull() CommandContext<CommandSender> context, @NonNull() String name)
Long
parse(@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()
-
-
-
-