Package net.minecraft.data.recipes
Class RecipeProvider
java.lang.Object
net.minecraft.data.recipes.RecipeProvider
- Direct Known Subclasses:
VanillaRecipeProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interfacestatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HolderGetter<Item> protected final RecipeOutputprotected final HolderLookup.Providerprivate static final Map<BlockFamily.Variant, RecipeProvider.FamilyRecipeProvider> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRecipeProvider(HolderLookup.Provider registries, RecipeOutput output) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidbedFromPlanksAndWool(ItemLike bed, ItemLike wool) protected abstract voidprotected RecipeBuilderbuttonBuilder(ItemLike button, Ingredient material) protected voidprotected voidprotected voidprotected voidchiseled(RecipeCategory category, ItemLike chiseledResult, ItemLike material) protected ShapedRecipeBuilderchiseledBuilder(RecipeCategory category, ItemLike chiseledResult, Ingredient material) protected voidprotected voidcoloredTerracottaFromTerracottaAndDye(ItemLike terracotta, ItemLike dye) protected voidcolorWithDye(List<Item> dyes, List<Item> dyeableItems, Item dye, String group, RecipeCategory category) protected voidconcretePowder(ItemLike concretePowder, ItemLike dye) protected <T extends AbstractCookingRecipe>
voidcookRecipes(String cookingMethod, RecipeSerializer<T> cookingSerializer, AbstractCookingRecipe.Factory<T> recipeFactory, int cookingTime) protected voidcopperBulb(Block bulbBlock, Block material) protected voidcopySmithingTemplate(ItemLike template, Ingredient baseItem) protected voidcopySmithingTemplate(ItemLike template, ItemLike baseItem) protected voidcut(RecipeCategory category, ItemLike cutResult, ItemLike material) protected ShapedRecipeBuildercutBuilder(RecipeCategory category, ItemLike cutResult, Ingredient material) protected RecipeBuilderdoorBuilder(ItemLike door, Ingredient material) protected RecipeBuilderfenceBuilder(ItemLike fence, Ingredient material) protected RecipeBuilderfenceGateBuilder(ItemLike fenceGate, Ingredient material) protected voidgenerateForEnabledBlockFamilies(FeatureFlagSet enabledFeatures) protected voidgenerateRecipes(BlockFamily blockFamily, FeatureFlagSet requiredFeatures) protected 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) protected static StringgetSimpleRecipeName(ItemLike itemLike) protected static StringgetSmeltingRecipeName(ItemLike itemLike) protected voidprotected voidhangingSign(ItemLike sign, ItemLike material) protected Criterion<InventoryChangeTrigger.TriggerInstance> has(MinMaxBounds.Ints count, ItemLike item) protected Criterion<InventoryChangeTrigger.TriggerInstance> protected 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 voidmosaicBuilder(RecipeCategory category, ItemLike result, ItemLike material) protected voidnetheriteSmithing(Item ingredientItem, RecipeCategory category, Item resultItem) protected voidnineBlockStorageRecipes(RecipeCategory unpackedCategory, ItemLike unpacked, RecipeCategory packedCategory, ItemLike packed) protected voidnineBlockStorageRecipes(RecipeCategory unpackedCategory, ItemLike unpacked, RecipeCategory packedCategory, ItemLike packed, String packedName, String packedGroup, String unpackedName, String unpackedGroup) protected voidnineBlockStorageRecipesRecipesWithCustomUnpacking(RecipeCategory unpackedCategory, ItemLike unpacked, RecipeCategory packedCategory, ItemLike packed, String unpackedName, String unpackedGroup) protected voidnineBlockStorageRecipesWithCustomPacking(RecipeCategory unpackedCategory, ItemLike unpacked, RecipeCategory packedCategory, ItemLike packed, String packedName, String packedGroup) protected voidoneToOneConversionRecipe(ItemLike result, ItemLike ingredient, String group) protected voidoneToOneConversionRecipe(ItemLike result, ItemLike ingredient, String group, int resultCount) protected voidoreBlasting(List<ItemLike> ingredients, RecipeCategory category, ItemLike result, float experience, int cookingTime, String group) protected <T extends AbstractCookingRecipe>
voidoreCooking(RecipeSerializer<T> serializer, AbstractCookingRecipe.Factory<T> recipeFactory, List<ItemLike> ingredients, RecipeCategory category, ItemLike result, float experience, int cookingTime, String group, String suffix) protected voidoreSmelting(List<ItemLike> ingredients, RecipeCategory category, ItemLike result, float experience, int cookingTime, String group) protected voidplanksFromLog(ItemLike planks, TagKey<Item> logs, int resultCount) protected voidplanksFromLogs(ItemLike planks, TagKey<Item> logs, int result) protected voidpolished(RecipeCategory category, ItemLike result, ItemLike material) protected RecipeBuilderpolishedBuilder(RecipeCategory category, ItemLike result, Ingredient material) protected voidpressurePlate(ItemLike pressurePlate, ItemLike material) protected RecipeBuilderpressurePlateBuilder(RecipeCategory category, ItemLike pressurePlate, Ingredient material) protected ShapedRecipeBuildershaped(RecipeCategory category, ItemLike result) protected ShapedRecipeBuildershaped(RecipeCategory category, ItemLike result, int count) protected ShapelessRecipeBuildershapeless(RecipeCategory category, ItemStack result) protected ShapelessRecipeBuildershapeless(RecipeCategory category, ItemLike result) protected ShapelessRecipeBuildershapeless(RecipeCategory category, ItemLike result, int count) protected RecipeBuildersignBuilder(ItemLike sign, Ingredient material) protected <T extends AbstractCookingRecipe>
voidsimpleCookingRecipe(String cookingMethod, RecipeSerializer<T> cookingSerializer, AbstractCookingRecipe.Factory<T> recipeFactory, int cookingTime, ItemLike material, ItemLike result, float experience) protected voidslab(RecipeCategory category, ItemLike slab, ItemLike material) protected RecipeBuilderslabBuilder(RecipeCategory category, ItemLike slab, Ingredient material) protected voidsmeltingResultFromBase(ItemLike result, ItemLike ingredient) protected voidstainedGlassFromGlassAndDye(ItemLike stainedGlass, ItemLike dye) protected voidstainedGlassPaneFromGlassPaneAndDye(ItemLike stainedGlassPane, ItemLike dye) protected voidstainedGlassPaneFromStainedGlass(ItemLike stainedGlassPane, ItemLike stainedGlass) protected RecipeBuilderstairBuilder(ItemLike stairs, Ingredient material) protected voidstonecutterResultFromBase(RecipeCategory category, ItemLike result, ItemLike material) protected voidstonecutterResultFromBase(RecipeCategory category, ItemLike result, ItemLike material, int resultCount) protected voidsuspiciousStew(Item flowerItem, SuspiciousEffectHolder effect) protected Ingredientprotected voidthreeByThreePacker(RecipeCategory category, ItemLike packed, ItemLike unpacked) protected voidthreeByThreePacker(RecipeCategory category, ItemLike packed, ItemLike unpacked, String criterionName) protected RecipeBuildertrapdoorBuilder(ItemLike trapdoor, Ingredient material) protected voidtrimSmithing(Item template, ResourceKey<TrimPattern> pattern, ResourceKey<Recipe<?>> recipe) protected voidtwoByTwoPacker(RecipeCategory category, ItemLike packed, ItemLike unpacked) protected voidwall(RecipeCategory category, ItemLike wall, ItemLike material) protected RecipeBuilderwallBuilder(RecipeCategory category, ItemLike wall, Ingredient material) protected voidwaxRecipes(FeatureFlagSet requiredFeatures) protected voidwoodenBoat(ItemLike boat, ItemLike material) protected voidwoodFromLogs(ItemLike wood, ItemLike log)
-
Field Details
-
registries
-
items
-
output
-
SHAPE_BUILDERS
-
-
Constructor Details
-
RecipeProvider
-
-
Method Details
-
buildRecipes
protected abstract void buildRecipes() -
generateForEnabledBlockFamilies
-
oneToOneConversionRecipe
-
oneToOneConversionRecipe
-
oreSmelting
protected void oreSmelting(List<ItemLike> ingredients, RecipeCategory category, ItemLike result, float experience, int cookingTime, String group) -
oreBlasting
protected void oreBlasting(List<ItemLike> ingredients, RecipeCategory category, ItemLike result, float experience, int cookingTime, String group) -
oreCooking
protected <T extends AbstractCookingRecipe> void oreCooking(RecipeSerializer<T> serializer, AbstractCookingRecipe.Factory<T> recipeFactory, List<ItemLike> ingredients, RecipeCategory category, ItemLike result, float experience, int cookingTime, String group, String suffix) -
netheriteSmithing
-
trimSmithing
protected void trimSmithing(Item template, ResourceKey<TrimPattern> pattern, ResourceKey<Recipe<?>> recipe) -
twoByTwoPacker
-
threeByThreePacker
protected void threeByThreePacker(RecipeCategory category, ItemLike packed, ItemLike unpacked, String criterionName) -
threeByThreePacker
-
planksFromLog
-
planksFromLogs
-
woodFromLogs
-
woodenBoat
-
chestBoat
-
buttonBuilder
-
doorBuilder
-
fenceBuilder
-
fenceGateBuilder
-
pressurePlate
-
pressurePlateBuilder
protected RecipeBuilder pressurePlateBuilder(RecipeCategory category, ItemLike pressurePlate, Ingredient material) -
slab
-
slabBuilder
-
stairBuilder
-
trapdoorBuilder
-
signBuilder
-
hangingSign
-
colorBlockWithDye
-
colorWithDye
-
carpet
-
bedFromPlanksAndWool
-
banner
-
stainedGlassFromGlassAndDye
-
stainedGlassPaneFromStainedGlass
-
stainedGlassPaneFromGlassPaneAndDye
-
coloredTerracottaFromTerracottaAndDye
-
concretePowder
-
candle
-
wall
-
wallBuilder
-
polished
-
polishedBuilder
protected RecipeBuilder polishedBuilder(RecipeCategory category, ItemLike result, Ingredient material) -
cut
-
cutBuilder
protected ShapedRecipeBuilder cutBuilder(RecipeCategory category, ItemLike cutResult, Ingredient material) -
chiseled
-
mosaicBuilder
-
chiseledBuilder
protected ShapedRecipeBuilder chiseledBuilder(RecipeCategory category, ItemLike chiseledResult, Ingredient material) -
stonecutterResultFromBase
protected void stonecutterResultFromBase(RecipeCategory category, ItemLike result, ItemLike material) -
stonecutterResultFromBase
protected void stonecutterResultFromBase(RecipeCategory category, ItemLike result, ItemLike material, int resultCount) -
smeltingResultFromBase
-
nineBlockStorageRecipes
protected void nineBlockStorageRecipes(RecipeCategory unpackedCategory, ItemLike unpacked, RecipeCategory packedCategory, ItemLike packed) -
nineBlockStorageRecipesWithCustomPacking
protected void nineBlockStorageRecipesWithCustomPacking(RecipeCategory unpackedCategory, ItemLike unpacked, RecipeCategory packedCategory, ItemLike packed, String packedName, String packedGroup) -
nineBlockStorageRecipesRecipesWithCustomUnpacking
protected void nineBlockStorageRecipesRecipesWithCustomUnpacking(RecipeCategory unpackedCategory, ItemLike unpacked, RecipeCategory packedCategory, ItemLike packed, String unpackedName, String unpackedGroup) -
nineBlockStorageRecipes
protected void nineBlockStorageRecipes(RecipeCategory unpackedCategory, ItemLike unpacked, RecipeCategory packedCategory, ItemLike packed, String packedName, @Nullable String packedGroup, String unpackedName, @Nullable String unpackedGroup) -
copySmithingTemplate
-
copySmithingTemplate
-
cookRecipes
protected <T extends AbstractCookingRecipe> void cookRecipes(String cookingMethod, RecipeSerializer<T> cookingSerializer, AbstractCookingRecipe.Factory<T> recipeFactory, int cookingTime) -
simpleCookingRecipe
protected <T extends AbstractCookingRecipe> void simpleCookingRecipe(String cookingMethod, RecipeSerializer<T> cookingSerializer, AbstractCookingRecipe.Factory<T> recipeFactory, int cookingTime, ItemLike material, ItemLike result, float experience) -
waxRecipes
-
grate
-
copperBulb
-
suspiciousStew
-
generateRecipes
-
getBaseBlock
-
insideOf
-
has
protected 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
-
tag
-
shaped
-
shaped
-
shapeless
-
shapeless
-
shapeless
-