Class RecipeLikeProperties
java.lang.Object
com.github.voidleech.oblivion.util.RecipeLikeProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddBrewingRecipe(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 voidaddCompostable(Supplier<? extends net.minecraft.world.level.ItemLike> item, float chance) Adds an item to the composter.static voidaddFurnaceFuel(Supplier<? extends net.minecraft.world.level.ItemLike> item, int burnTime) Adds an item as furnace fuel.static voidaddMix(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.
-
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. UseaddMixotherwise.- 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 fuelburnTime- ticks to burn. A standard furnace recipe takes 200 ticks.
-