Class RecipeCache
java.lang.Object
net.minecraft.world.item.crafting.RecipeCache
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate WeakReference
<RecipeManager> private final RecipeCache.Entry[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Optional
<RecipeHolder<CraftingRecipe>> compute
(CraftingInput pInput, Level pLevel) get
(Level pLevel, CraftingInput pInput) private void
insert
(CraftingInput pInput, RecipeHolder<CraftingRecipe> pRecipe) private void
moveEntryToFront
(int pIndex) private void
validateRecipeManager
(Level pLevel)
-
Field Details
-
entries
-
cachedRecipeManager
-
-
Constructor Details
-
RecipeCache
public RecipeCache(int pSize)
-
-
Method Details
-
get
-
validateRecipeManager
-
compute
-
moveEntryToFront
private void moveEntryToFront(int pIndex) -
insert
-