Package com.hbm_m.recipe
Class CrucibleAlloyingRecipe
java.lang.Object
com.hbm_m.recipe.CrucibleRecipe
com.hbm_m.recipe.CrucibleAlloyingRecipe
Concrete crucible alloying recipe — extends
CrucibleRecipe.
Alloying combines multiple input materials into one or more outputs inside the crucible. This class exists as a distinct type so JEI can register a separate category for alloying vs. casting vs. smelting.
Preferred construction via the inherited builder API:
new CrucibleAlloyingRecipe("bronze_alloy")
.setup(1, new ItemStack(ModItems.INGOT_BRONZE.get()))
.inputs(copperStack, tinStack)
.outputs(bronzeStack);
Legacy equivalent: CrucibleRecipe entries registered into
CrucibleRecipes.INSTANCE.recipeOrderedList.
-
Field Summary
Fields inherited from class com.hbm_m.recipe.CrucibleRecipe
frequency, name -
Constructor Summary
ConstructorsConstructorDescriptionCrucibleAlloyingRecipe(String name) Convenience constructor — equivalent tonew CrucibleRecipe(name).CrucibleAlloyingRecipe(List<net.minecraft.world.item.ItemStack> inputs, List<net.minecraft.world.item.ItemStack> outputs) Legacy-compatible constructor for migration convenience. -
Method Summary
Modifier and TypeMethodDescriptionSets the input item list from an existing collection.inputs(net.minecraft.world.item.ItemStack... inputs) Sets the input item list.Sets the output item list from an existing collection.outputs(net.minecraft.world.item.ItemStack... outputs) Sets the output item list.setup(int frequency, net.minecraft.world.item.ItemStack icon) Sets the frequency weight and the display icon.Methods inherited from class com.hbm_m.recipe.CrucibleRecipe
getIcon, getInputAmount, getInputs, getLocalizedName, getOutputs
-
Constructor Details
-
CrucibleAlloyingRecipe
Convenience constructor — equivalent tonew CrucibleRecipe(name). -
CrucibleAlloyingRecipe
public CrucibleAlloyingRecipe(List<net.minecraft.world.item.ItemStack> inputs, List<net.minecraft.world.item.ItemStack> outputs) Legacy-compatible constructor for migration convenience. Prefer the builder-style API going forward.
-
-
Method Details
-
setup
Description copied from class:CrucibleRecipeSets the frequency weight and the display icon.- Overrides:
setupin classCrucibleRecipe- Parameters:
frequency- relative weight (≥ 1)icon- display ItemStack shown in JEI / recipe selector- Returns:
thisfor chaining
-
inputs
Description copied from class:CrucibleRecipeSets the input item list. Defensive copy is made.- Overrides:
inputsin classCrucibleRecipe
-
inputs
Description copied from class:CrucibleRecipeSets the input item list from an existing collection. Defensive copy is made.- Overrides:
inputsin classCrucibleRecipe
-
outputs
Description copied from class:CrucibleRecipeSets the output item list. Defensive copy is made.- Overrides:
outputsin classCrucibleRecipe
-
outputs
Description copied from class:CrucibleRecipeSets the output item list from an existing collection. Defensive copy is made.- Overrides:
outputsin classCrucibleRecipe
-