Class ConditionalRecipe.Builder
- java.lang.Object
-
- net.minecraftforge.common.crafting.ConditionalRecipe.Builder
-
- Enclosing class:
- ConditionalRecipe
public static class ConditionalRecipe.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private ConditionalAdvancement.Builder
adv
private ResourceLocation
advId
private java.util.List<ICondition[]>
conditions
private java.util.List<ICondition>
currentConditions
private java.util.List<IFinishedRecipe>
recipes
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConditionalRecipe.Builder
addCondition(ICondition condition)
ConditionalRecipe.Builder
addRecipe(java.util.function.Consumer<java.util.function.Consumer<IFinishedRecipe>> callable)
ConditionalRecipe.Builder
addRecipe(IFinishedRecipe recipe)
void
build(java.util.function.Consumer<IFinishedRecipe> consumer, java.lang.String namespace, java.lang.String path)
void
build(java.util.function.Consumer<IFinishedRecipe> consumer, ResourceLocation id)
ConditionalRecipe.Builder
generateAdvancement()
ConditionalRecipe.Builder
generateAdvancement(ResourceLocation id)
ConditionalRecipe.Builder
setAdvancement(java.lang.String namespace, java.lang.String path, ConditionalAdvancement.Builder advancement)
ConditionalRecipe.Builder
setAdvancement(ResourceLocation id, ConditionalAdvancement.Builder advancement)
ConditionalRecipe.Builder
setAdvancement(ConditionalAdvancement.Builder advancement)
-
-
-
Field Detail
-
conditions
private java.util.List<ICondition[]> conditions
-
recipes
private java.util.List<IFinishedRecipe> recipes
-
advId
private ResourceLocation advId
-
adv
private ConditionalAdvancement.Builder adv
-
currentConditions
private java.util.List<ICondition> currentConditions
-
-
Method Detail
-
addCondition
public ConditionalRecipe.Builder addCondition(ICondition condition)
-
addRecipe
public ConditionalRecipe.Builder addRecipe(java.util.function.Consumer<java.util.function.Consumer<IFinishedRecipe>> callable)
-
addRecipe
public ConditionalRecipe.Builder addRecipe(IFinishedRecipe recipe)
-
generateAdvancement
public ConditionalRecipe.Builder generateAdvancement()
-
generateAdvancement
public ConditionalRecipe.Builder generateAdvancement(@Nullable ResourceLocation id)
-
setAdvancement
public ConditionalRecipe.Builder setAdvancement(ConditionalAdvancement.Builder advancement)
-
setAdvancement
public ConditionalRecipe.Builder setAdvancement(java.lang.String namespace, java.lang.String path, ConditionalAdvancement.Builder advancement)
-
setAdvancement
public ConditionalRecipe.Builder setAdvancement(@Nullable ResourceLocation id, ConditionalAdvancement.Builder advancement)
-
build
public void build(java.util.function.Consumer<IFinishedRecipe> consumer, java.lang.String namespace, java.lang.String path)
-
build
public void build(java.util.function.Consumer<IFinishedRecipe> consumer, ResourceLocation id)
-
-