Class PaucalRecipeProvider

java.lang.Object
net.minecraft.data.recipes.RecipeProvider
at.petrak.paucal.api.datagen.PaucalRecipeProvider
All Implemented Interfaces:
net.minecraft.data.DataProvider

public abstract class PaucalRecipeProvider extends net.minecraft.data.recipes.RecipeProvider
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.data.DataGenerator
     
    protected final String
     

    Fields inherited from interface net.minecraft.data.DataProvider

    SHA1
  • Constructor Summary

    Constructors
    Constructor
    Description
    PaucalRecipeProvider(net.minecraft.data.DataGenerator gen, String modid)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static net.minecraft.advancements.critereon.InventoryChangeTrigger.TriggerInstance
    hasItem(net.minecraft.advancements.critereon.MinMaxBounds.Ints p_176521_, net.minecraft.world.level.ItemLike p_176522_)
     
    protected static net.minecraft.advancements.critereon.InventoryChangeTrigger.TriggerInstance
    hasItem(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> p_206407_)
     
    protected static net.minecraft.advancements.critereon.InventoryChangeTrigger.TriggerInstance
    hasItem(net.minecraft.world.level.ItemLike p_125978_)
     
    protected @Nullable net.minecraft.world.item.crafting.Ingredient
    ingredientOf(@Nullable net.minecraft.tags.TagKey<net.minecraft.world.item.Item> item)
     
    protected @Nullable net.minecraft.world.item.crafting.Ingredient
    ingredientOf(@Nullable net.minecraft.world.level.ItemLike item)
     
    protected abstract void
    makeRecipes(Consumer<net.minecraft.data.recipes.FinishedRecipe> recipes)
     
    protected net.minecraft.resources.ResourceLocation
    modLoc(String path)
     
    protected void
    packing(net.minecraft.world.level.ItemLike free, net.minecraft.world.level.ItemLike compressed, String freeName, boolean largeSize, Consumer<net.minecraft.data.recipes.FinishedRecipe> recipes)
     
    protected static net.minecraft.advancements.critereon.InventoryChangeTrigger.TriggerInstance
    paucalInventoryTrigger(net.minecraft.advancements.critereon.ItemPredicate... $$0)
    Prefixed with paucal to avoid collisions when Forge ATs RecipeProvider.inventoryTrigger(net.minecraft.advancements.critereon.ItemPredicate...).
    protected net.minecraft.data.recipes.ShapedRecipeBuilder
    ring(net.minecraft.world.level.ItemLike out, int count, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> outer, @Nullable net.minecraft.tags.TagKey<net.minecraft.world.item.Item> inner)
     
    protected net.minecraft.data.recipes.ShapedRecipeBuilder
    ring(net.minecraft.world.level.ItemLike out, int count, net.minecraft.world.item.crafting.Ingredient outer, @Nullable net.minecraft.world.item.crafting.Ingredient inner)
     
    protected net.minecraft.data.recipes.ShapedRecipeBuilder
    ring(net.minecraft.world.level.ItemLike out, int count, net.minecraft.world.level.ItemLike outer, @Nullable net.minecraft.world.level.ItemLike inner)
     
    protected net.minecraft.data.recipes.ShapedRecipeBuilder
    ringAll(net.minecraft.world.level.ItemLike out, int count, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> outer, @Nullable net.minecraft.tags.TagKey<net.minecraft.world.item.Item> inner)
     
    protected net.minecraft.data.recipes.ShapedRecipeBuilder
    ringAll(net.minecraft.world.level.ItemLike out, int count, net.minecraft.world.item.crafting.Ingredient outer, @Nullable net.minecraft.world.item.crafting.Ingredient inner)
     
    protected net.minecraft.data.recipes.ShapedRecipeBuilder
    ringAll(net.minecraft.world.level.ItemLike out, int count, net.minecraft.world.level.ItemLike outer, @Nullable net.minecraft.world.level.ItemLike inner)
     
    protected net.minecraft.data.recipes.ShapedRecipeBuilder
    ringCornered(net.minecraft.world.level.ItemLike out, int count, @Nullable net.minecraft.tags.TagKey<net.minecraft.world.item.Item> cardinal, @Nullable net.minecraft.tags.TagKey<net.minecraft.world.item.Item> diagonal, @Nullable net.minecraft.tags.TagKey<net.minecraft.world.item.Item> inner)
     
    protected net.minecraft.data.recipes.ShapedRecipeBuilder
    ringCornered(net.minecraft.world.level.ItemLike out, int count, @Nullable net.minecraft.world.item.crafting.Ingredient cardinal, @Nullable net.minecraft.world.item.crafting.Ingredient diagonal, @Nullable net.minecraft.world.item.crafting.Ingredient inner)
     
    protected net.minecraft.data.recipes.ShapedRecipeBuilder
    ringCornered(net.minecraft.world.level.ItemLike out, int count, @Nullable net.minecraft.world.level.ItemLike cardinal, @Nullable net.minecraft.world.level.ItemLike diagonal, @Nullable net.minecraft.world.level.ItemLike inner)
     
    protected net.minecraft.data.recipes.ShapedRecipeBuilder
    ringCornerless(net.minecraft.world.level.ItemLike out, int count, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> outer, @Nullable net.minecraft.tags.TagKey<net.minecraft.world.item.Item> inner)
     
    protected net.minecraft.data.recipes.ShapedRecipeBuilder
    ringCornerless(net.minecraft.world.level.ItemLike out, int count, net.minecraft.world.item.crafting.Ingredient outer, @Nullable net.minecraft.world.item.crafting.Ingredient inner)
     
    protected net.minecraft.data.recipes.ShapedRecipeBuilder
    ringCornerless(net.minecraft.world.level.ItemLike out, int count, net.minecraft.world.level.ItemLike outer, @Nullable net.minecraft.world.level.ItemLike inner)
     
    void
    run(net.minecraft.data.HashCache cache)
    [VanillaCopy] RecipeProvider, but changed to use our custom protected method and not the stupid private static one.
    protected net.minecraft.data.recipes.ShapedRecipeBuilder
    stack(net.minecraft.world.level.ItemLike out, int count, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> top, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> bottom)
     
    protected net.minecraft.data.recipes.ShapedRecipeBuilder
    stack(net.minecraft.world.level.ItemLike out, int count, net.minecraft.world.item.crafting.Ingredient top, net.minecraft.world.item.crafting.Ingredient bottom)
     
    protected net.minecraft.data.recipes.ShapedRecipeBuilder
    stack(net.minecraft.world.level.ItemLike out, int count, net.minecraft.world.level.ItemLike top, net.minecraft.world.level.ItemLike bottom)
     
    protected net.minecraft.data.recipes.ShapedRecipeBuilder
    stick(net.minecraft.world.level.ItemLike out, int count, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> input)
     
    protected net.minecraft.data.recipes.ShapedRecipeBuilder
    stick(net.minecraft.world.level.ItemLike out, int count, net.minecraft.world.item.crafting.Ingredient input)
     
    protected net.minecraft.data.recipes.ShapedRecipeBuilder
    stick(net.minecraft.world.level.ItemLike out, int count, net.minecraft.world.level.ItemLike input)
     

    Methods inherited from class net.minecraft.data.recipes.RecipeProvider

    candle, chiseled, chiseledBuilder, cut, cutBuilder, getName, polished, polishedBuilder, wall, wallBuilder

    Methods inherited from class java.lang.Object

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

    • generator

      public final net.minecraft.data.DataGenerator generator
    • modid

      protected final String modid
  • Constructor Details

    • PaucalRecipeProvider

      public PaucalRecipeProvider(net.minecraft.data.DataGenerator gen, String modid)
  • Method Details

    • run

      public void run(net.minecraft.data.HashCache cache)
      [VanillaCopy] RecipeProvider, but changed to use our custom protected method and not the stupid private static one.
      Specified by:
      run in interface net.minecraft.data.DataProvider
      Overrides:
      run in class net.minecraft.data.recipes.RecipeProvider
    • makeRecipes

      protected abstract void makeRecipes(Consumer<net.minecraft.data.recipes.FinishedRecipe> recipes)
    • ring

      protected net.minecraft.data.recipes.ShapedRecipeBuilder ring(net.minecraft.world.level.ItemLike out, int count, net.minecraft.world.item.crafting.Ingredient outer, @Nullable @Nullable net.minecraft.world.item.crafting.Ingredient inner)
    • ring

      protected net.minecraft.data.recipes.ShapedRecipeBuilder ring(net.minecraft.world.level.ItemLike out, int count, net.minecraft.world.level.ItemLike outer, @Nullable @Nullable net.minecraft.world.level.ItemLike inner)
    • ring

      protected net.minecraft.data.recipes.ShapedRecipeBuilder ring(net.minecraft.world.level.ItemLike out, int count, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> outer, @Nullable @Nullable net.minecraft.tags.TagKey<net.minecraft.world.item.Item> inner)
    • ringCornerless

      protected net.minecraft.data.recipes.ShapedRecipeBuilder ringCornerless(net.minecraft.world.level.ItemLike out, int count, net.minecraft.world.item.crafting.Ingredient outer, @Nullable @Nullable net.minecraft.world.item.crafting.Ingredient inner)
    • ringCornerless

      protected net.minecraft.data.recipes.ShapedRecipeBuilder ringCornerless(net.minecraft.world.level.ItemLike out, int count, net.minecraft.world.level.ItemLike outer, @Nullable @Nullable net.minecraft.world.level.ItemLike inner)
    • ringCornerless

      protected net.minecraft.data.recipes.ShapedRecipeBuilder ringCornerless(net.minecraft.world.level.ItemLike out, int count, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> outer, @Nullable @Nullable net.minecraft.tags.TagKey<net.minecraft.world.item.Item> inner)
    • ringAll

      protected net.minecraft.data.recipes.ShapedRecipeBuilder ringAll(net.minecraft.world.level.ItemLike out, int count, net.minecraft.world.item.crafting.Ingredient outer, @Nullable @Nullable net.minecraft.world.item.crafting.Ingredient inner)
    • ringAll

      protected net.minecraft.data.recipes.ShapedRecipeBuilder ringAll(net.minecraft.world.level.ItemLike out, int count, net.minecraft.world.level.ItemLike outer, @Nullable @Nullable net.minecraft.world.level.ItemLike inner)
    • ringAll

      protected net.minecraft.data.recipes.ShapedRecipeBuilder ringAll(net.minecraft.world.level.ItemLike out, int count, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> outer, @Nullable @Nullable net.minecraft.tags.TagKey<net.minecraft.world.item.Item> inner)
    • ringCornered

      protected net.minecraft.data.recipes.ShapedRecipeBuilder ringCornered(net.minecraft.world.level.ItemLike out, int count, @Nullable @Nullable net.minecraft.world.item.crafting.Ingredient cardinal, @Nullable @Nullable net.minecraft.world.item.crafting.Ingredient diagonal, @Nullable @Nullable net.minecraft.world.item.crafting.Ingredient inner)
    • ringCornered

      protected net.minecraft.data.recipes.ShapedRecipeBuilder ringCornered(net.minecraft.world.level.ItemLike out, int count, @Nullable @Nullable net.minecraft.world.level.ItemLike cardinal, @Nullable @Nullable net.minecraft.world.level.ItemLike diagonal, @Nullable @Nullable net.minecraft.world.level.ItemLike inner)
    • ringCornered

      protected net.minecraft.data.recipes.ShapedRecipeBuilder ringCornered(net.minecraft.world.level.ItemLike out, int count, @Nullable @Nullable net.minecraft.tags.TagKey<net.minecraft.world.item.Item> cardinal, @Nullable @Nullable net.minecraft.tags.TagKey<net.minecraft.world.item.Item> diagonal, @Nullable @Nullable net.minecraft.tags.TagKey<net.minecraft.world.item.Item> inner)
    • stack

      protected net.minecraft.data.recipes.ShapedRecipeBuilder stack(net.minecraft.world.level.ItemLike out, int count, net.minecraft.world.item.crafting.Ingredient top, net.minecraft.world.item.crafting.Ingredient bottom)
    • stack

      protected net.minecraft.data.recipes.ShapedRecipeBuilder stack(net.minecraft.world.level.ItemLike out, int count, net.minecraft.world.level.ItemLike top, net.minecraft.world.level.ItemLike bottom)
    • stack

      protected net.minecraft.data.recipes.ShapedRecipeBuilder stack(net.minecraft.world.level.ItemLike out, int count, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> top, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> bottom)
    • stick

      protected net.minecraft.data.recipes.ShapedRecipeBuilder stick(net.minecraft.world.level.ItemLike out, int count, net.minecraft.world.item.crafting.Ingredient input)
    • stick

      protected net.minecraft.data.recipes.ShapedRecipeBuilder stick(net.minecraft.world.level.ItemLike out, int count, net.minecraft.world.level.ItemLike input)
    • stick

      protected net.minecraft.data.recipes.ShapedRecipeBuilder stick(net.minecraft.world.level.ItemLike out, int count, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> input)
    • packing

      protected void packing(net.minecraft.world.level.ItemLike free, net.minecraft.world.level.ItemLike compressed, String freeName, boolean largeSize, Consumer<net.minecraft.data.recipes.FinishedRecipe> recipes)
      Parameters:
      largeSize - True for a 3x3, false for a 2x2
    • modLoc

      protected net.minecraft.resources.ResourceLocation modLoc(String path)
    • ingredientOf

      @Nullable protected @Nullable net.minecraft.world.item.crafting.Ingredient ingredientOf(@Nullable @Nullable net.minecraft.world.level.ItemLike item)
    • ingredientOf

      @Nullable protected @Nullable net.minecraft.world.item.crafting.Ingredient ingredientOf(@Nullable @Nullable net.minecraft.tags.TagKey<net.minecraft.world.item.Item> item)
    • hasItem

      protected static net.minecraft.advancements.critereon.InventoryChangeTrigger.TriggerInstance hasItem(net.minecraft.advancements.critereon.MinMaxBounds.Ints p_176521_, net.minecraft.world.level.ItemLike p_176522_)
    • hasItem

      protected static net.minecraft.advancements.critereon.InventoryChangeTrigger.TriggerInstance hasItem(net.minecraft.world.level.ItemLike p_125978_)
    • hasItem

      protected static net.minecraft.advancements.critereon.InventoryChangeTrigger.TriggerInstance hasItem(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> p_206407_)
    • paucalInventoryTrigger

      protected static net.minecraft.advancements.critereon.InventoryChangeTrigger.TriggerInstance paucalInventoryTrigger(net.minecraft.advancements.critereon.ItemPredicate... $$0)
      Prefixed with paucal to avoid collisions when Forge ATs RecipeProvider.inventoryTrigger(net.minecraft.advancements.critereon.ItemPredicate...).