Class ParseState<S>
java.lang.Object
net.minecraft.util.parsing.packrat.ParseState<S>
- Direct Known Subclasses:
StringReaderParserState
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
(package private) static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Dictionary
<S> private final ErrorCollector
<S> private final Map
<ParseState.CacheKey<?>, ParseState.CacheEntry<?>> -
Constructor Summary
ModifierConstructorDescriptionprotected
ParseState
(Dictionary<S> p_331339_, ErrorCollector<S> p_333871_) -
Method Summary
Modifier and TypeMethodDescriptionabstract S
input()
private <T> ParseState.CacheEntry
<T> lookupInCache
(ParseState.CacheKey<T> p_333102_) abstract int
mark()
<T> Optional
<T> <T> Optional
<T> parseTopRule
(Atom<T> p_334307_) abstract void
restore
(int p_331216_) private <T> void
storeInCache
(ParseState.CacheKey<T> p_333772_, Optional<T> p_329813_)
-
Field Details
-
ruleCache
-
dictionary
-
errorCollector
-
-
Constructor Details
-
ParseState
-
-
Method Details
-
errorCollector
-
parseTopRule
-
parse
-
lookupInCache
-
storeInCache
-
input
-
mark
public abstract int mark() -
restore
public abstract void restore(int p_331216_)
-