Class RecipeCache
java.lang.Object
net.minecraft.world.item.crafting.RecipeCache
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate WeakReference
<RecipeManager> private final RecipeCache.Entry[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate Optional
<RecipeHolder<CraftingRecipe>> compute
(CraftingContainer p_309716_, Level p_309968_) get
(Level p_311354_, CraftingContainer p_310846_) private void
insert
(List<ItemStack> p_313121_, RecipeHolder<CraftingRecipe> p_330177_) private void
moveEntryToFront
(int p_309395_) private void
validateRecipeManager
(Level p_310788_)
-
Field Details
-
entries
-
cachedRecipeManager
-
-
Constructor Details
-
RecipeCache
public RecipeCache(int p_309405_)
-
-
Method Details
-
get
-
validateRecipeManager
-
compute
private Optional<RecipeHolder<CraftingRecipe>> compute(CraftingContainer p_309716_, Level p_309968_) -
moveEntryToFront
private void moveEntryToFront(int p_309395_) -
insert
-