Package net.minecraft.data
Class ShapedRecipeBuilder.Result
java.lang.Object
net.minecraft.data.ShapedRecipeBuilder.Result
- All Implemented Interfaces:
IFinishedRecipe
- 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_i48271_2_, Item p_i48271_3_, int p_i48271_4_, String p_i48271_5_, List<String> p_i48271_6_, Map<Character, Ingredient> p_i48271_7_, Advancement.Builder p_i48271_8_, ResourceLocation p_i48271_9_) -
Method Summary
Modifier and TypeMethodDescriptiongetId()
getType()
com.google.gson.JsonObject
void
serializeRecipeData
(com.google.gson.JsonObject p_218610_1_) 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 Details
-
id
-
result
-
count
private final int count -
group
-
pattern
-
key
-
advancement
-
advancementId
-
-
Constructor Details
-
Result
public Result(ResourceLocation p_i48271_2_, Item p_i48271_3_, int p_i48271_4_, String p_i48271_5_, List<String> p_i48271_6_, Map<Character, Ingredient> p_i48271_7_, Advancement.Builder p_i48271_8_, ResourceLocation p_i48271_9_)
-
-
Method Details
-
serializeRecipeData
public void serializeRecipeData(com.google.gson.JsonObject p_218610_1_) - Specified by:
serializeRecipeData
in interfaceIFinishedRecipe
-
getType
- Specified by:
getType
in interfaceIFinishedRecipe
-
getId
- Specified by:
getId
in interfaceIFinishedRecipe
-
serializeAdvancement
@Nullable public com.google.gson.JsonObject serializeAdvancement()- Specified by:
serializeAdvancement
in interfaceIFinishedRecipe
-
getAdvancementId
- Specified by:
getAdvancementId
in interfaceIFinishedRecipe
-