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 interface
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HolderGetter
<Item> protected final RecipeOutput
protected final HolderLookup.Provider
private static final Map
<BlockFamily.Variant, RecipeProvider.FamilyRecipeProvider> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RecipeProvider
(HolderLookup.Provider pRegistries, RecipeOutput pOutput) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
bedFromPlanksAndWool
(ItemLike pBed, ItemLike pWool) protected abstract void
protected RecipeBuilder
buttonBuilder
(ItemLike pButton, Ingredient pMaterial) protected void
protected void
protected void
protected void
chiseled
(RecipeCategory pCategory, ItemLike pChiseledResult, ItemLike pMaterial) protected ShapedRecipeBuilder
chiseledBuilder
(RecipeCategory pCategory, ItemLike pChiseledResult, Ingredient pMaterial) protected void
coloredTerracottaFromTerracottaAndDye
(ItemLike pTerracotta, ItemLike pDye) protected void
colorItemWithDye
(List<Item> pDyeItems, List<Item> pDyeableItems, String pGroup, RecipeCategory pCategory) protected void
colorWithDye
(List<Item> pDyes, List<Item> pDyeableItems, Item pDye, String pGroup, RecipeCategory pCategory) protected void
concretePowder
(ItemLike pConcretePowder, ItemLike pDye) protected <T extends AbstractCookingRecipe>
voidcookRecipes
(String pCookingMethod, RecipeSerializer<T> pCookingSerializer, AbstractCookingRecipe.Factory<T> pRecipeFactory, int pCookingTime) protected void
copperBulb
(Block pBulbBlock, Block pMaterial) protected void
copySmithingTemplate
(ItemLike pTemplate, Ingredient pBaseItem) protected void
copySmithingTemplate
(ItemLike pTemplate, ItemLike pBaseItem) protected void
cut
(RecipeCategory pCategory, ItemLike pCutResult, ItemLike pMaterial) protected ShapedRecipeBuilder
cutBuilder
(RecipeCategory pCategory, ItemLike pCutResult, Ingredient pMaterial) protected RecipeBuilder
doorBuilder
(ItemLike pDoor, Ingredient pMaterial) protected void
protected RecipeBuilder
fenceBuilder
(ItemLike pFence, Ingredient pMaterial) protected RecipeBuilder
fenceGateBuilder
(ItemLike pFenceGate, Ingredient pMaterial) protected void
generateForEnabledBlockFamilies
(FeatureFlagSet pEnabledFeatures) protected void
generateRecipes
(BlockFamily pBlockFamily, FeatureFlagSet pRequiredFeatures) protected Block
getBaseBlock
(BlockFamily pFamily, BlockFamily.Variant pVariant) protected static String
getBlastingRecipeName
(ItemLike pItemLike) protected static String
getConversionRecipeName
(ItemLike pResult, ItemLike pIngredient) protected static String
getHasName
(ItemLike pItemLike) protected static String
getItemName
(ItemLike pItemLike) protected static String
getSimpleRecipeName
(ItemLike pItemLike) protected static String
getSmeltingRecipeName
(ItemLike pItemLike) protected void
protected void
hangingSign
(ItemLike pSign, ItemLike pMaterial) protected void
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 void
mosaicBuilder
(RecipeCategory pCategory, ItemLike pResult, ItemLike pMaterial) protected void
netheriteSmithing
(Item pIngredientItem, RecipeCategory pCategory, Item pResultItem) protected void
nineBlockStorageRecipes
(RecipeCategory pUnpackedCategory, ItemLike pUnpacked, RecipeCategory pPackedCategory, ItemLike pPacked) protected void
nineBlockStorageRecipes
(RecipeCategory pUnpackedCategory, ItemLike pUnpacked, RecipeCategory pPackedCategory, ItemLike pPacked, String pPackedName, String pPackedGroup, String pUnpackedName, String pUnpackedGroup) protected void
nineBlockStorageRecipesRecipesWithCustomUnpacking
(RecipeCategory pUnpackedCategory, ItemLike pUnpacked, RecipeCategory pPackedCategory, ItemLike pPacked, String pUnpackedName, String pUnpackedGroup) protected void
nineBlockStorageRecipesWithCustomPacking
(RecipeCategory pUnpackedCategory, ItemLike pUnpacked, RecipeCategory pPackedCategory, ItemLike pPacked, String pPackedName, String pPackedGroup) protected void
oneToOneConversionRecipe
(ItemLike pResult, ItemLike pIngredient, String pGroup) protected void
oneToOneConversionRecipe
(ItemLike pResult, ItemLike pIngredient, String pGroup, int pResultCount) protected void
oreBlasting
(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 void
oreSmelting
(List<ItemLike> pIngredients, RecipeCategory pCategory, ItemLike pResult, float pExperience, int pCookingTime, String pGroup) protected void
planksFromLog
(ItemLike pPlanks, TagKey<Item> pLogs, int pResultCount) protected void
planksFromLogs
(ItemLike pPlanks, TagKey<Item> pLogs, int pResult) protected void
polished
(RecipeCategory pCategory, ItemLike pResult, ItemLike pMaterial) protected RecipeBuilder
polishedBuilder
(RecipeCategory pCategory, ItemLike pResult, Ingredient pMaterial) protected void
pressurePlate
(ItemLike pPressurePlate, ItemLike pMaterial) protected RecipeBuilder
pressurePlateBuilder
(RecipeCategory pCategory, ItemLike pPressurePlate, Ingredient pMaterial) protected ShapedRecipeBuilder
shaped
(RecipeCategory pCategory, ItemLike pResult) protected ShapedRecipeBuilder
shaped
(RecipeCategory pCategory, ItemLike pResult, int pCount) protected ShapelessRecipeBuilder
shapeless
(RecipeCategory pCategory, ItemStack pResult) protected ShapelessRecipeBuilder
shapeless
(RecipeCategory pCategory, ItemLike pResult) protected ShapelessRecipeBuilder
shapeless
(RecipeCategory pCategory, ItemLike pResult, int pCount) protected RecipeBuilder
signBuilder
(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 void
slab
(RecipeCategory pCategory, ItemLike pSlab, ItemLike pMaterial) protected RecipeBuilder
slabBuilder
(RecipeCategory pCategory, ItemLike pSlab, Ingredient pMaterial) protected void
smeltingResultFromBase
(ItemLike pResult, ItemLike pIngredient) protected void
stainedGlassFromGlassAndDye
(ItemLike pStainedGlass, ItemLike pDye) protected void
stainedGlassPaneFromGlassPaneAndDye
(ItemLike pStainedGlassPane, ItemLike pDye) protected void
stainedGlassPaneFromStainedGlass
(ItemLike pStainedGlassPane, ItemLike pStainedGlass) protected RecipeBuilder
stairBuilder
(ItemLike pStairs, Ingredient pMaterial) protected void
stonecutterResultFromBase
(RecipeCategory pCategory, ItemLike pResult, ItemLike pMaterial) protected void
stonecutterResultFromBase
(RecipeCategory pCategory, ItemLike pResult, ItemLike pMaterial, int pResultCount) protected void
suspiciousStew
(Item pFlowerItem, SuspiciousEffectHolder pEffect) protected Ingredient
protected void
threeByThreePacker
(RecipeCategory pCategory, ItemLike pPacked, ItemLike pUnpacked) protected void
threeByThreePacker
(RecipeCategory pCategory, ItemLike pPacked, ItemLike pUnpacked, String pCriterionName) protected RecipeBuilder
trapdoorBuilder
(ItemLike pTrapdoor, Ingredient pMaterial) protected void
trimSmithing
(Item pTemplate, ResourceKey<TrimPattern> pPattern, ResourceKey<Recipe<?>> pRecipe) protected void
twoByTwoPacker
(RecipeCategory pCategory, ItemLike pPacked, ItemLike pUnpacked) protected void
wall
(RecipeCategory pCategory, ItemLike pWall, ItemLike pMaterial) protected RecipeBuilder
wallBuilder
(RecipeCategory pCategory, ItemLike pWall, Ingredient pMaterial) protected void
waxRecipes
(FeatureFlagSet pRequiredFeatures) protected void
woodenBoat
(ItemLike pBoat, ItemLike pMaterial) protected void
woodFromLogs
(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
-
colorItemWithDye
-
colorWithDye
-
carpet
-
bedFromPlanksAndWool
-
banner
-
stainedGlassFromGlassAndDye
-
dryGhast
-
harness
-
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
-