Class ModRecipeIndex

java.lang.Object
com.hbm_m.recipe.index.ModRecipeIndex

public final class ModRecipeIndex extends Object
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.
  • Method Details

    • of

      public static ModRecipeIndex.ModRecipeIndexView of(net.minecraft.world.item.crafting.RecipeManager manager)
    • blueprintPoolOf

      @Nullable public static String blueprintPoolOf(net.minecraft.world.item.crafting.Recipe<?> recipe)
      Common blueprint-pool accessor without adding loader-specific APIs. If/when more recipe types adopt blueprint pools, add them here.