Package net.minecraft.data.recipes
Class ShapedRecipeBuilder.Result
java.lang.Object
net.minecraft.data.recipes.ShapedRecipeBuilder.Result
- All Implemented Interfaces:
FinishedRecipe
- Enclosing class:
- ShapedRecipeBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Advancement.Builder
private final ResourceLocation
private final int
private final String
private final ResourceLocation
private final Map<Character,
Ingredient> private final Item
-
Constructor Summary
ConstructorDescriptionResult
(ResourceLocation p_176754_, Item p_176755_, int p_176756_, String p_176757_, List<String> p_176758_, Map<Character, Ingredient> p_176759_, Advancement.Builder p_176760_, ResourceLocation p_176761_) -
Method Summary
Modifier and TypeMethodDescriptiongetId()
getType()
com.google.gson.JsonObject
void
serializeRecipeData
(com.google.gson.JsonObject p_126167_) 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.recipes.FinishedRecipe
serializeRecipe
-
Field Details
-
id
-
result
-
count
private final int count -
group
-
pattern
-
key
-
advancement
-
advancementId
-
-
Constructor Details
-
Result
public Result(ResourceLocation p_176754_, Item p_176755_, int p_176756_, String p_176757_, List<String> p_176758_, Map<Character, Ingredient> p_176759_, Advancement.Builder p_176760_, ResourceLocation p_176761_)
-
-
Method Details
-
serializeRecipeData
public void serializeRecipeData(com.google.gson.JsonObject p_126167_) - Specified by:
serializeRecipeData
in interfaceFinishedRecipe
-
getType
- Specified by:
getType
in interfaceFinishedRecipe
-
getId
- Specified by:
getId
in interfaceFinishedRecipe
-
serializeAdvancement
@Nullable public com.google.gson.JsonObject serializeAdvancement()- Specified by:
serializeAdvancement
in interfaceFinishedRecipe
-
getAdvancementId
- Specified by:
getAdvancementId
in interfaceFinishedRecipe
-