Skip to content

Commit 90f08e6

Browse files
Merge pull request #45 from CodeMonkeysMods/coderabbitai/docstrings/679a362
📝 Add docstrings to `feat/add-items`
2 parents 679a362 + 0e146cf commit 90f08e6

1 file changed

Lines changed: 17 additions & 10 deletions

File tree

src/client/java/com/tcm/MineTale/datagen/ModRecipeProvider.java

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,32 @@ public ModRecipeProvider(FabricDataOutput output, CompletableFuture<HolderLookup
2929
}
3030

3131
/**
32-
* Creates a RecipeProvider that registers the mod's recipe set: a campfire cooking recipe
33-
* that cooks a porkchop into a cooked porkchop, a furnace cooking recipe that converts a
34-
* porkchop into an acacia boat, and a workbench crafting recipe that assembles a chest from
35-
* logs and sticks.
32+
* Create a RecipeProvider that registers the mod's recipe set to the provided exporter.
3633
*
37-
* Each recipe includes its unlock condition, crafting category, book category, processing time,
38-
* and is saved to the provided exporter under the mod-specific paths:
39-
* "campfire_pork_cooking", "furnace_pork_cooking", and "workbench_wood_chest".
34+
* <p>The produced provider registers these recipes:
35+
* - Campfire pork cooking: cooks a porkchop into a cooked porkchop and is saved as "campfire_pork_cooking".
36+
* - Workbench recipes:
37+
* - Armorers workbench (produces the armorers workbench block) saved as "workbench_armorers_workbench".
38+
* - Furnace workbench T1 (produces the furnace workbench T1 block) saved as "workbench_furnace_workbench_t1".
39+
* - Wood chest (crafts a chest from logs) saved as "workbench_wood_chest".
40+
* - Furnace T1 ingot: smelts copper ore into a copper ingot and is saved as "furnace_t1_copper_ingot".
4041
*
4142
* @param registryLookup provider for looking up game registries and tags used when building recipes
4243
* @param exporter destination used to write the generated recipe JSON files
43-
* @return a RecipeProvider that produces and saves the described recipes to the exporter
44+
* @return a RecipeProvider that generates and saves the described recipes to the exporter
4445
*/
4546
@Override
4647
protected RecipeProvider createRecipeProvider(HolderLookup.Provider registryLookup, RecipeOutput exporter) {
4748
return new RecipeProvider(registryLookup, exporter) {
4849
/**
49-
* Registers three mod-specific recipes with the recipe exporter:
50-
* a campfire pork cooking recipe producing cooked porkchop (unlocked by having a porkchop, saved as "campfire_pork_cooking"), a furnace pork cooking recipe producing an acacia boat (unlocked by having a porkchop, saved as "furnace_pork_cooking"), and a workbench recipe that crafts a chest from 5 logs and 10 sticks (unlocked by having logs, saved as "workbench_wood_chest").
50+
* Register the mod's recipes with the recipe exporter.
51+
*
52+
* <p>Registers the following recipes and their unlock conditions, categories, and export names:
53+
* - Campfire: porkchop → cooked porkchop (unlock: has porkchop; category: MISC; saved as "campfire_pork_cooking").
54+
* - Workbench (Armorers): 2 copper ingots, 10 logs, 5 stone tool materials → armorers workbench (unlock: has workbench; saved as "workbench_armorers_workbench").
55+
* - Workbench (Furnace T1): 6 logs, 6 stone tool materials → furnace workbench T1 (unlock: has workbench; saved as "workbench_furnace_workbench_t1").
56+
* - Workbench (Chests): 10 logs → chest (unlock: has logs; category: MISC; saved as "workbench_wood_chest").
57+
* - Furnace T1 (Ingots): copper ore → copper ingot (time: 10; unlock: has copper ore; saved as "furnace_t1_copper_ingot").
5158
*/
5259
@Override
5360
public void buildRecipes() {

0 commit comments

Comments
 (0)