Class RecipeGenerator

java.lang.Object
net.minecraft.data.server.recipe.RecipeProvider
net.fabricmc.fabric.api.datagen.v1.provider.FabricRecipeProvider
dev.jaxydog.astral.datagen.RecipeGenerator
All Implemented Interfaces:
net.minecraft.data.DataProvider

public class RecipeGenerator extends net.fabricmc.fabric.api.datagen.v1.provider.FabricRecipeProvider
Provides a simple data generation API for recipes.
  • Nested Class Summary

    Nested 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.fabricmc.fabric.api.datagen.v1.provider.FabricRecipeProvider

    output

    Fields inherited from interface net.minecraft.data.DataProvider

    JSON_KEY_SORT_ORDER, JSON_KEY_SORTING_COMPARATOR, LOGGER
  • Constructor Summary

    Constructors
    Constructor
    Description
    RecipeGenerator(net.fabricmc.fabric.api.datagen.v1.FabricDataOutput output)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    generate(Consumer<net.minecraft.data.server.recipe.RecipeJsonProvider> exporter)
     
    void
    generate(net.minecraft.util.Identifier identifier, net.minecraft.data.server.recipe.CraftingRecipeJsonBuilder builder)
     
    static @NotNull RecipeGenerator
     

    Methods inherited from class net.fabricmc.fabric.api.datagen.v1.provider.FabricRecipeProvider

    getRecipeIdentifier, run, withConditions

    Methods inherited from class net.minecraft.data.server.recipe.RecipeProvider

    conditionsFromItem, conditionsFromItem, conditionsFromItemPredicates, conditionsFromTag, convertBetween, createChiseledBlockRecipe, createCondensingRecipe, createCutCopperRecipe, createDoorRecipe, createFenceGateRecipe, createFenceRecipe, createPressurePlateRecipe, createSignRecipe, createSlabRecipe, createStairsRecipe, createTransmutationRecipe, createTrapdoorRecipe, generateCookingRecipes, generateFamilies, generateFamily, getBlastingItemPath, getItemPath, getName, getRecipeName, getSmeltingItemPath, getVariantRecipeInput, getWallRecipe, hasItem, offer2x2CompactingRecipe, offerBannerRecipe, offerBarkBlockRecipe, offerBedRecipe, offerBlasting, offerBoatRecipe, offerCandleDyeingRecipe, offerCarpetRecipe, offerChestBoatRecipe, offerChiseledBlockRecipe, offerCompactingRecipe, offerCompactingRecipe, offerConcretePowderDyeingRecipe, offerCrackingRecipe, offerCutCopperRecipe, offerDyeableRecipes, offerFoodCookingRecipe, offerHangingSignRecipe, offerMosaicRecipe, offerMultipleOptions, offerNetheriteUpgradeRecipe, offerPlanksRecipe, offerPlanksRecipe2, offerPolishedStoneRecipe, offerPressurePlateRecipe, offerReversibleCompactingRecipes, offerReversibleCompactingRecipes, offerReversibleCompactingRecipesWithCompactingRecipeGroup, offerReversibleCompactingRecipesWithReverseRecipeGroup, offerShapelessRecipe, offerSingleOutputShapelessRecipe, offerSlabRecipe, offerSmelting, offerSmithingTemplateCopyingRecipe, offerSmithingTemplateCopyingRecipe, offerSmithingTrimRecipe, offerStainedGlassDyeingRecipe, offerStainedGlassPaneDyeingRecipe, offerStainedGlassPaneRecipe, offerStonecuttingRecipe, offerStonecuttingRecipe, offerTerracottaDyeingRecipe, offerWallRecipe, offerWaxingRecipes, requireEnteringFluid, saveRecipeAdvancement

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RecipeGenerator

      public RecipeGenerator(net.fabricmc.fabric.api.datagen.v1.FabricDataOutput output)
  • Method Details

    • getInstance

      @NotNull public static @NotNull RecipeGenerator getInstance()
    • generate

      public void generate(net.minecraft.util.Identifier identifier, net.minecraft.data.server.recipe.CraftingRecipeJsonBuilder builder)
    • generate

      public void generate(Consumer<net.minecraft.data.server.recipe.RecipeJsonProvider> exporter)
      Specified by:
      generate in class net.fabricmc.fabric.api.datagen.v1.provider.FabricRecipeProvider