[Feature] API to generate cheap SimithingTemplate copy recipes
This commit is contained in:
parent
7512e8868c
commit
e06bee11e9
1 changed files with 22 additions and 3 deletions
|
@ -26,13 +26,14 @@ public class BCLRecipeBuilder {
|
||||||
|
|
||||||
private static CraftingRecipeBuilder copySmithingTemplateBase(
|
private static CraftingRecipeBuilder copySmithingTemplateBase(
|
||||||
ResourceLocation id,
|
ResourceLocation id,
|
||||||
|
ItemLike filler,
|
||||||
ItemLike output
|
ItemLike output
|
||||||
) {
|
) {
|
||||||
return CraftingRecipeBuilder
|
return CraftingRecipeBuilder
|
||||||
.make(id, output)
|
.make(id, output)
|
||||||
.setOutputCount(2)
|
.setOutputCount(2)
|
||||||
.setCategory(RecipeCategory.MISC)
|
.setCategory(RecipeCategory.MISC)
|
||||||
.addMaterial('#', Items.DIAMOND)
|
.addMaterial('#', filler)
|
||||||
.addMaterial('S', output)
|
.addMaterial('S', output)
|
||||||
.setShape("#S#", "#C#", "###");
|
.setShape("#S#", "#C#", "###");
|
||||||
}
|
}
|
||||||
|
@ -42,7 +43,7 @@ public class BCLRecipeBuilder {
|
||||||
ItemLike output,
|
ItemLike output,
|
||||||
TagKey<Item> tagKey
|
TagKey<Item> tagKey
|
||||||
) {
|
) {
|
||||||
return copySmithingTemplateBase(id, output)
|
return copySmithingTemplateBase(id, Items.DIAMOND, output)
|
||||||
.addMaterial('C', tagKey);
|
.addMaterial('C', tagKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,7 +52,25 @@ public class BCLRecipeBuilder {
|
||||||
ItemLike output,
|
ItemLike output,
|
||||||
ItemLike ingredient
|
ItemLike ingredient
|
||||||
) {
|
) {
|
||||||
return copySmithingTemplateBase(id, output)
|
return copySmithingTemplateBase(id, Items.DIAMOND, output)
|
||||||
|
.addMaterial('C', ingredient);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static CraftingRecipeBuilder copyCheapSmithingTemplate(
|
||||||
|
ResourceLocation id,
|
||||||
|
ItemLike output,
|
||||||
|
TagKey<Item> tagKey
|
||||||
|
) {
|
||||||
|
return copyCheapSmithingTemplate(id, Items.STICK, output)
|
||||||
|
.addMaterial('C', tagKey);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static CraftingRecipeBuilder copyCheapSmithingTemplate(
|
||||||
|
ResourceLocation id,
|
||||||
|
ItemLike output,
|
||||||
|
ItemLike ingredient
|
||||||
|
) {
|
||||||
|
return copySmithingTemplateBase(id, Items.STICK, output)
|
||||||
.addMaterial('C', ingredient);
|
.addMaterial('C', ingredient);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue