Package net.minecraft.data
Class ShapedRecipeBuilder
- java.lang.Object
-
- net.minecraft.data.ShapedRecipeBuilder
-
public class ShapedRecipeBuilder extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ShapedRecipeBuilder.Result
-
Field Summary
Fields Modifier and Type Field Description private Advancement.Builder
advancement
private int
count
private java.lang.String
group
private java.util.Map<java.lang.Character,Ingredient>
key
private static org.apache.logging.log4j.Logger
LOGGER
private Item
result
private java.util.List<java.lang.String>
rows
-
Constructor Summary
Constructors Constructor Description ShapedRecipeBuilder(IItemProvider p_i48261_1_, int p_i48261_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ShapedRecipeBuilder
define(java.lang.Character p_200471_1_, Ingredient p_200471_2_)
ShapedRecipeBuilder
define(java.lang.Character p_200469_1_, ITag<Item> p_200469_2_)
ShapedRecipeBuilder
define(java.lang.Character p_200462_1_, IItemProvider p_200462_2_)
private void
ensureValid(ResourceLocation p_200463_1_)
ShapedRecipeBuilder
group(java.lang.String p_200473_1_)
ShapedRecipeBuilder
pattern(java.lang.String p_200472_1_)
void
save(java.util.function.Consumer<IFinishedRecipe> p_200464_1_)
void
save(java.util.function.Consumer<IFinishedRecipe> p_200466_1_, java.lang.String p_200466_2_)
void
save(java.util.function.Consumer<IFinishedRecipe> p_200467_1_, ResourceLocation p_200467_2_)
static ShapedRecipeBuilder
shaped(IItemProvider p_200470_0_)
static ShapedRecipeBuilder
shaped(IItemProvider p_200468_0_, int p_200468_1_)
ShapedRecipeBuilder
unlockedBy(java.lang.String p_200465_1_, ICriterionInstance p_200465_2_)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
result
private final Item result
-
count
private final int count
-
rows
private final java.util.List<java.lang.String> rows
-
key
private final java.util.Map<java.lang.Character,Ingredient> key
-
advancement
private final Advancement.Builder advancement
-
group
private java.lang.String group
-
-
Constructor Detail
-
ShapedRecipeBuilder
public ShapedRecipeBuilder(IItemProvider p_i48261_1_, int p_i48261_2_)
-
-
Method Detail
-
shaped
public static ShapedRecipeBuilder shaped(IItemProvider p_200470_0_)
-
shaped
public static ShapedRecipeBuilder shaped(IItemProvider p_200468_0_, int p_200468_1_)
-
define
public ShapedRecipeBuilder define(java.lang.Character p_200469_1_, ITag<Item> p_200469_2_)
-
define
public ShapedRecipeBuilder define(java.lang.Character p_200462_1_, IItemProvider p_200462_2_)
-
define
public ShapedRecipeBuilder define(java.lang.Character p_200471_1_, Ingredient p_200471_2_)
-
pattern
public ShapedRecipeBuilder pattern(java.lang.String p_200472_1_)
-
unlockedBy
public ShapedRecipeBuilder unlockedBy(java.lang.String p_200465_1_, ICriterionInstance p_200465_2_)
-
group
public ShapedRecipeBuilder group(java.lang.String p_200473_1_)
-
save
public void save(java.util.function.Consumer<IFinishedRecipe> p_200464_1_)
-
save
public void save(java.util.function.Consumer<IFinishedRecipe> p_200466_1_, java.lang.String p_200466_2_)
-
save
public void save(java.util.function.Consumer<IFinishedRecipe> p_200467_1_, ResourceLocation p_200467_2_)
-
ensureValid
private void ensureValid(ResourceLocation p_200463_1_)
-
-