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>. The three recipe types are held in separate dedicated registries, and this class just wires their JEI-facing display representations up from the same data the actual game logic uses:

  • CrucibleSmeltingRecipes — item → molten material (used by MachineCrucibleBlockEntity)
  • MoltenAlloyRecipes — molten material combinations → molten material (used by MachineCrucibleBlockEntity)
  • MoldCastingRecipes — molten material + mold → item (used by MachineFoundryBasinBlockEntity)
CrucibleAlloyingRecipes and CrucibleMoldRecipes are pure ItemStack-based JEI display mirrors of MoltenAlloyRecipes / MoldCastingRecipes, generated here.
  • 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 and their JEI display mirrors. Call once during mod initialisation (e.g. from the common setup event).
    • getAlloyingRecipes

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

      public static List<CrucibleSmeltingRecipes.SmeltingEntry> getSmeltingRecipes()
      Returns the smelting recipe list. Mirrors legacy CrucibleRecipes.getSmeltingRecipes().
    • 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().