public static class CookingRecipeBuilder.Result extends java.lang.Object implements IFinishedRecipe
Modifier and Type | Field and Description |
---|---|
private Advancement.Builder |
advancementBuilder |
private ResourceLocation |
advancementId |
private int |
cookingTime |
private float |
experience |
private java.lang.String |
group |
private ResourceLocation |
id |
private Ingredient |
ingredient |
private Item |
result |
private IRecipeSerializer<? extends AbstractCookingRecipe> |
serializer |
Constructor and Description |
---|
Result(ResourceLocation idIn,
java.lang.String groupIn,
Ingredient ingredientIn,
Item resultIn,
float experienceIn,
int cookingTimeIn,
Advancement.Builder advancementBuilderIn,
ResourceLocation advancementIdIn,
IRecipeSerializer<? extends AbstractCookingRecipe> serializerIn) |
Modifier and Type | Method and Description |
---|---|
ResourceLocation |
getAdvancementID() |
com.google.gson.JsonObject |
getAdvancementJson() |
ResourceLocation |
getID() |
IRecipeSerializer<?> |
getSerializer() |
void |
serialize(com.google.gson.JsonObject json) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRecipeJson
private final ResourceLocation id
private final java.lang.String group
private final Ingredient ingredient
private final Item result
private final float experience
private final int cookingTime
private final Advancement.Builder advancementBuilder
private final ResourceLocation advancementId
private final IRecipeSerializer<? extends AbstractCookingRecipe> serializer
public Result(ResourceLocation idIn, java.lang.String groupIn, Ingredient ingredientIn, Item resultIn, float experienceIn, int cookingTimeIn, Advancement.Builder advancementBuilderIn, ResourceLocation advancementIdIn, IRecipeSerializer<? extends AbstractCookingRecipe> serializerIn)
public void serialize(com.google.gson.JsonObject json)
serialize
in interface IFinishedRecipe
public IRecipeSerializer<?> getSerializer()
getSerializer
in interface IFinishedRecipe
public ResourceLocation getID()
getID
in interface IFinishedRecipe
@Nullable public com.google.gson.JsonObject getAdvancementJson()
getAdvancementJson
in interface IFinishedRecipe
@Nullable public ResourceLocation getAdvancementID()
getAdvancementID
in interface IFinishedRecipe