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 pRegistries, RecipeOutput pOutput) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidbedFromPlanksAndWool(ItemLike pBed, ItemLike pWool) protected abstract voidprotected RecipeBuilderbuttonBuilder(ItemLike pButton, Ingredient pMaterial) protected voidprotected voidprotected voidprotected voidchiseled(RecipeCategory pCategory, ItemLike pChiseledResult, ItemLike pMaterial) protected ShapedRecipeBuilderchiseledBuilder(RecipeCategory pCategory, ItemLike pChiseledResult, Ingredient pMaterial) protected voidprotected voidcoloredTerracottaFromTerracottaAndDye(ItemLike pTerracotta, ItemLike pDye) protected voidcolorWithDye(List<Item> pDyes, List<Item> pDyeableItems, Item pDye, String pGroup, RecipeCategory pCategory) protected voidconcretePowder(ItemLike pConcretePowder, ItemLike pDye) protected <T extends AbstractCookingRecipe>
voidcookRecipes(String pCookingMethod, RecipeSerializer<T> pCookingSerializer, AbstractCookingRecipe.Factory<T> pRecipeFactory, int pCookingTime) protected voidcopperBulb(Block pBulbBlock, Block pMaterial) protected voidcopySmithingTemplate(ItemLike pTemplate, Ingredient pBaseItem) protected voidcopySmithingTemplate(ItemLike pTemplate, ItemLike pBaseItem) protected voidcut(RecipeCategory pCategory, ItemLike pCutResult, ItemLike pMaterial) protected ShapedRecipeBuildercutBuilder(RecipeCategory pCategory, ItemLike pCutResult, Ingredient pMaterial) protected RecipeBuilderdoorBuilder(ItemLike pDoor, Ingredient pMaterial) protected RecipeBuilderfenceBuilder(ItemLike pFence, Ingredient pMaterial) protected RecipeBuilderfenceGateBuilder(ItemLike pFenceGate, Ingredient pMaterial) protected voidgenerateForEnabledBlockFamilies(FeatureFlagSet pEnabledFeatures) protected voidgenerateRecipes(BlockFamily pBlockFamily, FeatureFlagSet pRequiredFeatures) protected BlockgetBaseBlock(BlockFamily pFamily, BlockFamily.Variant pVariant) protected static StringgetBlastingRecipeName(ItemLike pItemLike) protected static StringgetConversionRecipeName(ItemLike pResult, ItemLike pIngredient) protected static StringgetHasName(ItemLike pItemLike) protected static StringgetItemName(ItemLike pItemLike) protected static StringgetSimpleRecipeName(ItemLike pItemLike) protected static StringgetSmeltingRecipeName(ItemLike pItemLike) protected voidprotected voidhangingSign(ItemLike pSign, ItemLike pMaterial) protected Criterion<InventoryChangeTrigger.TriggerInstance> has(MinMaxBounds.Ints pCount, ItemLike pItem) protected Criterion<InventoryChangeTrigger.TriggerInstance> protected Criterion<InventoryChangeTrigger.TriggerInstance> protected static Criterion<EnterBlockTrigger.TriggerInstance> protected static Criterion<InventoryChangeTrigger.TriggerInstance> inventoryTrigger(ItemPredicate... pPredicates) protected static Criterion<InventoryChangeTrigger.TriggerInstance> inventoryTrigger(ItemPredicate.Builder... pItems) protected voidmosaicBuilder(RecipeCategory pCategory, ItemLike pResult, ItemLike pMaterial) protected voidnetheriteSmithing(Item pIngredientItem, RecipeCategory pCategory, Item pResultItem) protected voidnineBlockStorageRecipes(RecipeCategory pUnpackedCategory, ItemLike pUnpacked, RecipeCategory pPackedCategory, ItemLike pPacked) protected voidnineBlockStorageRecipes(RecipeCategory pUnpackedCategory, ItemLike pUnpacked, RecipeCategory pPackedCategory, ItemLike pPacked, String pPackedName, String pPackedGroup, String pUnpackedName, String pUnpackedGroup) protected voidnineBlockStorageRecipesRecipesWithCustomUnpacking(RecipeCategory pUnpackedCategory, ItemLike pUnpacked, RecipeCategory pPackedCategory, ItemLike pPacked, String pUnpackedName, String pUnpackedGroup) protected voidnineBlockStorageRecipesWithCustomPacking(RecipeCategory pUnpackedCategory, ItemLike pUnpacked, RecipeCategory pPackedCategory, ItemLike pPacked, String pPackedName, String pPackedGroup) protected voidoneToOneConversionRecipe(ItemLike pResult, ItemLike pIngredient, String pGroup) protected voidoneToOneConversionRecipe(ItemLike pResult, ItemLike pIngredient, String pGroup, int pResultCount) protected voidoreBlasting(List<ItemLike> pIngredients, RecipeCategory pCategory, ItemLike pResult, float pExperience, int pCookingTime, String pGroup) protected <T extends AbstractCookingRecipe>
voidoreCooking(RecipeSerializer<T> pSerializer, AbstractCookingRecipe.Factory<T> pRecipeFactory, List<ItemLike> pIngredients, RecipeCategory pCategory, ItemLike pResult, float pExperience, int pCookingTime, String pGroup, String pSuffix) protected voidoreSmelting(List<ItemLike> pIngredients, RecipeCategory pCategory, ItemLike pResult, float pExperience, int pCookingTime, String pGroup) protected voidplanksFromLog(ItemLike pPlanks, TagKey<Item> pLogs, int pResultCount) protected voidplanksFromLogs(ItemLike pPlanks, TagKey<Item> pLogs, int pResult) protected voidpolished(RecipeCategory pCategory, ItemLike pResult, ItemLike pMaterial) protected RecipeBuilderpolishedBuilder(RecipeCategory pCategory, ItemLike pResult, Ingredient pMaterial) protected voidpressurePlate(ItemLike pPressurePlate, ItemLike pMaterial) protected RecipeBuilderpressurePlateBuilder(RecipeCategory pCategory, ItemLike pPressurePlate, Ingredient pMaterial) protected ShapedRecipeBuildershaped(RecipeCategory pCategory, ItemLike pResult) protected ShapedRecipeBuildershaped(RecipeCategory pCategory, ItemLike pResult, int pCount) protected ShapelessRecipeBuildershapeless(RecipeCategory pCategory, ItemStack pResult) protected ShapelessRecipeBuildershapeless(RecipeCategory pCategory, ItemLike pResult) protected ShapelessRecipeBuildershapeless(RecipeCategory pCategory, ItemLike pResult, int pCount) protected RecipeBuildersignBuilder(ItemLike pSign, Ingredient pMaterial) protected <T extends AbstractCookingRecipe>
voidsimpleCookingRecipe(String pCookingMethod, RecipeSerializer<T> pCookingSerializer, AbstractCookingRecipe.Factory<T> pRecipeFactory, int pCookingTime, ItemLike pMaterial, ItemLike pResult, float pExperience) protected voidslab(RecipeCategory pCategory, ItemLike pSlab, ItemLike pMaterial) protected RecipeBuilderslabBuilder(RecipeCategory pCategory, ItemLike pSlab, Ingredient pMaterial) protected voidsmeltingResultFromBase(ItemLike pResult, ItemLike pIngredient) protected voidstainedGlassFromGlassAndDye(ItemLike pStainedGlass, ItemLike pDye) protected voidstainedGlassPaneFromGlassPaneAndDye(ItemLike pStainedGlassPane, ItemLike pDye) protected voidstainedGlassPaneFromStainedGlass(ItemLike pStainedGlassPane, ItemLike pStainedGlass) protected RecipeBuilderstairBuilder(ItemLike pStairs, Ingredient pMaterial) protected voidstonecutterResultFromBase(RecipeCategory pCategory, ItemLike pResult, ItemLike pMaterial) protected voidstonecutterResultFromBase(RecipeCategory pCategory, ItemLike pResult, ItemLike pMaterial, int pResultCount) protected voidsuspiciousStew(Item pFlowerItem, SuspiciousEffectHolder pEffect) protected Ingredientprotected voidthreeByThreePacker(RecipeCategory pCategory, ItemLike pPacked, ItemLike pUnpacked) protected voidthreeByThreePacker(RecipeCategory pCategory, ItemLike pPacked, ItemLike pUnpacked, String pCriterionName) protected RecipeBuildertrapdoorBuilder(ItemLike pTrapdoor, Ingredient pMaterial) protected voidtrimSmithing(Item pTemplate, ResourceKey<TrimPattern> pPattern, ResourceKey<Recipe<?>> pRecipe) protected voidtwoByTwoPacker(RecipeCategory pCategory, ItemLike pPacked, ItemLike pUnpacked) protected voidwall(RecipeCategory pCategory, ItemLike pWall, ItemLike pMaterial) protected RecipeBuilderwallBuilder(RecipeCategory pCategory, ItemLike pWall, Ingredient pMaterial) protected voidwaxRecipes(FeatureFlagSet pRequiredFeatures) protected voidwoodenBoat(ItemLike pBoat, ItemLike pMaterial) protected voidwoodFromLogs(ItemLike pWood, ItemLike pLog)
-
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> pIngredients, RecipeCategory pCategory, ItemLike pResult, float pExperience, int pCookingTime, String pGroup) -
oreBlasting
protected void oreBlasting(List<ItemLike> pIngredients, RecipeCategory pCategory, ItemLike pResult, float pExperience, int pCookingTime, String pGroup) -
oreCooking
protected <T extends AbstractCookingRecipe> void oreCooking(RecipeSerializer<T> pSerializer, AbstractCookingRecipe.Factory<T> pRecipeFactory, List<ItemLike> pIngredients, RecipeCategory pCategory, ItemLike pResult, float pExperience, int pCookingTime, String pGroup, String pSuffix) -
netheriteSmithing
-
trimSmithing
protected void trimSmithing(Item pTemplate, ResourceKey<TrimPattern> pPattern, ResourceKey<Recipe<?>> pRecipe) -
twoByTwoPacker
-
threeByThreePacker
protected void threeByThreePacker(RecipeCategory pCategory, ItemLike pPacked, ItemLike pUnpacked, String pCriterionName) -
threeByThreePacker
-
planksFromLog
-
planksFromLogs
-
woodFromLogs
-
woodenBoat
-
chestBoat
-
buttonBuilder
-
doorBuilder
-
fenceBuilder
-
fenceGateBuilder
-
pressurePlate
-
pressurePlateBuilder
protected RecipeBuilder pressurePlateBuilder(RecipeCategory pCategory, ItemLike pPressurePlate, Ingredient pMaterial) -
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 pCategory, ItemLike pResult, Ingredient pMaterial) -
cut
-
cutBuilder
protected ShapedRecipeBuilder cutBuilder(RecipeCategory pCategory, ItemLike pCutResult, Ingredient pMaterial) -
chiseled
-
mosaicBuilder
-
chiseledBuilder
protected ShapedRecipeBuilder chiseledBuilder(RecipeCategory pCategory, ItemLike pChiseledResult, Ingredient pMaterial) -
stonecutterResultFromBase
protected void stonecutterResultFromBase(RecipeCategory pCategory, ItemLike pResult, ItemLike pMaterial) -
stonecutterResultFromBase
protected void stonecutterResultFromBase(RecipeCategory pCategory, ItemLike pResult, ItemLike pMaterial, int pResultCount) -
smeltingResultFromBase
-
nineBlockStorageRecipes
protected void nineBlockStorageRecipes(RecipeCategory pUnpackedCategory, ItemLike pUnpacked, RecipeCategory pPackedCategory, ItemLike pPacked) -
nineBlockStorageRecipesWithCustomPacking
protected void nineBlockStorageRecipesWithCustomPacking(RecipeCategory pUnpackedCategory, ItemLike pUnpacked, RecipeCategory pPackedCategory, ItemLike pPacked, String pPackedName, String pPackedGroup) -
nineBlockStorageRecipesRecipesWithCustomUnpacking
protected void nineBlockStorageRecipesRecipesWithCustomUnpacking(RecipeCategory pUnpackedCategory, ItemLike pUnpacked, RecipeCategory pPackedCategory, ItemLike pPacked, String pUnpackedName, String pUnpackedGroup) -
nineBlockStorageRecipes
protected void nineBlockStorageRecipes(RecipeCategory pUnpackedCategory, ItemLike pUnpacked, RecipeCategory pPackedCategory, ItemLike pPacked, String pPackedName, @Nullable String pPackedGroup, String pUnpackedName, @Nullable String pUnpackedGroup) -
copySmithingTemplate
-
copySmithingTemplate
-
cookRecipes
protected <T extends AbstractCookingRecipe> void cookRecipes(String pCookingMethod, RecipeSerializer<T> pCookingSerializer, AbstractCookingRecipe.Factory<T> pRecipeFactory, int pCookingTime) -
simpleCookingRecipe
protected <T extends AbstractCookingRecipe> void simpleCookingRecipe(String pCookingMethod, RecipeSerializer<T> pCookingSerializer, AbstractCookingRecipe.Factory<T> pRecipeFactory, int pCookingTime, ItemLike pMaterial, ItemLike pResult, float pExperience) -
waxRecipes
-
grate
-
copperBulb
-
suspiciousStew
-
generateRecipes
-
getBaseBlock
-
insideOf
-
has
protected Criterion<InventoryChangeTrigger.TriggerInstance> has(MinMaxBounds.Ints pCount, ItemLike pItem) -
has
-
has
-
inventoryTrigger
protected static Criterion<InventoryChangeTrigger.TriggerInstance> inventoryTrigger(ItemPredicate.Builder... pItems) -
inventoryTrigger
protected static Criterion<InventoryChangeTrigger.TriggerInstance> inventoryTrigger(ItemPredicate... pPredicates) -
getHasName
-
getItemName
-
getSimpleRecipeName
-
getConversionRecipeName
-
getSmeltingRecipeName
-
getBlastingRecipeName
-
tag
-
shaped
-
shaped
-
shapeless
-
shapeless
-
shapeless
-