Package net.minecraft.data
Class ShapelessRecipeBuilder
- java.lang.Object
-
- net.minecraft.data.ShapelessRecipeBuilder
-
public class ShapelessRecipeBuilder extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShapelessRecipeBuilder.Result
-
Field Summary
Fields Modifier and Type Field Description private Advancement.Builder
advancement
private int
count
private java.lang.String
group
private java.util.List<Ingredient>
ingredients
private static org.apache.logging.log4j.Logger
LOGGER
private Item
result
-
Constructor Summary
Constructors Constructor Description ShapelessRecipeBuilder(IItemProvider p_i48260_1_, int p_i48260_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
ensureValid(ResourceLocation p_200481_1_)
ShapelessRecipeBuilder
group(java.lang.String p_200490_1_)
ShapelessRecipeBuilder
requires(Ingredient p_200489_1_)
ShapelessRecipeBuilder
requires(Ingredient p_200492_1_, int p_200492_2_)
ShapelessRecipeBuilder
requires(ITag<Item> p_203221_1_)
ShapelessRecipeBuilder
requires(IItemProvider p_200487_1_)
ShapelessRecipeBuilder
requires(IItemProvider p_200491_1_, int p_200491_2_)
void
save(java.util.function.Consumer<IFinishedRecipe> p_200482_1_)
void
save(java.util.function.Consumer<IFinishedRecipe> p_200484_1_, java.lang.String p_200484_2_)
void
save(java.util.function.Consumer<IFinishedRecipe> p_200485_1_, ResourceLocation p_200485_2_)
static ShapelessRecipeBuilder
shapeless(IItemProvider p_200486_0_)
static ShapelessRecipeBuilder
shapeless(IItemProvider p_200488_0_, int p_200488_1_)
ShapelessRecipeBuilder
unlockedBy(java.lang.String p_200483_1_, ICriterionInstance p_200483_2_)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
result
private final Item result
-
count
private final int count
-
ingredients
private final java.util.List<Ingredient> ingredients
-
advancement
private final Advancement.Builder advancement
-
group
private java.lang.String group
-
-
Constructor Detail
-
ShapelessRecipeBuilder
public ShapelessRecipeBuilder(IItemProvider p_i48260_1_, int p_i48260_2_)
-
-
Method Detail
-
shapeless
public static ShapelessRecipeBuilder shapeless(IItemProvider p_200486_0_)
-
shapeless
public static ShapelessRecipeBuilder shapeless(IItemProvider p_200488_0_, int p_200488_1_)
-
requires
public ShapelessRecipeBuilder requires(ITag<Item> p_203221_1_)
-
requires
public ShapelessRecipeBuilder requires(IItemProvider p_200487_1_)
-
requires
public ShapelessRecipeBuilder requires(IItemProvider p_200491_1_, int p_200491_2_)
-
requires
public ShapelessRecipeBuilder requires(Ingredient p_200489_1_)
-
requires
public ShapelessRecipeBuilder requires(Ingredient p_200492_1_, int p_200492_2_)
-
unlockedBy
public ShapelessRecipeBuilder unlockedBy(java.lang.String p_200483_1_, ICriterionInstance p_200483_2_)
-
group
public ShapelessRecipeBuilder group(java.lang.String p_200490_1_)
-
save
public void save(java.util.function.Consumer<IFinishedRecipe> p_200482_1_)
-
save
public void save(java.util.function.Consumer<IFinishedRecipe> p_200484_1_, java.lang.String p_200484_2_)
-
save
public void save(java.util.function.Consumer<IFinishedRecipe> p_200485_1_, ResourceLocation p_200485_2_)
-
ensureValid
private void ensureValid(ResourceLocation p_200481_1_)
-
-