Class CrucibleRecipes

java.lang.Object
com.hbm_m.recipe.CrucibleRecipes

public class CrucibleRecipes extends Object
Central recipe registry for the crucible machine.

Modern port of legacy CrucibleRecipes extends GenericRecipes<CrucibleRecipe>. In the legacy code this class was both the alloying-recipe list and the source of dynamically-generated smelting / mold recipes. Here the three recipe types are held in separate dedicated registries:

This class acts as a façade so call-sites that use CrucibleRecipes.INSTANCE or the static helper methods continue to compile after the port.

MaterialStack / Mats TODO: All registerDefaults() entries that depend on MaterialStack, Mats.*, NTMMaterial, MaterialShapes, ItemScraps, or OreDictionary are stubbed with TODO comments. Restore them once com.hbm_m.inventory.material is ported.

  • Field Details

    • INSTANCE

      public static final CrucibleRecipes INSTANCE
      Singleton — mirrors legacy CrucibleRecipes.INSTANCE.
  • Method Details

    • registerDefaults

      public void registerDefaults()
      Registers all built-in crucible recipes. Call once during mod initialisation (e.g. from the common setup event).

      Legacy method: CrucibleRecipes.INSTANCE.registerDefaults().

    • getAlloyingRecipes

      public List<CrucibleAlloyingRecipe> getAlloyingRecipes()
      Returns all alloying recipes in insertion order. Mirrors legacy usage of CrucibleRecipes.INSTANCE.recipeOrderedList.
    • getSmeltingRecipes

      public static List<CrucibleSmeltingRecipes.SmeltingEntry> getSmeltingRecipes()
      Returns the smelting recipe map (input ItemStack → list of output ItemStacks). Mirrors legacy CrucibleRecipes.getSmeltingRecipes().

      TODO: replace ItemStack keys with AStack/OreDict keys once RecipesCommon is ported.

    • getMoldRecipes

      public static List<net.minecraft.world.item.ItemStack[]> getMoldRecipes()
      Returns all mold-casting recipes as [material, mold, placeholder, output] arrays. Mirrors legacy CrucibleRecipes.getMoldRecipes().