Class PistonCrushingRecipeBuilder.Result
java.lang.Object
tech.anonymoushacker1279.immersiveweapons.data.recipes.PistonCrushingRecipeBuilder.Result
- All Implemented Interfaces:
net.minecraft.data.recipes.FinishedRecipe
- Enclosing class:
- PistonCrushingRecipeBuilder
public static class PistonCrushingRecipeBuilder.Result
extends Object
implements net.minecraft.data.recipes.FinishedRecipe
-
Constructor Summary
ConstructorsConstructorDescriptionResult(net.minecraft.resources.ResourceLocation pId, net.minecraft.world.item.crafting.RecipeSerializer<?> pType, net.minecraft.world.level.block.Block block, net.minecraft.world.item.Item result, int minCount, int maxCount, net.minecraft.advancements.Advancement.Builder advancement, net.minecraft.resources.ResourceLocation advancementId) -
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.resources.ResourceLocationGets the ID for the advancement associated with this recipe.net.minecraft.resources.ResourceLocationgetId()Gets the ID for the recipe.net.minecraft.world.item.crafting.RecipeSerializer<?>getType()@Nullable com.google.gson.JsonObjectGets the JSON for the advancement that unlocks this recipe.voidserializeRecipeData(com.google.gson.JsonObject pJson) 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
-
Constructor Details
-
Result
public Result(net.minecraft.resources.ResourceLocation pId, net.minecraft.world.item.crafting.RecipeSerializer<?> pType, net.minecraft.world.level.block.Block block, net.minecraft.world.item.Item result, int minCount, int maxCount, net.minecraft.advancements.Advancement.Builder advancement, net.minecraft.resources.ResourceLocation advancementId)
-
-
Method Details
-
serializeRecipeData
public void serializeRecipeData(com.google.gson.JsonObject pJson) - Specified by:
serializeRecipeDatain interfacenet.minecraft.data.recipes.FinishedRecipe
-
getId
public net.minecraft.resources.ResourceLocation getId()Gets the ID for the recipe.- 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()Gets the JSON for the advancement that unlocks this recipe. Null if there is no advancement.- Specified by:
serializeAdvancementin interfacenet.minecraft.data.recipes.FinishedRecipe
-
getAdvancementId
@Nullable public @Nullable net.minecraft.resources.ResourceLocation getAdvancementId()Gets the ID for the advancement associated with this recipe.- Specified by:
getAdvancementIdin interfacenet.minecraft.data.recipes.FinishedRecipe
-