Class ConditionalAdvancement.Builder
- java.lang.Object
-
- net.minecraftforge.common.crafting.ConditionalAdvancement.Builder
-
- Enclosing class:
- ConditionalAdvancement
public static class ConditionalAdvancement.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.util.function.Supplier<com.google.gson.JsonElement>>
advancements
private java.util.List<ICondition[]>
conditions
private java.util.List<ICondition>
currentConditions
private boolean
locked
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConditionalAdvancement.Builder
addAdvancement(java.util.function.Consumer<java.util.function.Consumer<Advancement.Builder>> callable)
private ConditionalAdvancement.Builder
addAdvancement(java.util.function.Supplier<com.google.gson.JsonElement> jsonSupplier)
ConditionalAdvancement.Builder
addAdvancement(Advancement.Builder advancement)
ConditionalAdvancement.Builder
addAdvancement(IFinishedRecipe fromRecipe)
ConditionalAdvancement.Builder
addCondition(ICondition condition)
com.google.gson.JsonObject
write()
-
-
-
Field Detail
-
conditions
private java.util.List<ICondition[]> conditions
-
advancements
private java.util.List<java.util.function.Supplier<com.google.gson.JsonElement>> advancements
-
currentConditions
private java.util.List<ICondition> currentConditions
-
locked
private boolean locked
-
-
Method Detail
-
addCondition
public ConditionalAdvancement.Builder addCondition(ICondition condition)
-
addAdvancement
public ConditionalAdvancement.Builder addAdvancement(java.util.function.Consumer<java.util.function.Consumer<Advancement.Builder>> callable)
-
addAdvancement
public ConditionalAdvancement.Builder addAdvancement(Advancement.Builder advancement)
-
addAdvancement
public ConditionalAdvancement.Builder addAdvancement(IFinishedRecipe fromRecipe)
-
addAdvancement
private ConditionalAdvancement.Builder addAdvancement(java.util.function.Supplier<com.google.gson.JsonElement> jsonSupplier)
-
write
public com.google.gson.JsonObject write()
-
-