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_, ResourceLocation p_254102_, Advancement.Builder p_253712_) protected void
buildRecipes
(Consumer<FinishedRecipe> 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 <T,
R> R private void
protected @Nullable CompletableFuture<?>
saveAdvancement
(CachedOutput output, FinishedRecipe finishedRecipe, com.google.gson.JsonObject advancementJson) 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
Methods inherited from class net.minecraft.data.recipes.RecipeProvider
banner, bedFromPlanksAndWool, bedFromWhiteBedAndDye, buttonBuilder, candle, carpet, chestBoat, chiseled, chiseledBuilder, coloredCarpetFromWhiteCarpetAndDye, coloredTerracottaFromTerracottaAndDye, coloredWoolFromWhiteWoolAndDye, concretePowder, cookRecipes, cut, cutBuilder, doorBuilder, fenceBuilder, fenceGateBuilder, generateForEnabledBlockFamilies, generateRecipes, getBaseBlock, getBlastingRecipeName, getConversionRecipeName, getHasName, getItemName, getName, getSimpleRecipeName, getSmeltingRecipeName, hangingSign, has, has, has, insideOf, 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, twoByTwoPacker, wall, wallBuilder, waxRecipes, woodenBoat, woodFromLogs
-
Field Details
-
replacements
-
excludes
-
-
Constructor Details
-
ForgeRecipeProvider
-
-
Method Details
-
exclude
-
replace
-
buildRecipes
- Overrides:
buildRecipes
in classVanillaRecipeProvider
-
enhance
-
enhance
-
saveAdvancement
@Nullable protected @Nullable CompletableFuture<?> saveAdvancement(CachedOutput output, FinishedRecipe finishedRecipe, com.google.gson.JsonObject advancementJson) 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_, ResourceLocation p_254102_, Advancement.Builder p_253712_) - Overrides:
buildAdvancement
in classRecipeProvider
-
enhance
-
enhance
-
getField
-