Class ConditionalRecipe.Finished
- java.lang.Object
-
- net.minecraftforge.common.crafting.ConditionalRecipe.Finished
-
- All Implemented Interfaces:
IFinishedRecipe
- Enclosing class:
- ConditionalRecipe
private static class ConditionalRecipe.Finished extends java.lang.Object implements IFinishedRecipe
-
-
Field Summary
Fields Modifier and Type Field Description private ConditionalAdvancement.Builder
adv
private ResourceLocation
advId
private java.util.List<ICondition[]>
conditions
private ResourceLocation
id
private java.util.List<IFinishedRecipe>
recipes
-
Constructor Summary
Constructors Modifier Constructor Description private
Finished(ResourceLocation id, java.util.List<ICondition[]> conditions, java.util.List<IFinishedRecipe> recipes, ResourceLocation advId, ConditionalAdvancement.Builder adv)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceLocation
getAdvancementId()
ResourceLocation
getId()
IRecipeSerializer<?>
getType()
com.google.gson.JsonObject
serializeAdvancement()
void
serializeRecipeData(com.google.gson.JsonObject json)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.data.IFinishedRecipe
serializeRecipe
-
-
-
-
Field Detail
-
id
private final ResourceLocation id
-
conditions
private final java.util.List<ICondition[]> conditions
-
recipes
private final java.util.List<IFinishedRecipe> recipes
-
advId
private final ResourceLocation advId
-
adv
private final ConditionalAdvancement.Builder adv
-
-
Constructor Detail
-
Finished
private Finished(ResourceLocation id, java.util.List<ICondition[]> conditions, java.util.List<IFinishedRecipe> recipes, @Nullable ResourceLocation advId, @Nullable ConditionalAdvancement.Builder adv)
-
-
Method Detail
-
serializeRecipeData
public void serializeRecipeData(com.google.gson.JsonObject json)
- Specified by:
serializeRecipeData
in interfaceIFinishedRecipe
-
getId
public ResourceLocation getId()
- Specified by:
getId
in interfaceIFinishedRecipe
-
getType
public IRecipeSerializer<?> getType()
- Specified by:
getType
in interfaceIFinishedRecipe
-
serializeAdvancement
public com.google.gson.JsonObject serializeAdvancement()
- Specified by:
serializeAdvancement
in interfaceIFinishedRecipe
-
getAdvancementId
public ResourceLocation getAdvancementId()
- Specified by:
getAdvancementId
in interfaceIFinishedRecipe
-
-