Package net.minecraftforge.common.data
Class ForgeRecipeProvider
java.lang.Object
net.minecraft.data.recipes.RecipeProvider
net.minecraft.data.recipes.packs.VanillaRecipeProvider
net.minecraftforge.common.data.ForgeRecipeProvider
- All Implemented Interfaces:
- DataProvider
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.data.DataProviderDataProvider.Factory<T extends DataProvider>
- 
Field SummaryFieldsFields inherited from class net.minecraft.data.recipes.packs.VanillaRecipeProviderCOAL_SMELTABLES, COPPER_SMELTABLES, DIAMOND_SMELTABLES, EMERALD_SMELTABLES, GOLD_SMELTABLES, IRON_SMELTABLES, LAPIS_SMELTABLES, REDSTONE_SMELTABLESFields inherited from class net.minecraft.data.recipes.RecipeProvideradvancementPathProvider, recipePathProviderFields inherited from interface net.minecraft.data.DataProviderFIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected CompletableFuture<?>buildAdvancement(CachedOutput p_253674_, AdvancementHolder p_297687_) protected voidbuildRecipes(RecipeOutput consumer) private @Nullable FinishedRecipeenhance(FinishedRecipe vanilla) private @Nullable FinishedRecipeenhance(ShapedRecipeBuilder.Result vanilla) private @Nullable FinishedRecipeenhance(ShapelessRecipeBuilder.Result vanilla) private @Nullable Ingredientenhance(ResourceLocation name, Ingredient vanilla) private voidprivate voidprivate <T,R> R private voidprotected @Nullable CompletableFuture<?>saveAdvancement(CachedOutput output, ResourceLocation advancementId, com.google.gson.JsonObject advancementJson, FinishedRecipe finishedRecipe) Called every time a recipe is saved to also save the advancement JSON if it exists.Methods inherited from class net.minecraft.data.recipes.packs.VanillaRecipeProviderrun, smithingTrimsMethods inherited from class net.minecraft.data.recipes.RecipeProviderbanner, bedFromPlanksAndWool, buttonBuilder, candle, carpet, chestBoat, chiseled, chiseledBuilder, colorBlockWithDye, coloredTerracottaFromTerracottaAndDye, concretePowder, cookRecipes, copySmithingTemplate, copySmithingTemplate, cut, cutBuilder, doorBuilder, fenceBuilder, fenceGateBuilder, generateForEnabledBlockFamilies, generateRecipes, getBaseBlock, getBlastingRecipeName, getConversionRecipeName, getHasName, getItemName, getName, getSimpleRecipeName, getSmeltingRecipeName, hangingSign, has, has, mosaicBuilder, netheriteSmithing, nineBlockStorageRecipes, nineBlockStorageRecipesRecipesWithCustomUnpacking, nineBlockStorageRecipesWithCustomPacking, oneToOneConversionRecipe, oneToOneConversionRecipe, oreBlasting, oreSmelting, planksFromLog, planksFromLogs, polished, polishedBuilder, pressurePlate, pressurePlateBuilder, signBuilder, slab, slabBuilder, stainedGlassFromGlassAndDye, stainedGlassPaneFromGlassPaneAndDye, stainedGlassPaneFromStainedGlass, stairBuilder, stonecutterResultFromBase, stonecutterResultFromBase, threeByThreePacker, threeByThreePacker, trapdoorBuilder, trimSmithing, twoByTwoPacker, wall, wallBuilder, waxRecipes, woodenBoat, woodFromLogs
- 
Field Details- 
replacements
- 
excludes
 
- 
- 
Constructor Details- 
ForgeRecipeProvider
 
- 
- 
Method Details- 
exclude
- 
exclude
- 
replace
- 
buildRecipes- Overrides:
- buildRecipesin class- VanillaRecipeProvider
 
- 
enhance
- 
enhance
- 
saveAdvancement@Nullable protected @Nullable CompletableFuture<?> saveAdvancement(CachedOutput output, ResourceLocation advancementId, com.google.gson.JsonObject advancementJson, FinishedRecipe finishedRecipe) Description copied from class:RecipeProviderCalled every time a recipe is saved to also save the advancement JSON if it exists.- Overrides:
- saveAdvancementin class- RecipeProvider
- Returns:
- A completable future that saves the advancement to disk, or null to cancel saving the advancement.
 
- 
buildAdvancementprotected CompletableFuture<?> buildAdvancement(CachedOutput p_253674_, AdvancementHolder p_297687_) - Overrides:
- buildAdvancementin class- RecipeProvider
 
- 
enhance
- 
enhance
- 
getField
 
-