Package net.minecraft.data.recipes
Class ShapelessRecipeBuilder.Result
java.lang.Object
net.minecraft.data.recipes.ShapelessRecipeBuilder.Result
- All Implemented Interfaces:
FinishedRecipe
- Enclosing class:
- ShapelessRecipeBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Advancement.Builderprivate ResourceLocationprivate intprivate Stringprivate ResourceLocationprivate List<Ingredient>private Item -
Constructor Summary
ConstructorsConstructorDescriptionResult(ResourceLocation p_126222_, Item p_126223_, int p_126224_, String p_126225_, List<Ingredient> p_126226_, Advancement.Builder p_126227_, ResourceLocation p_126228_) -
Method Summary
Modifier and TypeMethodDescriptiongetId()getType()com.google.gson.JsonObjectvoidserializeRecipeData(com.google.gson.JsonObject p_126230_)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.data.recipes.FinishedRecipe
serializeRecipe
-
Field Details
-
id
-
result
-
count
private final int count -
group
-
ingredients
-
advancement
-
advancementId
-
-
Constructor Details
-
Result
public Result(ResourceLocation p_126222_, Item p_126223_, int p_126224_, String p_126225_, List<Ingredient> p_126226_, Advancement.Builder p_126227_, ResourceLocation p_126228_)
-
-
Method Details
-
serializeRecipeData
public void serializeRecipeData(com.google.gson.JsonObject p_126230_)- Specified by:
serializeRecipeDatain interfaceFinishedRecipe
-
getType
- Specified by:
getTypein interfaceFinishedRecipe
-
getId
- Specified by:
getIdin interfaceFinishedRecipe
-
serializeAdvancement
@Nullable public com.google.gson.JsonObject serializeAdvancement()- Specified by:
serializeAdvancementin interfaceFinishedRecipe
-
getAdvancementId
- Specified by:
getAdvancementIdin interfaceFinishedRecipe
-