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 class net.minecraft.data.recipes.packs.VanillaRecipeProvider
VanillaRecipeProvider.TrimTemplate
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
ConstructorDescriptionForgeRecipeProvider
(PackOutput packOutput, CompletableFuture<HolderLookup.Provider> lookup) -
Method Summary
Modifier and TypeMethodDescriptionprotected CompletableFuture
<?> buildAdvancement
(CachedOutput p_253674_, HolderLookup.Provider p_335995_, AdvancementHolder p_297687_) protected void
buildRecipes
(RecipeOutput consumer) private @Nullable Ingredient
enhance
(ResourceLocation name, Ingredient vanilla) private @Nullable Recipe
<?> enhance
(ResourceLocation id, Recipe<?> vanilla) private @Nullable Recipe
<?> enhance
(ResourceLocation id, ShapedRecipe vanilla) private @Nullable Recipe
<?> enhance
(ResourceLocation id, ShapelessRecipe vanilla) private void
private void
private <T,
R> R private void
protected @Nullable CompletableFuture
<?> saveAdvancement
(CachedOutput output, ResourceLocation advancementId, com.google.gson.JsonElement advancement) 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, copperBulb, copySmithingTemplate, copySmithingTemplate, copySmithingTemplate, cut, cutBuilder, doorBuilder, fenceBuilder, fenceGateBuilder, generateForEnabledBlockFamilies, generateRecipes, getBaseBlock, getBlastingRecipeName, getConversionRecipeName, getHasName, getItemName, getName, getSimpleRecipeName, getSmeltingRecipeName, grate, hangingSign, has, has, mosaicBuilder, netheriteSmithing, nineBlockStorageRecipes, nineBlockStorageRecipesRecipesWithCustomUnpacking, nineBlockStorageRecipesWithCustomPacking, oneToOneConversionRecipe, oneToOneConversionRecipe, oreBlasting, oreSmelting, planksFromLog, planksFromLogs, polished, polishedBuilder, pressurePlate, pressurePlateBuilder, run, 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, ResourceLocation advancementId, com.google.gson.JsonElement advancement) 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_, HolderLookup.Provider p_335995_, AdvancementHolder p_297687_) - Overrides:
buildAdvancement
in classRecipeProvider
-
enhance
-
enhance
-
getField
-