Package net.minecraft.data
Class SmithingRecipeBuilder
- java.lang.Object
-
- net.minecraft.data.SmithingRecipeBuilder
-
public class SmithingRecipeBuilder extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SmithingRecipeBuilder.Result
-
Field Summary
Fields Modifier and Type Field Description private Ingredient
addition
private Advancement.Builder
advancement
private Ingredient
base
private Item
result
private IRecipeSerializer<?>
type
-
Constructor Summary
Constructors Constructor Description SmithingRecipeBuilder(IRecipeSerializer<?> p_i232549_1_, Ingredient p_i232549_2_, Ingredient p_i232549_3_, Item p_i232549_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
ensureValid(ResourceLocation p_240506_1_)
void
save(java.util.function.Consumer<IFinishedRecipe> p_240504_1_, java.lang.String p_240504_2_)
void
save(java.util.function.Consumer<IFinishedRecipe> p_240505_1_, ResourceLocation p_240505_2_)
static SmithingRecipeBuilder
smithing(Ingredient p_240502_0_, Ingredient p_240502_1_, Item p_240502_2_)
SmithingRecipeBuilder
unlocks(java.lang.String p_240503_1_, ICriterionInstance p_240503_2_)
-
-
-
Field Detail
-
base
private final Ingredient base
-
addition
private final Ingredient addition
-
result
private final Item result
-
advancement
private final Advancement.Builder advancement
-
type
private final IRecipeSerializer<?> type
-
-
Constructor Detail
-
SmithingRecipeBuilder
public SmithingRecipeBuilder(IRecipeSerializer<?> p_i232549_1_, Ingredient p_i232549_2_, Ingredient p_i232549_3_, Item p_i232549_4_)
-
-
Method Detail
-
smithing
public static SmithingRecipeBuilder smithing(Ingredient p_240502_0_, Ingredient p_240502_1_, Item p_240502_2_)
-
unlocks
public SmithingRecipeBuilder unlocks(java.lang.String p_240503_1_, ICriterionInstance p_240503_2_)
-
save
public void save(java.util.function.Consumer<IFinishedRecipe> p_240504_1_, java.lang.String p_240504_2_)
-
save
public void save(java.util.function.Consumer<IFinishedRecipe> p_240505_1_, ResourceLocation p_240505_2_)
-
ensureValid
private void ensureValid(ResourceLocation p_240506_1_)
-
-