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.PathProvider
protected final PackOutput.PathProvider
private 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 void
banner
(RecipeOutput recipeOutput, ItemLike banner, ItemLike material) protected static void
bedFromPlanksAndWool
(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 void
buildRecipes
(RecipeOutput recipeOutput) protected void
buildRecipes
(RecipeOutput p_recipeOutput, HolderLookup.Provider holderLookup) protected static RecipeBuilder
buttonBuilder
(ItemLike button, Ingredient material) protected static void
candle
(RecipeOutput recipeOutput, ItemLike candle, ItemLike dye) protected static void
carpet
(RecipeOutput recipeOutput, ItemLike carpet, ItemLike material) protected static void
chestBoat
(RecipeOutput recipeOutput, ItemLike boat, ItemLike material) protected static void
chiseled
(RecipeOutput recipeOutput, RecipeCategory category, ItemLike chiseledResult, ItemLike material) protected static ShapedRecipeBuilder
chiseledBuilder
(RecipeCategory category, ItemLike chiseledResult, Ingredient material) protected static void
colorBlockWithDye
(RecipeOutput recipeOutput, List<Item> dyes, List<Item> dyeableItems, String group) protected static void
coloredTerracottaFromTerracottaAndDye
(RecipeOutput recipeOutput, ItemLike terracotta, ItemLike dye) protected static void
concretePowder
(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 void
copperBulb
(RecipeOutput recipeOutput, Block bulbBlock, Block material) protected static void
copySmithingTemplate
(RecipeOutput recipeOutput, ItemLike template, TagKey<Item> baseMaterial) protected static void
copySmithingTemplate
(RecipeOutput recipeOutput, ItemLike template, Ingredient baseItem) protected static void
copySmithingTemplate
(RecipeOutput recipeOutput, ItemLike template, ItemLike baseItem) protected static void
cut
(RecipeOutput recipeOutput, RecipeCategory category, ItemLike cutResult, ItemLike material) protected static ShapedRecipeBuilder
cutBuilder
(RecipeCategory category, ItemLike cutResult, Ingredient material) protected static RecipeBuilder
doorBuilder
(ItemLike door, Ingredient material) protected static RecipeBuilder
fenceBuilder
(ItemLike fence, Ingredient material) protected static RecipeBuilder
fenceGateBuilder
(ItemLike fenceGate, Ingredient material) protected void
generateForEnabledBlockFamilies
(RecipeOutput enabledFeatures, FeatureFlagSet p_251836_) protected static void
generateRecipes
(RecipeOutput recipeOutput, BlockFamily blockFamily, FeatureFlagSet requiredFeatures) protected static Block
getBaseBlock
(BlockFamily family, BlockFamily.Variant variant) protected static String
getBlastingRecipeName
(ItemLike itemLike) protected static String
getConversionRecipeName
(ItemLike result, ItemLike ingredient) protected static String
getHasName
(ItemLike itemLike) protected static String
getItemName
(ItemLike itemLike) final String
getName()
protected static String
getSimpleRecipeName
(ItemLike itemLike) protected static String
getSmeltingRecipeName
(ItemLike itemLike) protected static void
grate
(RecipeOutput recipeOutput, Block grateBlock, Block material) protected static void
hangingSign
(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 void
mosaicBuilder
(RecipeOutput recipeOutput, RecipeCategory category, ItemLike result, ItemLike material) protected static void
netheriteSmithing
(RecipeOutput recipeOutput, Item ingredientItem, RecipeCategory category, Item resultItem) protected static void
nineBlockStorageRecipes
(RecipeOutput recipeOutput, RecipeCategory unpackedCategory, ItemLike unpacked, RecipeCategory packedCategory, ItemLike packed) protected static void
nineBlockStorageRecipes
(RecipeOutput recipeOutput, RecipeCategory unpackedCategory, ItemLike unpacked, RecipeCategory packedCategory, ItemLike packed, String packedName, String packedGroup, String unpackedName, String unpackedGroup) protected static void
nineBlockStorageRecipesRecipesWithCustomUnpacking
(RecipeOutput recipeOutput, RecipeCategory unpackedCategory, ItemLike unpacked, RecipeCategory packedCategory, ItemLike packed, String unpackedName, String unpackedGroup) protected static void
nineBlockStorageRecipesWithCustomPacking
(RecipeOutput recipeOutput, RecipeCategory unpackedCategory, ItemLike unpacked, RecipeCategory packedCategory, ItemLike packed, String packedName, String packedGroup) protected static void
oneToOneConversionRecipe
(RecipeOutput recipeOutput, ItemLike result, ItemLike ingredient, String group) protected static void
oneToOneConversionRecipe
(RecipeOutput recipeOutput, ItemLike result, ItemLike ingredient, String group, int resultCount) protected static void
oreBlasting
(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 void
oreSmelting
(RecipeOutput recipeOutput, List<ItemLike> ingredients, RecipeCategory category, ItemLike result, float experience, int cookingTime, String group) protected static void
planksFromLog
(RecipeOutput recipeOutput, ItemLike planks, TagKey<Item> logs, int resultCount) protected static void
planksFromLogs
(RecipeOutput recipeOutput, ItemLike planks, TagKey<Item> logs, int result) protected static void
polished
(RecipeOutput recipeOutput, RecipeCategory category, ItemLike result, ItemLike material) protected static RecipeBuilder
polishedBuilder
(RecipeCategory category, ItemLike result, Ingredient material) protected static void
pressurePlate
(RecipeOutput recipeOutput, ItemLike pressurePlate, ItemLike material) protected static RecipeBuilder
pressurePlateBuilder
(RecipeCategory category, ItemLike pressurePlate, Ingredient material) final CompletableFuture
<?> run
(CachedOutput output) protected CompletableFuture
<?> run
(CachedOutput output, HolderLookup.Provider registries) protected static RecipeBuilder
signBuilder
(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 void
slab
(RecipeOutput recipeOutput, RecipeCategory category, ItemLike slab, ItemLike material) protected static RecipeBuilder
slabBuilder
(RecipeCategory category, ItemLike slab, Ingredient material) protected static void
smeltingResultFromBase
(RecipeOutput recipeOutput, ItemLike result, ItemLike ingredient) protected static void
stainedGlassFromGlassAndDye
(RecipeOutput recipeOutput, ItemLike stainedGlass, ItemLike dye) protected static void
stainedGlassPaneFromGlassPaneAndDye
(RecipeOutput recipeOutput, ItemLike stainedGlassPane, ItemLike dye) protected static void
stainedGlassPaneFromStainedGlass
(RecipeOutput recipeOutput, ItemLike stainedGlassPane, ItemLike stainedGlass) protected static RecipeBuilder
stairBuilder
(ItemLike stairs, Ingredient material) protected static void
stonecutterResultFromBase
(RecipeOutput recipeOutput, RecipeCategory category, ItemLike result, ItemLike material) protected static void
stonecutterResultFromBase
(RecipeOutput recipeOutput, RecipeCategory category, ItemLike result, ItemLike material, int resultCount) protected static void
threeByThreePacker
(RecipeOutput recipeOutput, RecipeCategory category, ItemLike packed, ItemLike unpacked) protected static void
threeByThreePacker
(RecipeOutput recipeOutput, RecipeCategory category, ItemLike packed, ItemLike unpacked, String criterionName) protected static RecipeBuilder
trapdoorBuilder
(ItemLike trapdoor, Ingredient material) protected static void
trimSmithing
(RecipeOutput recipeOutput, Item ingredientItem, ResourceLocation location) protected static void
twoByTwoPacker
(RecipeOutput recipeOutput, RecipeCategory category, ItemLike packed, ItemLike unpacked) protected static void
wall
(RecipeOutput recipeOutput, RecipeCategory category, ItemLike wall, ItemLike material) protected static RecipeBuilder
wallBuilder
(RecipeCategory category, ItemLike wall, Ingredient material) protected static void
waxRecipes
(RecipeOutput recipeOutput, FeatureFlagSet requiredFeatures) protected static void
woodenBoat
(RecipeOutput recipeOutput, ItemLike boat, ItemLike material) protected static void
woodFromLogs
(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:
run
in 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:
getName
in interfaceDataProvider
-