Class ConditionalAdvancement
java.lang.Object
net.minecraftforge.common.crafting.ConditionalAdvancement
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static com.google.gson.JsonObject
processConditional
(com.google.gson.JsonObject json) Deprecated, for removal: This API element is subject to removal in a future version.Please use the more general overload.static com.google.gson.JsonObject
processConditional
(com.google.gson.JsonObject json, ICondition.IContext context) Processes the conditional advancement during loading.
-
Constructor Details
-
ConditionalAdvancement
public ConditionalAdvancement()
-
-
Method Details
-
builder
-
processConditional
@Deprecated(forRemoval=true, since="1.18.2") @Nullable public static com.google.gson.JsonObject processConditional(com.google.gson.JsonObject json) Deprecated, for removal: This API element is subject to removal in a future version.Please use the more general overload. -
processConditional
@Nullable public static com.google.gson.JsonObject processConditional(com.google.gson.JsonObject json, ICondition.IContext context) Processes the conditional advancement during loading.- Parameters:
json
- The incoming json from the advancement file.- Returns:
- The advancement that passed the conditions, or null if none did.
-