Class NumberRunParseRule
java.lang.Object
net.minecraft.util.parsing.packrat.commands.NumberRunParseRule
- All Implemented Interfaces:
Rule<StringReader, String>
-
Nested Class Summary
Nested classes/interfaces inherited from interface Rule
Rule.RuleAction<S,T>, Rule.SimpleRuleAction<S, T>, Rule.WrappedTerm<S, T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DelayedException<CommandSyntaxException> private final DelayedException<CommandSyntaxException> -
Constructor Summary
ConstructorsConstructorDescriptionNumberRunParseRule(DelayedException<CommandSyntaxException> noValueError, DelayedException<CommandSyntaxException> underscoreNotAllowedError) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract booleanisAccepted(char c) @Nullable Stringparse(ParseState<StringReader> state)
-
Field Details
-
noValueError
-
underscoreNotAllowedError
-
-
Constructor Details
-
NumberRunParseRule
public NumberRunParseRule(DelayedException<CommandSyntaxException> noValueError, DelayedException<CommandSyntaxException> underscoreNotAllowedError)
-
-
Method Details
-
parse
- Specified by:
parsein interfaceRule<StringReader, String>
-
isAccepted
protected abstract boolean isAccepted(char c)
-