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
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, recipePathProviderFields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CompletableFuture<?>buildAdvancement(CachedOutput p_253674_, ResourceLocation p_254102_, Advancement.Builder p_253712_) protected voidbuildRecipes(Consumer<FinishedRecipe> 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 <T,R> R private voidprotected @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
runMethods 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:
buildRecipesin classVanillaRecipeProvider
-
enhance
-
enhance
-
saveAdvancement
@Nullable protected @Nullable CompletableFuture<?> saveAdvancement(CachedOutput output, FinishedRecipe finishedRecipe, com.google.gson.JsonObject advancementJson) 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_, ResourceLocation p_254102_, Advancement.Builder p_253712_) - Overrides:
buildAdvancementin classRecipeProvider
-
enhance
-
enhance
-
getField
-