Class CrushingRecipeGen
java.lang.Object
net.minecraft.data.recipes.RecipeProvider
com.simibubi.create.api.data.recipe.BaseRecipeProvider
com.simibubi.create.api.data.recipe.ProcessingRecipeGen<ProcessingRecipeParams,CrushingRecipe,StandardProcessingRecipe.Builder<CrushingRecipe>>
com.simibubi.create.api.data.recipe.StandardProcessingRecipeGen<CrushingRecipe>
com.simibubi.create.api.data.recipe.CrushingRecipeGen
- All Implemented Interfaces:
net.minecraft.data.DataProvider
- Direct Known Subclasses:
CreateCrushingRecipeGen
The base class for Crushing recipe generation.
Addons should extend this and use the
ProcessingRecipeGen.create(java.lang.String, java.util.function.Supplier<net.minecraft.world.level.ItemLike>, java.util.function.UnaryOperator<B>) methods
or the helper methods contained in this class to make recipes.
For an example of how you might do this, see Create's implementation: CreateCrushingRecipeGen.
Needs to be added to a registered recipe provider to do anything, see CreateRecipeProvider-
Nested Class Summary
Nested classes/interfaces inherited from class com.simibubi.create.api.data.recipe.BaseRecipeProvider
BaseRecipeProvider.GeneratedRecipeNested classes/interfaces inherited from interface net.minecraft.data.DataProvider
net.minecraft.data.DataProvider.Factory<T extends net.minecraft.data.DataProvider> -
Field Summary
Fields inherited from class com.simibubi.create.api.data.recipe.BaseRecipeProvider
all, modidFields inherited from class net.minecraft.data.recipes.RecipeProvider
advancementPathProvider, recipePathProviderFields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, INDENT_WIDTH, KEY_COMPARATOR, LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionCrushingRecipeGen(net.minecraft.data.PackOutput output, CompletableFuture<net.minecraft.core.HolderLookup.Provider> registries, String defaultNamespace) -
Method Summary
Modifier and TypeMethodDescriptionprotected BaseRecipeProvider.GeneratedRecipedeepslateOre(Supplier<net.minecraft.world.level.ItemLike> ore, Supplier<net.minecraft.world.level.ItemLike> raw, float expectedAmount, int duration) protected AllRecipeTypesprotected BaseRecipeProvider.GeneratedRecipemineralRecycling(AllPaletteStoneTypes type, Supplier<net.minecraft.world.level.ItemLike> crushed, Supplier<net.minecraft.world.level.ItemLike> nugget, float chance) protected BaseRecipeProvider.GeneratedRecipemineralRecycling(AllPaletteStoneTypes type, UnaryOperator<StandardProcessingRecipe.Builder<CrushingRecipe>> transform) protected BaseRecipeProvider.GeneratedRecipemoddedOre(CompatMetals metal, Supplier<net.minecraft.world.level.ItemLike> result) protected BaseRecipeProvider.GeneratedRecipemoddedRawOre(CompatMetals metal, Supplier<net.minecraft.world.level.ItemLike> result) protected BaseRecipeProvider.GeneratedRecipemoddedRawOre(CompatMetals metal, Supplier<net.minecraft.world.level.ItemLike> result, boolean block) protected BaseRecipeProvider.GeneratedRecipemoddedRawOreBlock(CompatMetals metal, Supplier<net.minecraft.world.level.ItemLike> result) protected BaseRecipeProvider.GeneratedRecipenetherOre(Supplier<net.minecraft.world.level.ItemLike> ore, Supplier<net.minecraft.world.level.ItemLike> raw, float expectedAmount, int duration) protected BaseRecipeProvider.GeneratedRecipeore(net.minecraft.world.level.ItemLike stoneType, Supplier<net.minecraft.world.level.ItemLike> ore, Supplier<net.minecraft.world.level.ItemLike> raw, float expectedAmount, int duration) protected BaseRecipeProvider.GeneratedReciperawOre(String metalName, Supplier<net.minecraft.tags.TagKey<net.minecraft.world.item.Item>> input, Supplier<net.minecraft.world.level.ItemLike> result, boolean block, int xpMult) protected BaseRecipeProvider.GeneratedReciperawOre(String metalName, Supplier<net.minecraft.tags.TagKey<net.minecraft.world.item.Item>> input, Supplier<net.minecraft.world.level.ItemLike> result, int xpMult) protected BaseRecipeProvider.GeneratedReciperawOreBlock(String metalName, Supplier<net.minecraft.tags.TagKey<net.minecraft.world.item.Item>> input, Supplier<net.minecraft.world.level.ItemLike> result, int xpMult) protected BaseRecipeProvider.GeneratedRecipestoneOre(Supplier<net.minecraft.world.level.ItemLike> ore, Supplier<net.minecraft.world.level.ItemLike> raw, float expectedAmount, int duration) Methods inherited from class com.simibubi.create.api.data.recipe.StandardProcessingRecipeGen
getBuilder, getSerializerMethods inherited from class com.simibubi.create.api.data.recipe.ProcessingRecipeGen
create, create, create, create, createWithDeferredId, getName, idWithSuffixMethods inherited from class com.simibubi.create.api.data.recipe.BaseRecipeProvider
asResource, buildRecipes, registerMethods inherited from class net.minecraft.data.recipes.RecipeProvider
banner, bedFromPlanksAndWool, buildAdvancement, buildAdvancement, buildRecipes, buttonBuilder, candle, carpet, chestBoat, chiseled, chiseledBuilder, colorBlockWithDye, coloredTerracottaFromTerracottaAndDye, concretePowder, cookRecipes, copperBulb, copySmithingTemplate, copySmithingTemplate, copySmithingTemplate, cut, cutBuilder, doorBuilder, fenceBuilder, fenceGateBuilder, generateForEnabledBlockFamilies, generateRecipes, getBaseBlock, getBlastingRecipeName, getConversionRecipeName, getHasName, getItemName, getSimpleRecipeName, getSmeltingRecipeName, grate, hangingSign, has, has, has, insideOf, inventoryTrigger, inventoryTrigger, mosaicBuilder, netheriteSmithing, nineBlockStorageRecipes, nineBlockStorageRecipes, nineBlockStorageRecipesRecipesWithCustomUnpacking, nineBlockStorageRecipesWithCustomPacking, oneToOneConversionRecipe, oneToOneConversionRecipe, oreBlasting, oreCooking, oreSmelting, planksFromLog, planksFromLogs, polished, polishedBuilder, pressurePlate, pressurePlateBuilder, run, run, signBuilder, simpleCookingRecipe, slab, slabBuilder, smeltingResultFromBase, stainedGlassFromGlassAndDye, stainedGlassPaneFromGlassPaneAndDye, stainedGlassPaneFromStainedGlass, stairBuilder, stonecutterResultFromBase, stonecutterResultFromBase, threeByThreePacker, threeByThreePacker, trapdoorBuilder, trimSmithing, twoByTwoPacker, wall, wallBuilder, waxRecipes, woodenBoat, woodFromLogs
-
Constructor Details
-
CrushingRecipeGen
public CrushingRecipeGen(net.minecraft.data.PackOutput output, CompletableFuture<net.minecraft.core.HolderLookup.Provider> registries, String defaultNamespace)
-
-
Method Details
-
mineralRecycling
protected BaseRecipeProvider.GeneratedRecipe mineralRecycling(AllPaletteStoneTypes type, Supplier<net.minecraft.world.level.ItemLike> crushed, Supplier<net.minecraft.world.level.ItemLike> nugget, float chance) -
mineralRecycling
protected BaseRecipeProvider.GeneratedRecipe mineralRecycling(AllPaletteStoneTypes type, UnaryOperator<StandardProcessingRecipe.Builder<CrushingRecipe>> transform) -
stoneOre
protected BaseRecipeProvider.GeneratedRecipe stoneOre(Supplier<net.minecraft.world.level.ItemLike> ore, Supplier<net.minecraft.world.level.ItemLike> raw, float expectedAmount, int duration) -
deepslateOre
protected BaseRecipeProvider.GeneratedRecipe deepslateOre(Supplier<net.minecraft.world.level.ItemLike> ore, Supplier<net.minecraft.world.level.ItemLike> raw, float expectedAmount, int duration) -
netherOre
protected BaseRecipeProvider.GeneratedRecipe netherOre(Supplier<net.minecraft.world.level.ItemLike> ore, Supplier<net.minecraft.world.level.ItemLike> raw, float expectedAmount, int duration) -
ore
protected BaseRecipeProvider.GeneratedRecipe ore(net.minecraft.world.level.ItemLike stoneType, Supplier<net.minecraft.world.level.ItemLike> ore, Supplier<net.minecraft.world.level.ItemLike> raw, float expectedAmount, int duration) -
moddedOre
protected BaseRecipeProvider.GeneratedRecipe moddedOre(CompatMetals metal, Supplier<net.minecraft.world.level.ItemLike> result) -
rawOre
protected BaseRecipeProvider.GeneratedRecipe rawOre(String metalName, Supplier<net.minecraft.tags.TagKey<net.minecraft.world.item.Item>> input, Supplier<net.minecraft.world.level.ItemLike> result, int xpMult) -
rawOreBlock
protected BaseRecipeProvider.GeneratedRecipe rawOreBlock(String metalName, Supplier<net.minecraft.tags.TagKey<net.minecraft.world.item.Item>> input, Supplier<net.minecraft.world.level.ItemLike> result, int xpMult) -
rawOre
protected BaseRecipeProvider.GeneratedRecipe rawOre(String metalName, Supplier<net.minecraft.tags.TagKey<net.minecraft.world.item.Item>> input, Supplier<net.minecraft.world.level.ItemLike> result, boolean block, int xpMult) -
moddedRawOre
protected BaseRecipeProvider.GeneratedRecipe moddedRawOre(CompatMetals metal, Supplier<net.minecraft.world.level.ItemLike> result) -
moddedRawOreBlock
protected BaseRecipeProvider.GeneratedRecipe moddedRawOreBlock(CompatMetals metal, Supplier<net.minecraft.world.level.ItemLike> result) -
moddedRawOre
protected BaseRecipeProvider.GeneratedRecipe moddedRawOre(CompatMetals metal, Supplier<net.minecraft.world.level.ItemLike> result, boolean block) -
getRecipeType
- Specified by:
getRecipeTypein classProcessingRecipeGen<ProcessingRecipeParams,CrushingRecipe, StandardProcessingRecipe.Builder<CrushingRecipe>>
-