Class BrewingBuilder
java.lang.Object
net.ixdarklord.coolcatcore.api.brewing.BrewingBuilder
Brewing recipes made in code, alongside the game's own (data pack recipes since 26.3). Mixes and container recipes
work as vanilla's did: a potion in any container brews into another potion in the same container, and a container
brews into another holding the same potion.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContainer(net.minecraft.world.item.Item container) An item potions can be brewed in by the mixes added here (potions, splash and lingering potions already are).voidaddContainerRecipe(net.minecraft.world.item.Item input, net.minecraft.world.item.Item reagent, net.minecraft.world.item.Item result) A potion ininputbrewed withreagentbecomes the same potion inresult.voidaddMix(net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion> input, net.minecraft.world.item.Item reagent, net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion> result) inputbrewed withreagentbecomesresult, in whichever container it is in.voidaddRecipe(IBrewingRecipe recipe) voidaddRecipe(net.minecraft.world.item.crafting.Ingredient input, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.world.item.ItemStack output) voidaddStartMix(net.minecraft.world.item.Item reagent, net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion> result) An awkward potion brewed withreagentbecomesresult, as vanilla's own start mixes do.
-
Constructor Details
-
BrewingBuilder
public BrewingBuilder()
-
-
Method Details
-
addRecipe
public void addRecipe(net.minecraft.world.item.crafting.Ingredient input, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.world.item.ItemStack output) -
addRecipe
-
addContainer
public void addContainer(net.minecraft.world.item.Item container) An item potions can be brewed in by the mixes added here (potions, splash and lingering potions already are). -
addContainerRecipe
public void addContainerRecipe(net.minecraft.world.item.Item input, net.minecraft.world.item.Item reagent, net.minecraft.world.item.Item result) A potion ininputbrewed withreagentbecomes the same potion inresult. -
addMix
public void addMix(net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion> input, net.minecraft.world.item.Item reagent, net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion> result) inputbrewed withreagentbecomesresult, in whichever container it is in. -
addStartMix
public void addStartMix(net.minecraft.world.item.Item reagent, net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion> result) An awkward potion brewed withreagentbecomesresult, as vanilla's own start mixes do. -
getBrewingRecipes
-