Class NeoForgeRecipeProvider
java.lang.Object
net.minecraft.data.recipes.RecipeProvider
net.minecraft.data.recipes.packs.VanillaRecipeProvider
net.neoforged.neoforge.common.data.internal.NeoForgeRecipeProvider
- All Implemented Interfaces:
DataProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.data.DataProvider
DataProvider.Factory<T extends DataProvider> -
Field Summary
FieldsFields inherited from class net.minecraft.data.recipes.packs.VanillaRecipeProvider
COAL_SMELTABLES, COPPER_SMELTABLES, DIAMOND_SMELTABLES, EMERALD_SMELTABLES, GOLD_SMELTABLES, IRON_SMELTABLES, LAPIS_SMELTABLES, REDSTONE_SMELTABLESFields inherited from class net.minecraft.data.recipes.RecipeProvider
advancementPathProvider, lookupProvider, recipePathProviderFields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionNeoForgeRecipeProvider(PackOutput packOutput, CompletableFuture<HolderLookup.Provider> lookupProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected CompletableFuture<?>buildAdvancement(CachedOutput p_253674_, AdvancementHolder p_301116_) protected voidbuildRecipes(RecipeOutput recipeOutput) 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 voidprotected @Nullable CompletableFuture<?>saveAdvancement(CachedOutput output, FinishedRecipe recipe, com.google.gson.JsonObject json) 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.VanillaRecipeProvider
run, smithingTrimsMethods inherited from class net.minecraft.data.recipes.RecipeProvider
banner, 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, has, insideOf, inventoryTrigger, inventoryTrigger, mosaicBuilder, netheriteSmithing, nineBlockStorageRecipes, nineBlockStorageRecipes, nineBlockStorageRecipesRecipesWithCustomUnpacking, nineBlockStorageRecipesWithCustomPacking, oneToOneConversionRecipe, oneToOneConversionRecipe, oreBlasting, oreCooking, oreSmelting, planksFromLog, planksFromLogs, polished, polishedBuilder, pressurePlate, pressurePlateBuilder, signBuilder, simpleCookingRecipe, slab, slabBuilder, smeltingResultFromBase, stainedGlassFromGlassAndDye, stainedGlassPaneFromGlassPaneAndDye, stainedGlassPaneFromStainedGlass, stairBuilder, stonecutterResultFromBase, stonecutterResultFromBase, threeByThreePacker, threeByThreePacker, trapdoorBuilder, trimSmithing, twoByTwoPacker, wall, wallBuilder, waxRecipes, woodenBoat, woodFromLogs
-
Field Details
-
replacements
-
excludes
-
-
Constructor Details
-
NeoForgeRecipeProvider
public NeoForgeRecipeProvider(PackOutput packOutput, CompletableFuture<HolderLookup.Provider> lookupProvider)
-
-
Method Details
-
exclude
-
exclude
-
replace
-
buildRecipes
- Overrides:
buildRecipesin classVanillaRecipeProvider
-
enhance
-
enhance
-
saveAdvancement
@Nullable protected @Nullable CompletableFuture<?> saveAdvancement(CachedOutput output, FinishedRecipe recipe, com.google.gson.JsonObject json) Description copied from class:RecipeProviderCalled every time a recipe is saved to also save the advancement JSON if it exists.- Overrides:
saveAdvancementin classRecipeProvider- Returns:
- A completable future that saves the advancement to disk, or null to cancel saving the advancement.
-
buildAdvancement
protected CompletableFuture<?> buildAdvancement(CachedOutput p_253674_, AdvancementHolder p_301116_) - Overrides:
buildAdvancementin classRecipeProvider
-
enhance
-
enhance
-