Package dev.jorel.commandapi.arguments
Class IntegerRangeArgumentType
java.lang.Object
dev.jorel.commandapi.arguments.IntegerRangeArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<IntegerRange>
public class IntegerRangeArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<IntegerRange>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final IntegerRangeArgumentTypestatic final Parser<IntegerRange> static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType -
Method Summary
Modifier and TypeMethodDescriptionstatic IntegerRangegetRange(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) parse(com.mojang.brigadier.StringReader reader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
getExamples, listSuggestions
-
Field Details
-
INSTANCE
-
EMPTY_INPUT
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType EMPTY_INPUT -
RANGE_SWAPPED
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType RANGE_SWAPPED -
parser
-
-
Method Details
-
parse
public IntegerRange parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<IntegerRange>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getRange
public static IntegerRange getRange(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key)
-