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<IFinishedRecipe>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddCondition
(ICondition condition) addRecipe
(Consumer<Consumer<IFinishedRecipe>> callable) addRecipe
(IFinishedRecipe recipe) void
build
(Consumer<IFinishedRecipe> consumer, String namespace, String path) void
build
(Consumer<IFinishedRecipe> 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
-