public static class ConditionalRecipe.Builder
extends java.lang.Object
Modifier and Type | Field and 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 and Description |
---|
Builder() |
Modifier and Type | Method and 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,
ResourceLocation id) |
void |
build(java.util.function.Consumer<IFinishedRecipe> consumer,
java.lang.String namespace,
java.lang.String path) |
ConditionalRecipe.Builder |
setAdvancement(ResourceLocation id,
ConditionalAdvancement.Builder advancement) |
ConditionalRecipe.Builder |
setAdvancement(java.lang.String namespace,
java.lang.String path,
ConditionalAdvancement.Builder advancement) |
private java.util.List<ICondition[]> conditions
private java.util.List<IFinishedRecipe> recipes
private ResourceLocation advId
private ConditionalAdvancement.Builder adv
private java.util.List<ICondition> currentConditions
public ConditionalRecipe.Builder addCondition(ICondition condition)
public ConditionalRecipe.Builder addRecipe(java.util.function.Consumer<java.util.function.Consumer<IFinishedRecipe>> callable)
public ConditionalRecipe.Builder addRecipe(IFinishedRecipe recipe)
public ConditionalRecipe.Builder setAdvancement(java.lang.String namespace, java.lang.String path, ConditionalAdvancement.Builder advancement)
public ConditionalRecipe.Builder setAdvancement(ResourceLocation id, ConditionalAdvancement.Builder advancement)
public void build(java.util.function.Consumer<IFinishedRecipe> consumer, java.lang.String namespace, java.lang.String path)
public void build(java.util.function.Consumer<IFinishedRecipe> consumer, ResourceLocation id)