Class SmallPartsRecipeBuilder.Result
java.lang.Object
tech.anonymoushacker1279.immersiveweapons.data.recipes.SmallPartsRecipeBuilder.Result
- All Implemented Interfaces:
net.minecraft.data.recipes.FinishedRecipe
- Enclosing class:
- SmallPartsRecipeBuilder
public static class SmallPartsRecipeBuilder.Result
extends Object
implements net.minecraft.data.recipes.FinishedRecipe
-
Constructor Summary
ConstructorsConstructorDescriptionResult(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.RecipeSerializer<?> type, net.minecraft.world.item.crafting.Ingredient material, List<net.minecraft.world.item.Item> craftables, 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 json) 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 id, net.minecraft.world.item.crafting.RecipeSerializer<?> type, net.minecraft.world.item.crafting.Ingredient material, List<net.minecraft.world.item.Item> craftables, net.minecraft.advancements.Advancement.Builder advancement, net.minecraft.resources.ResourceLocation advancementId)
-
-
Method Details
-
serializeRecipeData
public void serializeRecipeData(com.google.gson.JsonObject json) - 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
-