同步参数名称
This commit is contained in:
parent
211a77c1e0
commit
9371e4914a
1 changed files with 113 additions and 113 deletions
|
@ -31,24 +31,24 @@ public class ModRecipeProvider extends RecipeProvider {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected void buildRecipes(@NotNull RecipeOutput output) {
|
||||
protected void buildRecipes(@NotNull RecipeOutput writer) {
|
||||
// special
|
||||
SpecialRecipeBuilder.special(PotionMortarShellRecipe::new).save(output, "potion_mortar_shell");
|
||||
SpecialRecipeBuilder.special(AmmoBoxAddAmmoRecipe::new).save(output, "ammo_box_add_ammo");
|
||||
SpecialRecipeBuilder.special(AmmoBoxExtractAmmoRecipe::new).save(output, "ammo_box_extract_ammo");
|
||||
SpecialRecipeBuilder.special(PotionMortarShellRecipe::new).save(writer, "potion_mortar_shell");
|
||||
SpecialRecipeBuilder.special(AmmoBoxAddAmmoRecipe::new).save(writer, "ammo_box_add_ammo");
|
||||
SpecialRecipeBuilder.special(AmmoBoxExtractAmmoRecipe::new).save(writer, "ammo_box_extract_ammo");
|
||||
|
||||
// items
|
||||
// 材料
|
||||
generateMaterialRecipes(output, ModItems.IRON_MATERIALS, Items.IRON_INGOT);
|
||||
generateMaterialRecipes(output, ModItems.STEEL_MATERIALS, ModItems.STEEL_INGOT.get());
|
||||
generateMaterialRecipes(output, ModItems.CEMENTED_CARBIDE_MATERIALS, ModItems.CEMENTED_CARBIDE_INGOT.get());
|
||||
generateSmithingMaterialRecipe(output, ModItems.CEMENTED_CARBIDE_MATERIALS, ModItems.NETHERITE_MATERIALS, Items.NETHERITE_UPGRADE_SMITHING_TEMPLATE, Items.NETHERITE_INGOT);
|
||||
generateMaterialRecipes(writer, ModItems.IRON_MATERIALS, Items.IRON_INGOT);
|
||||
generateMaterialRecipes(writer, ModItems.STEEL_MATERIALS, ModItems.STEEL_INGOT.get());
|
||||
generateMaterialRecipes(writer, ModItems.CEMENTED_CARBIDE_MATERIALS, ModItems.CEMENTED_CARBIDE_INGOT.get());
|
||||
generateSmithingMaterialRecipe(writer, ModItems.CEMENTED_CARBIDE_MATERIALS, ModItems.NETHERITE_MATERIALS, Items.NETHERITE_UPGRADE_SMITHING_TEMPLATE, Items.NETHERITE_INGOT);
|
||||
|
||||
// 材料包
|
||||
generateMaterialPackRecipe(output, ModItems.IRON_MATERIALS, ModItems.COMMON_MATERIAL_PACK.get());
|
||||
generateMaterialPackRecipe(output, ModItems.STEEL_MATERIALS, ModItems.RARE_MATERIAL_PACK.get());
|
||||
generateMaterialPackRecipe(output, ModItems.CEMENTED_CARBIDE_MATERIALS, ModItems.EPIC_MATERIAL_PACK.get());
|
||||
generateMaterialPackRecipe(output, ModItems.NETHERITE_MATERIALS, ModItems.LEGENDARY_MATERIAL_PACK.get());
|
||||
generateMaterialPackRecipe(writer, ModItems.IRON_MATERIALS, ModItems.COMMON_MATERIAL_PACK.get());
|
||||
generateMaterialPackRecipe(writer, ModItems.STEEL_MATERIALS, ModItems.RARE_MATERIAL_PACK.get());
|
||||
generateMaterialPackRecipe(writer, ModItems.CEMENTED_CARBIDE_MATERIALS, ModItems.EPIC_MATERIAL_PACK.get());
|
||||
generateMaterialPackRecipe(writer, ModItems.NETHERITE_MATERIALS, ModItems.LEGENDARY_MATERIAL_PACK.get());
|
||||
|
||||
// 方块
|
||||
ShapedRecipeBuilder.shaped(RecipeCategory.REDSTONE, ModItems.SUPERB_ITEM_INTERFACE.get())
|
||||
|
@ -58,7 +58,7 @@ public class ModRecipeProvider extends RecipeProvider {
|
|||
.define('a', Items.HOPPER)
|
||||
.define('b', Items.DROPPER)
|
||||
.unlockedBy(getHasName(Items.HOPPER), has(Items.DROPPER))
|
||||
.save(output, Mod.loc(getItemName(ModItems.SUPERB_ITEM_INTERFACE.get())));
|
||||
.save(writer, Mod.loc(getItemName(ModItems.SUPERB_ITEM_INTERFACE.get())));
|
||||
|
||||
// vehicles
|
||||
containerRecipe(ModEntities.A_10A.get())
|
||||
|
@ -72,7 +72,7 @@ public class ModRecipeProvider extends RecipeProvider {
|
|||
.define('e', ModItems.LARGE_MOTOR.get())
|
||||
.define('f', ModItems.MEDIUM_BATTERY_PACK.get())
|
||||
.unlockedBy(getHasName(ModItems.HEAVY_ARMAMENT_MODULE.get()), has(ModItems.HEAVY_ARMAMENT_MODULE.get()))
|
||||
.save(output, Mod.loc(getContainerRecipeName(ModEntities.A_10A.get())));
|
||||
.save(writer, Mod.loc(getContainerRecipeName(ModEntities.A_10A.get())));
|
||||
containerRecipe(ModEntities.AH_6.get())
|
||||
.pattern("abc")
|
||||
.pattern("def")
|
||||
|
@ -86,104 +86,104 @@ public class ModRecipeProvider extends RecipeProvider {
|
|||
.define('g', ModItems.MEDIUM_BATTERY_PACK.get())
|
||||
.define('h', ModItems.LIGHT_ARMAMENT_MODULE.get())
|
||||
.unlockedBy(getHasName(ModItems.LIGHT_ARMAMENT_MODULE.get()), has(ModItems.LIGHT_ARMAMENT_MODULE.get()))
|
||||
.save(output, Mod.loc(getContainerRecipeName(ModEntities.AH_6.get())));
|
||||
.save(writer, Mod.loc(getContainerRecipeName(ModEntities.AH_6.get())));
|
||||
|
||||
// guns
|
||||
gunSmithing(output, ModItems.TRACHELIUM_BLUEPRINT.get(), GunRarity.EPIC, ModTags.Items.INGOTS_CEMENTED_CARBIDE, ModItems.TRACHELIUM.get());
|
||||
gunSmithing(output, ModItems.GLOCK_17_BLUEPRINT.get(), GunRarity.COMMON, Items.IRON_INGOT, ModItems.GLOCK_17.get());
|
||||
gunSmithing(output, ModItems.MP_443_BLUEPRINT.get(), GunRarity.COMMON, Items.IRON_INGOT, ModItems.MP_443.get());
|
||||
gunSmithing(output, ModItems.GLOCK_18_BLUEPRINT.get(), GunRarity.RARE, Items.GOLD_INGOT, ModItems.GLOCK_18.get());
|
||||
gunSmithing(output, ModItems.HUNTING_RIFLE_BLUEPRINT.get(), GunRarity.RARE, ItemTags.LOGS, ModItems.HUNTING_RIFLE.get());
|
||||
gunSmithing(output, ModItems.M_79_BLUEPRINT.get(), GunRarity.RARE, Items.DISPENSER, ModItems.M_79.get());
|
||||
gunSmithing(output, ModItems.RPG_BLUEPRINT.get(), GunRarity.RARE, Items.DISPENSER, ModItems.RPG.get());
|
||||
gunSmithing(output, ModItems.BOCEK_BLUEPRINT.get(), GunRarity.EPIC, Items.BOW, ModItems.BOCEK.get());
|
||||
gunSmithing(output, ModItems.M_4_BLUEPRINT.get(), GunRarity.RARE, ModTags.Items.INGOTS_STEEL, ModItems.M_4.get());
|
||||
gunSmithing(output, ModItems.AA_12_BLUEPRINT.get(), GunRarity.LEGENDARY, Items.NETHERITE_INGOT, ModItems.AA_12.get());
|
||||
gunSmithing(output, ModItems.HK_416_BLUEPRINT.get(), GunRarity.RARE, ModTags.Items.INGOTS_STEEL, ModItems.HK_416.get());
|
||||
gunSmithing(output, ModItems.RPK_BLUEPRINT.get(), GunRarity.EPIC, ItemTags.LOGS, ModItems.RPK.get());
|
||||
gunSmithing(output, ModItems.SKS_BLUEPRINT.get(), GunRarity.RARE, ItemTags.LOGS, ModItems.SKS.get());
|
||||
gunSmithing(output, ModItems.NTW_20_BLUEPRINT.get(), GunRarity.LEGENDARY, Items.SPYGLASS, ModItems.NTW_20.get());
|
||||
gunSmithing(output, ModItems.MP_5_BLUEPRINT.get(), GunRarity.RARE, Items.IRON_INGOT, ModItems.MP_5.get());
|
||||
gunSmithing(output, ModItems.VECTOR_BLUEPRINT.get(), GunRarity.EPIC, ModTags.Items.INGOTS_CEMENTED_CARBIDE, ModItems.VECTOR.get());
|
||||
gunSmithing(output, ModItems.MINIGUN_BLUEPRINT.get(), GunRarity.LEGENDARY, ModItems.MOTOR.get(), ModItems.MINIGUN.get());
|
||||
gunSmithing(output, ModItems.MK_14_BLUEPRINT.get(), GunRarity.EPIC, ModTags.Items.INGOTS_CEMENTED_CARBIDE, ModItems.MK_14.get());
|
||||
gunSmithing(output, ModItems.SENTINEL_BLUEPRINT.get(), GunRarity.EPIC, ModItems.CELL.get(), ModItems.SENTINEL.get());
|
||||
gunSmithing(output, ModItems.M_60_BLUEPRINT.get(), GunRarity.EPIC, ModTags.Items.INGOTS_CEMENTED_CARBIDE, ModItems.M_60.get());
|
||||
gunSmithing(output, ModItems.SVD_BLUEPRINT.get(), GunRarity.EPIC, ModTags.Items.INGOTS_CEMENTED_CARBIDE, ModItems.SVD.get());
|
||||
gunSmithing(output, ModItems.MARLIN_BLUEPRINT.get(), GunRarity.COMMON, ItemTags.LOGS, ModItems.MARLIN.get());
|
||||
gunSmithing(output, ModItems.M_870_BLUEPRINT.get(), GunRarity.RARE, ModTags.Items.INGOTS_STEEL, ModItems.M_870.get());
|
||||
gunSmithing(output, ModItems.M_98B_BLUEPRINT.get(), GunRarity.EPIC, Items.SPYGLASS, ModItems.M_98B.get());
|
||||
gunSmithing(output, ModItems.AK_47_BLUEPRINT.get(), GunRarity.RARE, ItemTags.LOGS, ModItems.AK_47.get());
|
||||
gunSmithing(output, ModItems.AK_12_BLUEPRINT.get(), GunRarity.RARE, ModTags.Items.INGOTS_STEEL, ModItems.AK_12.get());
|
||||
gunSmithing(output, ModItems.DEVOTION_BLUEPRINT.get(), GunRarity.EPIC, ModTags.Items.INGOTS_CEMENTED_CARBIDE, ModItems.DEVOTION.get());
|
||||
gunSmithing(output, ModItems.TASER_BLUEPRINT.get(), GunRarity.COMMON, Items.YELLOW_CONCRETE, ModItems.TASER.get());
|
||||
gunSmithing(output, ModItems.M_1911_BLUEPRINT.get(), GunRarity.COMMON, ModTags.Items.INGOTS_STEEL, ModItems.M_1911.get());
|
||||
gunSmithing(output, ModItems.QBZ_95_BLUEPRINT.get(), GunRarity.RARE, ModTags.Items.INGOTS_STEEL, ModItems.QBZ_95.get());
|
||||
gunSmithing(output, ModItems.K_98_BLUEPRINT.get(), GunRarity.RARE, ItemTags.LOGS, ModItems.K_98.get());
|
||||
gunSmithing(output, ModItems.MOSIN_NAGANT_BLUEPRINT.get(), GunRarity.RARE, ItemTags.LOGS, ModItems.MOSIN_NAGANT.get());
|
||||
gunSmithing(output, ModItems.JAVELIN_BLUEPRINT.get(), GunRarity.LEGENDARY, ModItems.ANCIENT_CPU.get(), ModItems.JAVELIN.get());
|
||||
// gunSmithing(output, ModItems.M_2_HB_BLUEPRINT.get(), GunRarity.RARE, ModTags.Items.INGOTS_STEEL, ModItems.M_2_HB.get());
|
||||
gunSmithing(output, ModItems.SECONDARY_CATACLYSM_BLUEPRINT.get(), GunRarity.LEGENDARY, ModItems.KNIFE.get(), ModItems.SECONDARY_CATACLYSM.get());
|
||||
gunSmithing(output, ModItems.INSIDIOUS_BLUEPRINT.get(), GunRarity.EPIC, ModTags.Items.INGOTS_CEMENTED_CARBIDE, ModItems.INSIDIOUS.get());
|
||||
gunSmithing(output, ModItems.AURELIA_SCEPTRE_BLUEPRINT.get(), GunRarity.LEGENDARY, Items.END_CRYSTAL, ModItems.AURELIA_SCEPTRE.get());
|
||||
gunSmithing(writer, ModItems.TRACHELIUM_BLUEPRINT.get(), GunRarity.EPIC, ModTags.Items.INGOTS_CEMENTED_CARBIDE, ModItems.TRACHELIUM.get());
|
||||
gunSmithing(writer, ModItems.GLOCK_17_BLUEPRINT.get(), GunRarity.COMMON, Items.IRON_INGOT, ModItems.GLOCK_17.get());
|
||||
gunSmithing(writer, ModItems.MP_443_BLUEPRINT.get(), GunRarity.COMMON, Items.IRON_INGOT, ModItems.MP_443.get());
|
||||
gunSmithing(writer, ModItems.GLOCK_18_BLUEPRINT.get(), GunRarity.RARE, Items.GOLD_INGOT, ModItems.GLOCK_18.get());
|
||||
gunSmithing(writer, ModItems.HUNTING_RIFLE_BLUEPRINT.get(), GunRarity.RARE, ItemTags.LOGS, ModItems.HUNTING_RIFLE.get());
|
||||
gunSmithing(writer, ModItems.M_79_BLUEPRINT.get(), GunRarity.RARE, Items.DISPENSER, ModItems.M_79.get());
|
||||
gunSmithing(writer, ModItems.RPG_BLUEPRINT.get(), GunRarity.RARE, Items.DISPENSER, ModItems.RPG.get());
|
||||
gunSmithing(writer, ModItems.BOCEK_BLUEPRINT.get(), GunRarity.EPIC, Items.BOW, ModItems.BOCEK.get());
|
||||
gunSmithing(writer, ModItems.M_4_BLUEPRINT.get(), GunRarity.RARE, ModTags.Items.INGOTS_STEEL, ModItems.M_4.get());
|
||||
gunSmithing(writer, ModItems.AA_12_BLUEPRINT.get(), GunRarity.LEGENDARY, Items.NETHERITE_INGOT, ModItems.AA_12.get());
|
||||
gunSmithing(writer, ModItems.HK_416_BLUEPRINT.get(), GunRarity.RARE, ModTags.Items.INGOTS_STEEL, ModItems.HK_416.get());
|
||||
gunSmithing(writer, ModItems.RPK_BLUEPRINT.get(), GunRarity.EPIC, ItemTags.LOGS, ModItems.RPK.get());
|
||||
gunSmithing(writer, ModItems.SKS_BLUEPRINT.get(), GunRarity.RARE, ItemTags.LOGS, ModItems.SKS.get());
|
||||
gunSmithing(writer, ModItems.NTW_20_BLUEPRINT.get(), GunRarity.LEGENDARY, Items.SPYGLASS, ModItems.NTW_20.get());
|
||||
gunSmithing(writer, ModItems.MP_5_BLUEPRINT.get(), GunRarity.RARE, Items.IRON_INGOT, ModItems.MP_5.get());
|
||||
gunSmithing(writer, ModItems.VECTOR_BLUEPRINT.get(), GunRarity.EPIC, ModTags.Items.INGOTS_CEMENTED_CARBIDE, ModItems.VECTOR.get());
|
||||
gunSmithing(writer, ModItems.MINIGUN_BLUEPRINT.get(), GunRarity.LEGENDARY, ModItems.MOTOR.get(), ModItems.MINIGUN.get());
|
||||
gunSmithing(writer, ModItems.MK_14_BLUEPRINT.get(), GunRarity.EPIC, ModTags.Items.INGOTS_CEMENTED_CARBIDE, ModItems.MK_14.get());
|
||||
gunSmithing(writer, ModItems.SENTINEL_BLUEPRINT.get(), GunRarity.EPIC, ModItems.CELL.get(), ModItems.SENTINEL.get());
|
||||
gunSmithing(writer, ModItems.M_60_BLUEPRINT.get(), GunRarity.EPIC, ModTags.Items.INGOTS_CEMENTED_CARBIDE, ModItems.M_60.get());
|
||||
gunSmithing(writer, ModItems.SVD_BLUEPRINT.get(), GunRarity.EPIC, ModTags.Items.INGOTS_CEMENTED_CARBIDE, ModItems.SVD.get());
|
||||
gunSmithing(writer, ModItems.MARLIN_BLUEPRINT.get(), GunRarity.COMMON, ItemTags.LOGS, ModItems.MARLIN.get());
|
||||
gunSmithing(writer, ModItems.M_870_BLUEPRINT.get(), GunRarity.RARE, ModTags.Items.INGOTS_STEEL, ModItems.M_870.get());
|
||||
gunSmithing(writer, ModItems.M_98B_BLUEPRINT.get(), GunRarity.EPIC, Items.SPYGLASS, ModItems.M_98B.get());
|
||||
gunSmithing(writer, ModItems.AK_47_BLUEPRINT.get(), GunRarity.RARE, ItemTags.LOGS, ModItems.AK_47.get());
|
||||
gunSmithing(writer, ModItems.AK_12_BLUEPRINT.get(), GunRarity.RARE, ModTags.Items.INGOTS_STEEL, ModItems.AK_12.get());
|
||||
gunSmithing(writer, ModItems.DEVOTION_BLUEPRINT.get(), GunRarity.EPIC, ModTags.Items.INGOTS_CEMENTED_CARBIDE, ModItems.DEVOTION.get());
|
||||
gunSmithing(writer, ModItems.TASER_BLUEPRINT.get(), GunRarity.COMMON, Items.YELLOW_CONCRETE, ModItems.TASER.get());
|
||||
gunSmithing(writer, ModItems.M_1911_BLUEPRINT.get(), GunRarity.COMMON, ModTags.Items.INGOTS_STEEL, ModItems.M_1911.get());
|
||||
gunSmithing(writer, ModItems.QBZ_95_BLUEPRINT.get(), GunRarity.RARE, ModTags.Items.INGOTS_STEEL, ModItems.QBZ_95.get());
|
||||
gunSmithing(writer, ModItems.K_98_BLUEPRINT.get(), GunRarity.RARE, ItemTags.LOGS, ModItems.K_98.get());
|
||||
gunSmithing(writer, ModItems.MOSIN_NAGANT_BLUEPRINT.get(), GunRarity.RARE, ItemTags.LOGS, ModItems.MOSIN_NAGANT.get());
|
||||
gunSmithing(writer, ModItems.JAVELIN_BLUEPRINT.get(), GunRarity.LEGENDARY, ModItems.ANCIENT_CPU.get(), ModItems.JAVELIN.get());
|
||||
// gunSmithing(writer, ModItems.M_2_HB_BLUEPRINT.get(), GunRarity.RARE, ModTags.Items.INGOTS_STEEL, ModItems.M_2_HB.get());
|
||||
gunSmithing(writer, ModItems.SECONDARY_CATACLYSM_BLUEPRINT.get(), GunRarity.LEGENDARY, ModItems.KNIFE.get(), ModItems.SECONDARY_CATACLYSM.get());
|
||||
gunSmithing(writer, ModItems.INSIDIOUS_BLUEPRINT.get(), GunRarity.EPIC, ModTags.Items.INGOTS_CEMENTED_CARBIDE, ModItems.INSIDIOUS.get());
|
||||
gunSmithing(writer, ModItems.AURELIA_SCEPTRE_BLUEPRINT.get(), GunRarity.LEGENDARY, Items.END_CRYSTAL, ModItems.AURELIA_SCEPTRE.get());
|
||||
|
||||
// blueprints
|
||||
copyBlueprint(output, ModItems.TRACHELIUM_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.GLOCK_17_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.MP_443_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.GLOCK_18_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.HUNTING_RIFLE_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.M_79_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.RPG_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.BOCEK_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.M_4_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.AA_12_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.HK_416_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.RPK_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.SKS_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.NTW_20_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.MP_5_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.VECTOR_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.MINIGUN_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.MK_14_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.SENTINEL_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.M_60_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.SVD_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.MARLIN_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.M_870_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.M_98B_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.AK_47_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.AK_12_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.DEVOTION_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.TASER_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.M_1911_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.QBZ_95_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.K_98_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.MOSIN_NAGANT_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.JAVELIN_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.M_2_HB_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.SECONDARY_CATACLYSM_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.INSIDIOUS_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.AURELIA_SCEPTRE_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.MK_42_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.MLE_1934_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.HPJ_11_BLUEPRINT.get());
|
||||
copyBlueprint(output, ModItems.ANNIHILATOR_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.TRACHELIUM_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.GLOCK_17_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.MP_443_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.GLOCK_18_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.HUNTING_RIFLE_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.M_79_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.RPG_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.BOCEK_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.M_4_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.AA_12_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.HK_416_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.RPK_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.SKS_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.NTW_20_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.MP_5_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.VECTOR_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.MINIGUN_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.MK_14_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.SENTINEL_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.M_60_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.SVD_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.MARLIN_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.M_870_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.M_98B_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.AK_47_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.AK_12_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.DEVOTION_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.TASER_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.M_1911_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.QBZ_95_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.K_98_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.MOSIN_NAGANT_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.JAVELIN_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.M_2_HB_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.SECONDARY_CATACLYSM_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.INSIDIOUS_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.AURELIA_SCEPTRE_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.MK_42_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.MLE_1934_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.HPJ_11_BLUEPRINT.get());
|
||||
copyBlueprint(writer, ModItems.ANNIHILATOR_BLUEPRINT.get());
|
||||
}
|
||||
|
||||
public static void copyBlueprint(RecipeOutput output, ItemLike result) {
|
||||
copySmithingTemplate(output, result, Items.LAPIS_LAZULI);
|
||||
public static void copyBlueprint(RecipeOutput writer, ItemLike result) {
|
||||
copySmithingTemplate(writer, result, Items.LAPIS_LAZULI);
|
||||
}
|
||||
|
||||
public static void gunSmithing(RecipeOutput output, ItemLike blueprint, GunRarity rarity, TagKey<Item> tagKey, Item pResultItem) {
|
||||
gunSmithing(output, blueprint, rarity, Ingredient.of(tagKey), pResultItem);
|
||||
public static void gunSmithing(RecipeOutput writer, ItemLike blueprint, GunRarity rarity, TagKey<Item> tagKey, Item pResultItem) {
|
||||
gunSmithing(writer, blueprint, rarity, Ingredient.of(tagKey), pResultItem);
|
||||
}
|
||||
|
||||
public static void gunSmithing(RecipeOutput output, ItemLike blueprint, GunRarity rarity, ItemLike ingredient, Item pResultItem) {
|
||||
gunSmithing(output, blueprint, rarity, Ingredient.of(ingredient), pResultItem);
|
||||
public static void gunSmithing(RecipeOutput writer, ItemLike blueprint, GunRarity rarity, ItemLike ingredient, Item pResultItem) {
|
||||
gunSmithing(writer, blueprint, rarity, Ingredient.of(ingredient), pResultItem);
|
||||
}
|
||||
|
||||
public static void gunSmithing(RecipeOutput output, ItemLike blueprint, GunRarity rarity, Ingredient ingredient, Item pResultItem) {
|
||||
public static void gunSmithing(RecipeOutput writer, ItemLike blueprint, GunRarity rarity, Ingredient ingredient, Item pResultItem) {
|
||||
ItemLike pack = switch (rarity) {
|
||||
case COMMON -> ModItems.COMMON_MATERIAL_PACK.get();
|
||||
case RARE -> ModItems.RARE_MATERIAL_PACK.get();
|
||||
|
@ -199,7 +199,7 @@ public class ModRecipeProvider extends RecipeProvider {
|
|||
pResultItem
|
||||
)
|
||||
.unlocks(getHasName(blueprint), has(blueprint))
|
||||
.save(output, Mod.loc(getItemName(pResultItem) + "_smithing"));
|
||||
.save(writer, Mod.loc(getItemName(pResultItem) + "_smithing"));
|
||||
}
|
||||
|
||||
public enum GunRarity {
|
||||
|
@ -222,19 +222,19 @@ public class ModRecipeProvider extends RecipeProvider {
|
|||
}
|
||||
|
||||
// 生成材料包所有材料的配方
|
||||
public static void generateMaterialRecipes(@NotNull RecipeOutput output, ModItems.Materials material, Item ingredient) {
|
||||
public static void generateMaterialRecipes(@NotNull RecipeOutput writer, ModItems.Materials material, Item ingredient) {
|
||||
ShapedRecipeBuilder.shaped(RecipeCategory.MISC, material.barrel().get())
|
||||
.pattern("AAA")
|
||||
.define('A', ingredient)
|
||||
.unlockedBy(getHasName(ingredient), has(ingredient))
|
||||
.save(output, Mod.loc(getItemName(material.barrel().get())));
|
||||
.save(writer, Mod.loc(getItemName(material.barrel().get())));
|
||||
|
||||
ShapedRecipeBuilder.shaped(RecipeCategory.MISC, material.action().get())
|
||||
.pattern("AAA")
|
||||
.pattern(" A")
|
||||
.define('A', ingredient)
|
||||
.unlockedBy(getHasName(ingredient), has(ingredient))
|
||||
.save(output, Mod.loc(getItemName(material.action().get())));
|
||||
.save(writer, Mod.loc(getItemName(material.action().get())));
|
||||
|
||||
ShapedRecipeBuilder.shaped(RecipeCategory.MISC, material.spring().get())
|
||||
.pattern("A")
|
||||
|
@ -242,7 +242,7 @@ public class ModRecipeProvider extends RecipeProvider {
|
|||
.pattern("A")
|
||||
.define('A', ingredient)
|
||||
.unlockedBy(getHasName(ingredient), has(ingredient))
|
||||
.save(output, Mod.loc(getItemName(material.spring().get())));
|
||||
.save(writer, Mod.loc(getItemName(material.spring().get())));
|
||||
|
||||
ShapedRecipeBuilder.shaped(RecipeCategory.MISC, material.trigger().get())
|
||||
.pattern("BA")
|
||||
|
@ -250,10 +250,10 @@ public class ModRecipeProvider extends RecipeProvider {
|
|||
.define('A', ingredient)
|
||||
.define('B', Items.TRIPWIRE_HOOK)
|
||||
.unlockedBy(getHasName(ingredient), has(ingredient))
|
||||
.save(output, Mod.loc(getItemName(material.trigger().get())));
|
||||
.save(writer, Mod.loc(getItemName(material.trigger().get())));
|
||||
}
|
||||
|
||||
public static void generateSmithingMaterialRecipe(@NotNull RecipeOutput output, ModItems.Materials material, ModItems.Materials result, Item template, Item ingredient) {
|
||||
public static void generateSmithingMaterialRecipe(@NotNull RecipeOutput writer, ModItems.Materials material, ModItems.Materials result, Item template, Item ingredient) {
|
||||
SmithingTransformRecipeBuilder.smithing(
|
||||
Ingredient.of(template),
|
||||
Ingredient.of(material.barrel().get()),
|
||||
|
@ -263,7 +263,7 @@ public class ModRecipeProvider extends RecipeProvider {
|
|||
)
|
||||
.unlocks(getHasName(template), has(template))
|
||||
.unlocks(getHasName(material.barrel().get()), has(material.barrel().get()))
|
||||
.save(output, Mod.loc(getItemName(result.barrel().get())));
|
||||
.save(writer, Mod.loc(getItemName(result.barrel().get())));
|
||||
|
||||
SmithingTransformRecipeBuilder.smithing(
|
||||
Ingredient.of(template),
|
||||
|
@ -274,7 +274,7 @@ public class ModRecipeProvider extends RecipeProvider {
|
|||
)
|
||||
.unlocks(getHasName(template), has(template))
|
||||
.unlocks(getHasName(material.action().get()), has(material.action().get()))
|
||||
.save(output, Mod.loc(getItemName(result.action().get())));
|
||||
.save(writer, Mod.loc(getItemName(result.action().get())));
|
||||
|
||||
SmithingTransformRecipeBuilder.smithing(
|
||||
Ingredient.of(template),
|
||||
|
@ -285,7 +285,7 @@ public class ModRecipeProvider extends RecipeProvider {
|
|||
)
|
||||
.unlocks(getHasName(template), has(template))
|
||||
.unlocks(getHasName(material.spring().get()), has(material.spring().get()))
|
||||
.save(output, Mod.loc(getItemName(result.spring().get())));
|
||||
.save(writer, Mod.loc(getItemName(result.spring().get())));
|
||||
|
||||
SmithingTransformRecipeBuilder.smithing(
|
||||
Ingredient.of(template),
|
||||
|
@ -296,10 +296,10 @@ public class ModRecipeProvider extends RecipeProvider {
|
|||
)
|
||||
.unlocks(getHasName(template), has(template))
|
||||
.unlocks(getHasName(material.trigger().get()), has(material.trigger().get()))
|
||||
.save(output, Mod.loc(getItemName(result.trigger().get())));
|
||||
.save(writer, Mod.loc(getItemName(result.trigger().get())));
|
||||
}
|
||||
|
||||
public static void generateMaterialPackRecipe(@NotNull RecipeOutput output, ModItems.Materials material, Item pack) {
|
||||
public static void generateMaterialPackRecipe(@NotNull RecipeOutput writer, ModItems.Materials material, Item pack) {
|
||||
ShapelessRecipeBuilder.shapeless(RecipeCategory.MISC, pack)
|
||||
.requires(material.barrel().get())
|
||||
.requires(material.action().get())
|
||||
|
@ -309,6 +309,6 @@ public class ModRecipeProvider extends RecipeProvider {
|
|||
.unlockedBy(getHasName(material.action().get()), has(material.action().get()))
|
||||
.unlockedBy(getHasName(material.spring().get()), has(material.spring().get()))
|
||||
.unlockedBy(getHasName(material.trigger().get()), has(material.trigger().get()))
|
||||
.save(output, Mod.loc(getItemName(pack)));
|
||||
.save(writer, Mod.loc(getItemName(pack)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue