Class ErrorCollector.LongestOnly<S>
java.lang.Object
net.minecraft.util.parsing.packrat.ErrorCollector.LongestOnly<S>
- All Implemented Interfaces:
ErrorCollector<S>
- Enclosing interface:
ErrorCollector<S>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classNested classes/interfaces inherited from interface net.minecraft.util.parsing.packrat.ErrorCollector
ErrorCollector.LongestOnly<S>, ErrorCollector.Nop<S> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ErrorCollector.LongestOnly.MutableErrorEntry<S>[]private intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddErrorEntry(SuggestionSupplier<S> pSuggestions, Object pReason) intcursor()private voiddiscardErrorsFromShorterParse(int pCursor) List<ErrorEntry<S>> entries()voidfinish(int pCursor) voidstore(int pCursor, SuggestionSupplier<S> pSuggestions, Object pReason) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.util.parsing.packrat.ErrorCollector
store
-
Field Details
-
entries
-
nextErrorEntry
private int nextErrorEntry -
lastCursor
private int lastCursor
-
-
Constructor Details
-
LongestOnly
public LongestOnly()
-
-
Method Details
-
discardErrorsFromShorterParse
private void discardErrorsFromShorterParse(int pCursor) -
finish
public void finish(int pCursor) - Specified by:
finishin interfaceErrorCollector<S>
-
store
- Specified by:
storein interfaceErrorCollector<S>
-
addErrorEntry
-
entries
-
cursor
public int cursor()
-