Class AtomicalStabilizationRecipeBuilder.Result
java.lang.Object
net.minheur.mhm_bitsnbobs.recipe.datagen.AtomicalStabilizationRecipeBuilder.Result
- All Implemented Interfaces:
net.minecraft.data.recipes.FinishedRecipe
- Enclosing class:
- AtomicalStabilizationRecipeBuilder
public static class AtomicalStabilizationRecipeBuilder.Result
extends Object
implements net.minecraft.data.recipes.FinishedRecipe
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final net.minecraft.advancements.Advancement.Builderprivate final net.minecraft.resources.ResourceLocationprivate final intprivate final net.minecraft.world.level.ItemLikeprivate final net.minecraft.resources.ResourceLocationprivate final net.minecraft.world.level.ItemLikeprivate final net.minecraft.world.level.ItemLikeprivate final net.minecraft.world.level.ItemLike -
Constructor Summary
ConstructorsConstructorDescriptionResult(net.minecraft.resources.ResourceLocation id, net.minecraft.world.level.ItemLike leftIngredient, net.minecraft.world.level.ItemLike rightIngredient, net.minecraft.world.level.ItemLike glueIngredient, net.minecraft.world.level.ItemLike result, int count, net.minecraft.advancements.Advancement.Builder advancement, net.minecraft.resources.ResourceLocation advancementId) -
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.resources.ResourceLocationnet.minecraft.resources.ResourceLocationgetId()net.minecraft.world.item.crafting.RecipeSerializer<?>getType()@Nullable com.google.gson.JsonObjectvoidserializeRecipeData(com.google.gson.JsonObject pJson) serialize your recipe dataMethods 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
private final net.minecraft.resources.ResourceLocation id -
leftIngredient
private final net.minecraft.world.level.ItemLike leftIngredient -
rightIngredient
private final net.minecraft.world.level.ItemLike rightIngredient -
glueIngredient
private final net.minecraft.world.level.ItemLike glueIngredient -
result
private final net.minecraft.world.level.ItemLike result -
count
private final int count -
advancement
private final net.minecraft.advancements.Advancement.Builder advancement -
advancementId
private final net.minecraft.resources.ResourceLocation advancementId
-
-
Constructor Details
-
Result
public Result(net.minecraft.resources.ResourceLocation id, net.minecraft.world.level.ItemLike leftIngredient, net.minecraft.world.level.ItemLike rightIngredient, net.minecraft.world.level.ItemLike glueIngredient, net.minecraft.world.level.ItemLike result, int count, net.minecraft.advancements.Advancement.Builder advancement, net.minecraft.resources.ResourceLocation advancementId)
-
-
Method Details
-
serializeRecipeData
public void serializeRecipeData(com.google.gson.JsonObject pJson) serialize your recipe data- Specified by:
serializeRecipeDatain interfacenet.minecraft.data.recipes.FinishedRecipe- Parameters:
pJson- your finished recipe json
-
getId
public net.minecraft.resources.ResourceLocation getId()- Specified by:
getIdin interfacenet.minecraft.data.recipes.FinishedRecipe
-
getType
public net.minecraft.world.item.crafting.RecipeSerializer<?> getType()- Specified by:
getTypein interfacenet.minecraft.data.recipes.FinishedRecipe
-
serializeAdvancement
@Nullable public @Nullable com.google.gson.JsonObject serializeAdvancement()- Specified by:
serializeAdvancementin interfacenet.minecraft.data.recipes.FinishedRecipe
-
getAdvancementId
@Nullable public @Nullable net.minecraft.resources.ResourceLocation getAdvancementId()- Specified by:
getAdvancementIdin interfacenet.minecraft.data.recipes.FinishedRecipe
-