Class CachedParseState.PositionCache
java.lang.Object
net.minecraft.util.parsing.packrat.CachedParseState.PositionCache
- Enclosing class:
CachedParseState<S>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Object[]static final intprivate intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintallocateNewEntry(Atom<?> pEntry) intfindKeyIndex(Atom<?> pAtom) <T> CachedParseState.CacheEntry<T> getValue(int pIndex) voidsetValue(int pIndex, CachedParseState.CacheEntry<?> pValue)
-
Field Details
-
ENTRY_STRIDE
public static final int ENTRY_STRIDE- See Also:
-
NOT_FOUND
private static final int NOT_FOUND- See Also:
-
atomCache
-
nextKey
private int nextKey
-
-
Constructor Details
-
PositionCache
PositionCache()
-
-
Method Details
-
findKeyIndex
-
allocateNewEntry
-
getValue
-
setValue
-