Class ConditionalRecipe.Builder
java.lang.Object
net.minecraftforge.common.crafting.ConditionalRecipe.Builder
- Enclosing class:
- ConditionalRecipe
-
Field Summary
Modifier and TypeFieldDescriptionprivate ConditionalAdvancement.Builder
private ResourceLocation
private List<ICondition[]>
private List<ICondition>
private List<FinishedRecipe>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddCondition(ICondition condition)
addRecipe(Consumer<Consumer<FinishedRecipe>> callable)
addRecipe(FinishedRecipe recipe)
void
build(Consumer<FinishedRecipe> consumer, String namespace, String path)
void
build(Consumer<FinishedRecipe> consumer, ResourceLocation id)
setAdvancement(String namespace, String path, ConditionalAdvancement.Builder advancement)
setAdvancement(ResourceLocation id, ConditionalAdvancement.Builder advancement)
setAdvancement(ConditionalAdvancement.Builder advancement)
-
Field Details
-
conditions
-
recipes
-
advId
-
adv
-
currentConditions
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addCondition
-
addRecipe
-
addRecipe
-
generateAdvancement
-
generateAdvancement
-
setAdvancement
-
setAdvancement
public ConditionalRecipe.Builder setAdvancement(String namespace, String path, ConditionalAdvancement.Builder advancement) -
setAdvancement
public ConditionalRecipe.Builder setAdvancement(@Nullable ResourceLocation id, ConditionalAdvancement.Builder advancement) -
build
-
build
-