Class RecipeGenerator
java.lang.Object
net.minecraft.data.recipes.RecipeProvider
tech.anonymoushacker1279.immersiveweapons.data.recipes.RecipeGenerator
- All Implemented Interfaces:
net.minecraft.data.DataProvider,DataGenUtils
- Direct Known Subclasses:
FamilyGenerator
public class RecipeGenerator
extends net.minecraft.data.recipes.RecipeProvider
implements DataGenUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested 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 net.minecraft.data.recipes.RecipeProvider
advancementPathProvider, lookupProvider, recipePathProviderFields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionRecipeGenerator(net.minecraft.data.PackOutput output, CompletableFuture<net.minecraft.core.HolderLookup.Provider> lookupProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildRecipes(net.minecraft.data.recipes.RecipeOutput output) static voidcreateArrow(net.minecraft.world.item.ArrowItem arrow, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material) static voidcreateGauntlet(net.minecraft.world.item.Item gauntlet, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material) static voidcreateMusketBall(net.minecraft.world.item.Item musketBall, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material) static voidcreatePike(net.minecraft.world.item.Item pike, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, net.minecraft.world.item.Item pikeHead) static voidcreatePikeHead(net.minecraft.world.item.Item pikeHead, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> nugget) static voidcreateSmeltingRecipe(List<net.minecraft.world.level.ItemLike> pIngredients, net.minecraft.world.level.ItemLike pResult, float pExperience, int pCookingTime, @Nullable String pGroup) protected static StringgetConversionRecipeName(net.minecraft.world.level.ItemLike pResult, net.minecraft.world.level.ItemLike pIngredient) protected static StringgetHasName(net.minecraft.world.level.ItemLike pItemLike) protected static StringgetItemName(net.minecraft.world.level.ItemLike pItemLike) protected static StringgetTagName(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tagKey) Methods inherited from class net.minecraft.data.recipes.RecipeProvider
banner, bedFromPlanksAndWool, buildAdvancement, buttonBuilder, candle, carpet, chestBoat, chiseled, chiseledBuilder, colorBlockWithDye, coloredTerracottaFromTerracottaAndDye, concretePowder, cookRecipes, copySmithingTemplate, copySmithingTemplate, cut, cutBuilder, doorBuilder, fenceBuilder, fenceGateBuilder, generateForEnabledBlockFamilies, generateRecipes, getBaseBlock, getBlastingRecipeName, getName, getSimpleRecipeName, getSmeltingRecipeName, 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, saveAdvancement, signBuilder, simpleCookingRecipe, slab, slabBuilder, smeltingResultFromBase, stainedGlassFromGlassAndDye, stainedGlassPaneFromGlassPaneAndDye, stainedGlassPaneFromStainedGlass, stairBuilder, stonecutterResultFromBase, stonecutterResultFromBase, threeByThreePacker, threeByThreePacker, trapdoorBuilder, trimSmithing, twoByTwoPacker, wall, wallBuilder, waxRecipes, woodenBoat, woodFromLogsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tech.anonymoushacker1279.immersiveweapons.data.DataGenUtils
getArmorTrimLocation, getBlockItemLocation, getBowPullingLocation, getBowPullingPredicateLocation, getItemLocation
-
Constructor Details
-
RecipeGenerator
public RecipeGenerator(net.minecraft.data.PackOutput output, CompletableFuture<net.minecraft.core.HolderLookup.Provider> lookupProvider)
-
-
Method Details
-
buildRecipes
protected void buildRecipes(net.minecraft.data.recipes.RecipeOutput output) - Specified by:
buildRecipesin classnet.minecraft.data.recipes.RecipeProvider
-
createArrow
public static void createArrow(net.minecraft.world.item.ArrowItem arrow, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material) -
createPikeHead
public static void createPikeHead(net.minecraft.world.item.Item pikeHead, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> nugget) -
createPike
public static void createPike(net.minecraft.world.item.Item pike, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, net.minecraft.world.item.Item pikeHead) -
createGauntlet
public static void createGauntlet(net.minecraft.world.item.Item gauntlet, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material) -
createMusketBall
public static void createMusketBall(net.minecraft.world.item.Item musketBall, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material) -
createSmeltingRecipe
-
getConversionRecipeName
protected static String getConversionRecipeName(net.minecraft.world.level.ItemLike pResult, net.minecraft.world.level.ItemLike pIngredient) -
getItemName
-
getTagName
-
getHasName
-