Package net.minecraft.data.recipes
Class RecipeProvider
java.lang.Object
net.minecraft.data.recipes.RecipeProvider
- All Implemented Interfaces:
DataProvider
- Direct Known Subclasses:
BundleRecipeProvider,VanillaRecipeProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.data.DataProvider
DataProvider.Factory<T extends DataProvider> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PackOutput.PathProviderprotected final PackOutput.PathProviderprivate final CompletableFuture<HolderLookup.Provider> private static final Map<BlockFamily.Variant, BiFunction<ItemLike, ItemLike, RecipeBuilder>> Fields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, INDENT_WIDTH, KEY_COMPARATOR, LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionRecipeProvider(PackOutput output, CompletableFuture<HolderLookup.Provider> registries) -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidbanner(RecipeOutput recipeOutput, ItemLike banner, ItemLike material) protected static voidbedFromPlanksAndWool(RecipeOutput recipeOutput, ItemLike bed, ItemLike wool) protected CompletableFuture<?> buildAdvancement(CachedOutput output, HolderLookup.Provider registries, AdvancementHolder advancement) protected CompletableFuture<?> buildAdvancement(CachedOutput output, HolderLookup.Provider registries, AdvancementHolder advancement, ICondition... conditions) protected voidbuildRecipes(RecipeOutput recipeOutput) protected voidbuildRecipes(RecipeOutput p_recipeOutput, HolderLookup.Provider holderLookup) protected static RecipeBuilderbuttonBuilder(ItemLike button, Ingredient material) protected static voidcandle(RecipeOutput recipeOutput, ItemLike candle, ItemLike dye) protected static voidcarpet(RecipeOutput recipeOutput, ItemLike carpet, ItemLike material) protected static voidchestBoat(RecipeOutput recipeOutput, ItemLike boat, ItemLike material) protected static voidchiseled(RecipeOutput recipeOutput, RecipeCategory category, ItemLike chiseledResult, ItemLike material) protected static ShapedRecipeBuilderchiseledBuilder(RecipeCategory category, ItemLike chiseledResult, Ingredient material) protected static voidcolorBlockWithDye(RecipeOutput recipeOutput, List<Item> dyes, List<Item> dyeableItems, String group) protected static voidcoloredTerracottaFromTerracottaAndDye(RecipeOutput recipeOutput, ItemLike terracotta, ItemLike dye) protected static voidconcretePowder(RecipeOutput recipeOutput, ItemLike concretePowder, ItemLike dye) protected static <T extends AbstractCookingRecipe>
voidcookRecipes(RecipeOutput recipeOutput, String cookingMethod, RecipeSerializer<T> cookingSerializer, AbstractCookingRecipe.Factory<T> recipeFactory, int cookingTime) protected static voidcopperBulb(RecipeOutput recipeOutput, Block bulbBlock, Block material) protected static voidcopySmithingTemplate(RecipeOutput recipeOutput, ItemLike template, TagKey<Item> baseMaterial) protected static voidcopySmithingTemplate(RecipeOutput recipeOutput, ItemLike template, Ingredient baseItem) protected static voidcopySmithingTemplate(RecipeOutput recipeOutput, ItemLike template, ItemLike baseItem) protected static voidcut(RecipeOutput recipeOutput, RecipeCategory category, ItemLike cutResult, ItemLike material) protected static ShapedRecipeBuildercutBuilder(RecipeCategory category, ItemLike cutResult, Ingredient material) protected static RecipeBuilderdoorBuilder(ItemLike door, Ingredient material) protected static RecipeBuilderfenceBuilder(ItemLike fence, Ingredient material) protected static RecipeBuilderfenceGateBuilder(ItemLike fenceGate, Ingredient material) protected voidgenerateForEnabledBlockFamilies(RecipeOutput enabledFeatures, FeatureFlagSet p_251836_) protected static voidgenerateRecipes(RecipeOutput recipeOutput, BlockFamily blockFamily, FeatureFlagSet requiredFeatures) protected static BlockgetBaseBlock(BlockFamily family, BlockFamily.Variant variant) protected static StringgetBlastingRecipeName(ItemLike itemLike) protected static StringgetConversionRecipeName(ItemLike result, ItemLike ingredient) protected static StringgetHasName(ItemLike itemLike) protected static StringgetItemName(ItemLike itemLike) final StringgetName()protected static StringgetSimpleRecipeName(ItemLike itemLike) protected static StringgetSmeltingRecipeName(ItemLike itemLike) protected static voidgrate(RecipeOutput recipeOutput, Block grateBlock, Block material) protected static voidhangingSign(RecipeOutput recipeOutput, ItemLike sign, ItemLike material) protected static Criterion<InventoryChangeTrigger.TriggerInstance> has(MinMaxBounds.Ints count, ItemLike item) protected static Criterion<InventoryChangeTrigger.TriggerInstance> protected static Criterion<InventoryChangeTrigger.TriggerInstance> protected static Criterion<EnterBlockTrigger.TriggerInstance> protected static Criterion<InventoryChangeTrigger.TriggerInstance> inventoryTrigger(ItemPredicate... predicates) protected static Criterion<InventoryChangeTrigger.TriggerInstance> inventoryTrigger(ItemPredicate.Builder... items) protected static voidmosaicBuilder(RecipeOutput recipeOutput, RecipeCategory category, ItemLike result, ItemLike material) protected static voidnetheriteSmithing(RecipeOutput recipeOutput, Item ingredientItem, RecipeCategory category, Item resultItem) protected static voidnineBlockStorageRecipes(RecipeOutput recipeOutput, RecipeCategory unpackedCategory, ItemLike unpacked, RecipeCategory packedCategory, ItemLike packed) protected static voidnineBlockStorageRecipes(RecipeOutput recipeOutput, RecipeCategory unpackedCategory, ItemLike unpacked, RecipeCategory packedCategory, ItemLike packed, String packedName, String packedGroup, String unpackedName, String unpackedGroup) protected static voidnineBlockStorageRecipesRecipesWithCustomUnpacking(RecipeOutput recipeOutput, RecipeCategory unpackedCategory, ItemLike unpacked, RecipeCategory packedCategory, ItemLike packed, String unpackedName, String unpackedGroup) protected static voidnineBlockStorageRecipesWithCustomPacking(RecipeOutput recipeOutput, RecipeCategory unpackedCategory, ItemLike unpacked, RecipeCategory packedCategory, ItemLike packed, String packedName, String packedGroup) protected static voidoneToOneConversionRecipe(RecipeOutput recipeOutput, ItemLike result, ItemLike ingredient, String group) protected static voidoneToOneConversionRecipe(RecipeOutput recipeOutput, ItemLike result, ItemLike ingredient, String group, int resultCount) protected static voidoreBlasting(RecipeOutput recipeOutput, List<ItemLike> ingredients, RecipeCategory category, ItemLike result, float experience, int cookingTime, String group) protected static <T extends AbstractCookingRecipe>
voidoreCooking(RecipeOutput recipeOutput, RecipeSerializer<T> serializer, AbstractCookingRecipe.Factory<T> recipeFactory, List<ItemLike> ingredients, RecipeCategory category, ItemLike result, float experience, int cookingTime, String group, String suffix) protected static voidoreSmelting(RecipeOutput recipeOutput, List<ItemLike> ingredients, RecipeCategory category, ItemLike result, float experience, int cookingTime, String group) protected static voidplanksFromLog(RecipeOutput recipeOutput, ItemLike planks, TagKey<Item> logs, int resultCount) protected static voidplanksFromLogs(RecipeOutput recipeOutput, ItemLike planks, TagKey<Item> logs, int result) protected static voidpolished(RecipeOutput recipeOutput, RecipeCategory category, ItemLike result, ItemLike material) protected static RecipeBuilderpolishedBuilder(RecipeCategory category, ItemLike result, Ingredient material) protected static voidpressurePlate(RecipeOutput recipeOutput, ItemLike pressurePlate, ItemLike material) protected static RecipeBuilderpressurePlateBuilder(RecipeCategory category, ItemLike pressurePlate, Ingredient material) final CompletableFuture<?> run(CachedOutput output) protected CompletableFuture<?> run(CachedOutput output, HolderLookup.Provider registries) protected static RecipeBuildersignBuilder(ItemLike sign, Ingredient material) protected static <T extends AbstractCookingRecipe>
voidsimpleCookingRecipe(RecipeOutput recipeOutput, String cookingMethod, RecipeSerializer<T> cookingSerializer, AbstractCookingRecipe.Factory<T> recipeFactory, int cookingTime, ItemLike material, ItemLike result, float experience) protected static voidslab(RecipeOutput recipeOutput, RecipeCategory category, ItemLike slab, ItemLike material) protected static RecipeBuilderslabBuilder(RecipeCategory category, ItemLike slab, Ingredient material) protected static voidsmeltingResultFromBase(RecipeOutput recipeOutput, ItemLike result, ItemLike ingredient) protected static voidstainedGlassFromGlassAndDye(RecipeOutput recipeOutput, ItemLike stainedGlass, ItemLike dye) protected static voidstainedGlassPaneFromGlassPaneAndDye(RecipeOutput recipeOutput, ItemLike stainedGlassPane, ItemLike dye) protected static voidstainedGlassPaneFromStainedGlass(RecipeOutput recipeOutput, ItemLike stainedGlassPane, ItemLike stainedGlass) protected static RecipeBuilderstairBuilder(ItemLike stairs, Ingredient material) protected static voidstonecutterResultFromBase(RecipeOutput recipeOutput, RecipeCategory category, ItemLike result, ItemLike material) protected static voidstonecutterResultFromBase(RecipeOutput recipeOutput, RecipeCategory category, ItemLike result, ItemLike material, int resultCount) protected static voidthreeByThreePacker(RecipeOutput recipeOutput, RecipeCategory category, ItemLike packed, ItemLike unpacked) protected static voidthreeByThreePacker(RecipeOutput recipeOutput, RecipeCategory category, ItemLike packed, ItemLike unpacked, String criterionName) protected static RecipeBuildertrapdoorBuilder(ItemLike trapdoor, Ingredient material) protected static voidtrimSmithing(RecipeOutput recipeOutput, Item ingredientItem, ResourceLocation location) protected static voidtwoByTwoPacker(RecipeOutput recipeOutput, RecipeCategory category, ItemLike packed, ItemLike unpacked) protected static voidwall(RecipeOutput recipeOutput, RecipeCategory category, ItemLike wall, ItemLike material) protected static RecipeBuilderwallBuilder(RecipeCategory category, ItemLike wall, Ingredient material) protected static voidwaxRecipes(RecipeOutput recipeOutput, FeatureFlagSet requiredFeatures) protected static voidwoodenBoat(RecipeOutput recipeOutput, ItemLike boat, ItemLike material) protected static voidwoodFromLogs(RecipeOutput recipeOutput, ItemLike wood, ItemLike log)
-
Field Details
-
recipePathProvider
-
advancementPathProvider
-
registries
-
SHAPE_BUILDERS
private static final Map<BlockFamily.Variant,BiFunction<ItemLike, SHAPE_BUILDERSItemLike, RecipeBuilder>>
-
-
Constructor Details
-
RecipeProvider
-
-
Method Details
-
run
- Specified by:
runin interfaceDataProvider
-
run
-
buildAdvancement
protected CompletableFuture<?> buildAdvancement(CachedOutput output, HolderLookup.Provider registries, AdvancementHolder advancement) -
buildAdvancement
protected CompletableFuture<?> buildAdvancement(CachedOutput output, HolderLookup.Provider registries, AdvancementHolder advancement, ICondition... conditions) -
buildRecipes
-
buildRecipes
-
generateForEnabledBlockFamilies
protected void generateForEnabledBlockFamilies(RecipeOutput enabledFeatures, FeatureFlagSet p_251836_) -
oneToOneConversionRecipe
protected static void oneToOneConversionRecipe(RecipeOutput recipeOutput, ItemLike result, ItemLike ingredient, @Nullable String group) -
oneToOneConversionRecipe
protected static void oneToOneConversionRecipe(RecipeOutput recipeOutput, ItemLike result, ItemLike ingredient, @Nullable String group, int resultCount) -
oreSmelting
protected static void oreSmelting(RecipeOutput recipeOutput, List<ItemLike> ingredients, RecipeCategory category, ItemLike result, float experience, int cookingTime, String group) -
oreBlasting
protected static void oreBlasting(RecipeOutput recipeOutput, List<ItemLike> ingredients, RecipeCategory category, ItemLike result, float experience, int cookingTime, String group) -
oreCooking
protected static <T extends AbstractCookingRecipe> void oreCooking(RecipeOutput recipeOutput, RecipeSerializer<T> serializer, AbstractCookingRecipe.Factory<T> recipeFactory, List<ItemLike> ingredients, RecipeCategory category, ItemLike result, float experience, int cookingTime, String group, String suffix) -
netheriteSmithing
protected static void netheriteSmithing(RecipeOutput recipeOutput, Item ingredientItem, RecipeCategory category, Item resultItem) -
trimSmithing
protected static void trimSmithing(RecipeOutput recipeOutput, Item ingredientItem, ResourceLocation location) -
twoByTwoPacker
protected static void twoByTwoPacker(RecipeOutput recipeOutput, RecipeCategory category, ItemLike packed, ItemLike unpacked) -
threeByThreePacker
protected static void threeByThreePacker(RecipeOutput recipeOutput, RecipeCategory category, ItemLike packed, ItemLike unpacked, String criterionName) -
threeByThreePacker
protected static void threeByThreePacker(RecipeOutput recipeOutput, RecipeCategory category, ItemLike packed, ItemLike unpacked) -
planksFromLog
protected static void planksFromLog(RecipeOutput recipeOutput, ItemLike planks, TagKey<Item> logs, int resultCount) -
planksFromLogs
protected static void planksFromLogs(RecipeOutput recipeOutput, ItemLike planks, TagKey<Item> logs, int result) -
woodFromLogs
-
woodenBoat
-
chestBoat
-
buttonBuilder
-
doorBuilder
-
fenceBuilder
-
fenceGateBuilder
-
pressurePlate
protected static void pressurePlate(RecipeOutput recipeOutput, ItemLike pressurePlate, ItemLike material) -
pressurePlateBuilder
protected static RecipeBuilder pressurePlateBuilder(RecipeCategory category, ItemLike pressurePlate, Ingredient material) -
slab
protected static void slab(RecipeOutput recipeOutput, RecipeCategory category, ItemLike slab, ItemLike material) -
slabBuilder
protected static RecipeBuilder slabBuilder(RecipeCategory category, ItemLike slab, Ingredient material) -
stairBuilder
-
trapdoorBuilder
-
signBuilder
-
hangingSign
-
colorBlockWithDye
-
carpet
-
bedFromPlanksAndWool
-
banner
-
stainedGlassFromGlassAndDye
protected static void stainedGlassFromGlassAndDye(RecipeOutput recipeOutput, ItemLike stainedGlass, ItemLike dye) -
stainedGlassPaneFromStainedGlass
protected static void stainedGlassPaneFromStainedGlass(RecipeOutput recipeOutput, ItemLike stainedGlassPane, ItemLike stainedGlass) -
stainedGlassPaneFromGlassPaneAndDye
protected static void stainedGlassPaneFromGlassPaneAndDye(RecipeOutput recipeOutput, ItemLike stainedGlassPane, ItemLike dye) -
coloredTerracottaFromTerracottaAndDye
protected static void coloredTerracottaFromTerracottaAndDye(RecipeOutput recipeOutput, ItemLike terracotta, ItemLike dye) -
concretePowder
protected static void concretePowder(RecipeOutput recipeOutput, ItemLike concretePowder, ItemLike dye) -
candle
-
wall
protected static void wall(RecipeOutput recipeOutput, RecipeCategory category, ItemLike wall, ItemLike material) -
wallBuilder
protected static RecipeBuilder wallBuilder(RecipeCategory category, ItemLike wall, Ingredient material) -
polished
protected static void polished(RecipeOutput recipeOutput, RecipeCategory category, ItemLike result, ItemLike material) -
polishedBuilder
protected static RecipeBuilder polishedBuilder(RecipeCategory category, ItemLike result, Ingredient material) -
cut
protected static void cut(RecipeOutput recipeOutput, RecipeCategory category, ItemLike cutResult, ItemLike material) -
cutBuilder
protected static ShapedRecipeBuilder cutBuilder(RecipeCategory category, ItemLike cutResult, Ingredient material) -
chiseled
protected static void chiseled(RecipeOutput recipeOutput, RecipeCategory category, ItemLike chiseledResult, ItemLike material) -
mosaicBuilder
protected static void mosaicBuilder(RecipeOutput recipeOutput, RecipeCategory category, ItemLike result, ItemLike material) -
chiseledBuilder
protected static ShapedRecipeBuilder chiseledBuilder(RecipeCategory category, ItemLike chiseledResult, Ingredient material) -
stonecutterResultFromBase
protected static void stonecutterResultFromBase(RecipeOutput recipeOutput, RecipeCategory category, ItemLike result, ItemLike material) -
stonecutterResultFromBase
protected static void stonecutterResultFromBase(RecipeOutput recipeOutput, RecipeCategory category, ItemLike result, ItemLike material, int resultCount) -
smeltingResultFromBase
protected static void smeltingResultFromBase(RecipeOutput recipeOutput, ItemLike result, ItemLike ingredient) -
nineBlockStorageRecipes
protected static void nineBlockStorageRecipes(RecipeOutput recipeOutput, RecipeCategory unpackedCategory, ItemLike unpacked, RecipeCategory packedCategory, ItemLike packed) -
nineBlockStorageRecipesWithCustomPacking
protected static void nineBlockStorageRecipesWithCustomPacking(RecipeOutput recipeOutput, RecipeCategory unpackedCategory, ItemLike unpacked, RecipeCategory packedCategory, ItemLike packed, String packedName, String packedGroup) -
nineBlockStorageRecipesRecipesWithCustomUnpacking
protected static void nineBlockStorageRecipesRecipesWithCustomUnpacking(RecipeOutput recipeOutput, RecipeCategory unpackedCategory, ItemLike unpacked, RecipeCategory packedCategory, ItemLike packed, String unpackedName, String unpackedGroup) -
nineBlockStorageRecipes
protected static void nineBlockStorageRecipes(RecipeOutput recipeOutput, RecipeCategory unpackedCategory, ItemLike unpacked, RecipeCategory packedCategory, ItemLike packed, String packedName, @Nullable String packedGroup, String unpackedName, @Nullable String unpackedGroup) -
copySmithingTemplate
protected static void copySmithingTemplate(RecipeOutput recipeOutput, ItemLike template, TagKey<Item> baseMaterial) -
copySmithingTemplate
protected static void copySmithingTemplate(RecipeOutput recipeOutput, ItemLike template, ItemLike baseItem) -
copySmithingTemplate
protected static void copySmithingTemplate(RecipeOutput recipeOutput, ItemLike template, Ingredient baseItem) -
cookRecipes
protected static <T extends AbstractCookingRecipe> void cookRecipes(RecipeOutput recipeOutput, String cookingMethod, RecipeSerializer<T> cookingSerializer, AbstractCookingRecipe.Factory<T> recipeFactory, int cookingTime) -
simpleCookingRecipe
protected static <T extends AbstractCookingRecipe> void simpleCookingRecipe(RecipeOutput recipeOutput, String cookingMethod, RecipeSerializer<T> cookingSerializer, AbstractCookingRecipe.Factory<T> recipeFactory, int cookingTime, ItemLike material, ItemLike result, float experience) -
waxRecipes
-
grate
-
copperBulb
-
generateRecipes
protected static void generateRecipes(RecipeOutput recipeOutput, BlockFamily blockFamily, FeatureFlagSet requiredFeatures) -
getBaseBlock
-
insideOf
-
has
protected static Criterion<InventoryChangeTrigger.TriggerInstance> has(MinMaxBounds.Ints count, ItemLike item) -
has
-
has
-
inventoryTrigger
protected static Criterion<InventoryChangeTrigger.TriggerInstance> inventoryTrigger(ItemPredicate.Builder... items) -
inventoryTrigger
protected static Criterion<InventoryChangeTrigger.TriggerInstance> inventoryTrigger(ItemPredicate... predicates) -
getHasName
-
getItemName
-
getSimpleRecipeName
-
getConversionRecipeName
-
getSmeltingRecipeName
-
getBlastingRecipeName
-
getName
- Specified by:
getNamein interfaceDataProvider
-