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 int
private int
private static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
allocateNewEntry
(Atom<?> pEntry) int
findKeyIndex
(Atom<?> pAtom) <T> CachedParseState.CacheEntry
<T> getValue
(int pIndex) void
setValue
(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
-