Class RecipeLikeProperties

java.lang.Object
com.github.voidleech.oblivion.util.RecipeLikeProperties

public class RecipeLikeProperties extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addBrewingRecipe(Supplier<? extends net.minecraft.world.item.crafting.Ingredient> input, Supplier<? extends net.minecraft.world.item.crafting.Ingredient> ingredient, Supplier<? extends net.minecraft.world.item.ItemStack> output)
    Adds a brewing recipe.
    static void
    addCompostable(Supplier<? extends net.minecraft.world.level.ItemLike> item, float chance)
    Adds an item to the composter.
    static void
    addFurnaceFuel(Supplier<? extends net.minecraft.world.level.ItemLike> item, int burnTime)
    Adds an item as furnace fuel.
    static void
    addMix(Supplier<? extends net.minecraft.world.item.alchemy.Potion> input, Supplier<? extends net.minecraft.world.item.Item> ingredient, Supplier<? extends net.minecraft.world.item.alchemy.Potion> output)
    Adds a brewing mix.

    Methods inherited from class java.lang.Object

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

    • RecipeLikeProperties

      public RecipeLikeProperties()
  • Method Details

    • addMix

      public static void addMix(Supplier<? extends net.minecraft.world.item.alchemy.Potion> input, Supplier<? extends net.minecraft.world.item.Item> ingredient, Supplier<? extends net.minecraft.world.item.alchemy.Potion> output)
      Adds a brewing mix.
      Parameters:
      input -
      ingredient -
      output -
    • addBrewingRecipe

      public static void addBrewingRecipe(Supplier<? extends net.minecraft.world.item.crafting.Ingredient> input, Supplier<? extends net.minecraft.world.item.crafting.Ingredient> ingredient, Supplier<? extends net.minecraft.world.item.ItemStack> output)
      Adds a brewing recipe. For brewing that has a non-potion as input or output. Use addMix otherwise.
      Parameters:
      input -
      ingredient -
      output -
    • addCompostable

      public static void addCompostable(Supplier<? extends net.minecraft.world.level.ItemLike> item, float chance)
      Adds an item to the composter.
      Parameters:
      item - to be composted.
      chance - to produce a layer in the composter.
    • addFurnaceFuel

      public static void addFurnaceFuel(Supplier<? extends net.minecraft.world.level.ItemLike> item, int burnTime)
      Adds an item as furnace fuel. Use only when getBurnTime somehow isn't available to override.
      Parameters:
      item - to be used as fuel
      burnTime - ticks to burn. A standard furnace recipe takes 200 ticks.