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 Summary
Nested classes/interfaces inherited from interface net.minecraft.data.DataProvider
DataProvider.Factory<T extends DataProvider>
-
Field Summary
Fields inherited from class net.minecraft.data.recipes.packs.VanillaRecipeProvider
COAL_SMELTABLES, COPPER_SMELTABLES, DIAMOND_SMELTABLES, EMERALD_SMELTABLES, GOLD_SMELTABLES, IRON_SMELTABLES, LAPIS_SMELTABLES, REDSTONE_SMELTABLES
Fields inherited from class net.minecraft.data.recipes.RecipeProvider
advancementPathProvider, recipePathProvider
Fields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected CompletableFuture<?>
buildAdvancement
(CachedOutput p_253674_, AdvancementHolder p_297687_) protected void
buildRecipes
(RecipeOutput consumer) private @Nullable FinishedRecipe
enhance
(FinishedRecipe vanilla) private @Nullable FinishedRecipe
enhance
(ShapedRecipeBuilder.Result vanilla) private @Nullable FinishedRecipe
enhance
(ShapelessRecipeBuilder.Result vanilla) private @Nullable Ingredient
enhance
(ResourceLocation name, Ingredient vanilla) private void
private void
private <T,
R> R private void
protected @Nullable CompletableFuture<?>
saveAdvancement
(CachedOutput output, com.google.gson.JsonObject advancementJson, AdvancementHolder holder, 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.VanillaRecipeProvider
run, smithingTrims
Methods 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, 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:
buildRecipes
in classVanillaRecipeProvider
-
enhance
-
enhance
-
saveAdvancement
@Nullable protected @Nullable CompletableFuture<?> saveAdvancement(CachedOutput output, com.google.gson.JsonObject advancementJson, AdvancementHolder holder, FinishedRecipe finishedRecipe) Description copied from class:RecipeProvider
Called every time a recipe is saved to also save the advancement JSON if it exists.- Overrides:
saveAdvancement
in 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_297687_) - Overrides:
buildAdvancement
in classRecipeProvider
-
enhance
-
enhance
-
getField
-