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_307329_, Level p_307202_) get
(Level p_307315_, CraftingContainer p_307684_) private void
insert
(List<ItemStack> p_307307_, RecipeHolder<CraftingRecipe> p_336146_) private void
moveEntryToFront
(int p_307277_) private void
validateRecipeManager
(Level p_307638_)
-
Field Details
-
entries
-
cachedRecipeManager
-
-
Constructor Details
-
RecipeCache
public RecipeCache(int p_307489_)
-
-
Method Details
-
get
-
validateRecipeManager
-
compute
private Optional<RecipeHolder<CraftingRecipe>> compute(CraftingContainer p_307329_, Level p_307202_) -
moveEntryToFront
private void moveEntryToFront(int p_307277_) -
insert
-