Package com.hbm_m.recipe.index
Class ModRecipeIndex
java.lang.Object
com.hbm_m.recipe.index.ModRecipeIndex
Centralized, common (loader-agnostic) recipe indexes built on top of vanilla JSON recipes.
Source of truth remains
RecipeManager. This class only builds fast lookup tables:
- by id
- ordered list (stable, for GUI)
- blueprint pools (recipe -> pool, pool -> recipes)
- autoswitch groups (vanilla "group" string -> recipes)
Cache key: RecipeManager identity + observed recipe count per type.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic StringblueprintPoolOf(net.minecraft.world.item.crafting.Recipe<?> recipe) Common blueprint-pool accessor without adding loader-specific APIs.of(net.minecraft.world.item.crafting.RecipeManager manager)
-
Method Details
-
of
public static ModRecipeIndex.ModRecipeIndexView of(net.minecraft.world.item.crafting.RecipeManager manager) -
blueprintPoolOf
Common blueprint-pool accessor without adding loader-specific APIs. If/when more recipe types adopt blueprint pools, add them here.
-