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 pCraftingInput, ServerLevel pLevel) get(ServerLevel pLevel, CraftingInput pCraftingInput) private voidinsert(CraftingInput pInput, RecipeHolder<CraftingRecipe> pRecipe) private voidmoveEntryToFront(int pIndex) private voidvalidateRecipeManager(ServerLevel pLevel)
-
Field Details
-
entries
-
cachedRecipeManager
-
-
Constructor Details
-
RecipeCache
public RecipeCache(int pSize)
-
-
Method Details
-
get
-
validateRecipeManager
-
compute
private Optional<RecipeHolder<CraftingRecipe>> compute(CraftingInput pCraftingInput, ServerLevel pLevel) -
moveEntryToFront
private void moveEntryToFront(int pIndex) -
insert
-