Class CrucibleRecipes
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:
CrucibleAlloyingRecipes— ordered list ofCrucibleAlloyingRecipesCrucibleSmeltingRecipes— input → output(s) smelting mapCrucibleMoldRecipes— [material, mold, placeholder, output] arrays
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final CrucibleRecipesSingleton — mirrors legacyCrucibleRecipes.INSTANCE. -
Method Summary
Modifier and TypeMethodDescriptionReturns all alloying recipes in insertion order.static List<net.minecraft.world.item.ItemStack[]>Returns all mold-casting recipes as [material, mold, placeholder, output] arrays.Returns the smelting recipe map (input ItemStack → list of output ItemStacks).voidRegisters all built-in crucible recipes.
-
Field Details
-
INSTANCE
Singleton — mirrors legacyCrucibleRecipes.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
Returns all alloying recipes in insertion order. Mirrors legacy usage ofCrucibleRecipes.INSTANCE.recipeOrderedList. -
getSmeltingRecipes
Returns the smelting recipe map (input ItemStack → list of output ItemStacks). Mirrors legacyCrucibleRecipes.getSmeltingRecipes().TODO: replace ItemStack keys with AStack/OreDict keys once RecipesCommon is ported.
-
getMoldRecipes
Returns all mold-casting recipes as [material, mold, placeholder, output] arrays. Mirrors legacyCrucibleRecipes.getMoldRecipes().
-