public class ShapedRecipeBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
ShapedRecipeBuilder.Result |
Modifier and Type | Field and Description |
---|---|
private Advancement.Builder |
advancementBuilder |
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 java.util.List<java.lang.String> |
pattern |
private Item |
result |
Constructor and Description |
---|
ShapedRecipeBuilder(IItemProvider resultIn,
int countIn) |
Modifier and Type | Method and Description |
---|---|
ShapedRecipeBuilder |
addCriterion(java.lang.String name,
ICriterionInstance criterionIn) |
void |
build(java.util.function.Consumer<IFinishedRecipe> consumerIn) |
void |
build(java.util.function.Consumer<IFinishedRecipe> consumerIn,
ResourceLocation id) |
void |
build(java.util.function.Consumer<IFinishedRecipe> consumerIn,
java.lang.String save) |
ShapedRecipeBuilder |
key(java.lang.Character symbol,
IItemProvider itemIn) |
ShapedRecipeBuilder |
key(java.lang.Character symbol,
Ingredient ingredientIn) |
ShapedRecipeBuilder |
key(java.lang.Character symbol,
Tag<Item> tagIn) |
ShapedRecipeBuilder |
patternLine(java.lang.String patternIn) |
ShapedRecipeBuilder |
setGroup(java.lang.String groupIn) |
static ShapedRecipeBuilder |
shapedRecipe(IItemProvider resultIn) |
static ShapedRecipeBuilder |
shapedRecipe(IItemProvider resultIn,
int countIn) |
private void |
validate(ResourceLocation id) |
private static final org.apache.logging.log4j.Logger LOGGER
private final Item result
private final int count
private final java.util.List<java.lang.String> pattern
private final java.util.Map<java.lang.Character,Ingredient> key
private final Advancement.Builder advancementBuilder
private java.lang.String group
public ShapedRecipeBuilder(IItemProvider resultIn, int countIn)
public static ShapedRecipeBuilder shapedRecipe(IItemProvider resultIn)
public static ShapedRecipeBuilder shapedRecipe(IItemProvider resultIn, int countIn)
public ShapedRecipeBuilder key(java.lang.Character symbol, Tag<Item> tagIn)
public ShapedRecipeBuilder key(java.lang.Character symbol, IItemProvider itemIn)
public ShapedRecipeBuilder key(java.lang.Character symbol, Ingredient ingredientIn)
public ShapedRecipeBuilder patternLine(java.lang.String patternIn)
public ShapedRecipeBuilder addCriterion(java.lang.String name, ICriterionInstance criterionIn)
public ShapedRecipeBuilder setGroup(java.lang.String groupIn)
public void build(java.util.function.Consumer<IFinishedRecipe> consumerIn)
public void build(java.util.function.Consumer<IFinishedRecipe> consumerIn, java.lang.String save)
public void build(java.util.function.Consumer<IFinishedRecipe> consumerIn, ResourceLocation id)
private void validate(ResourceLocation id)