Class BrewingBuilder
java.lang.Object
net.ixdarklord.coolcatcore.api.brewing.BrewingBuilder
Collects brewing recipes while
RegisterBrewingRecipesEvent
fires. Custom recipes (addRecipe(net.minecraft.world.item.crafting.Ingredient, net.minecraft.world.item.crafting.Ingredient, net.minecraft.world.item.ItemStack)) are handed to the loader; the vanilla kinds (addMix(net.minecraft.world.item.alchemy.Potion, net.minecraft.world.item.Item, net.minecraft.world.item.alchemy.Potion),
addContainerRecipe(net.minecraft.world.item.Item, net.minecraft.world.item.Item, net.minecraft.world.item.Item)...) go straight into 1.20.1's global PotionBrewing tables.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContainer(@NotNull net.minecraft.world.item.Item container) Lets potions incontainerbe brewed.voidaddContainerRecipe(@NotNull net.minecraft.world.item.Item input, @NotNull net.minecraft.world.item.Item reagent, @NotNull net.minecraft.world.item.Item result) Brewingreagentinto a potion held ininputturns its container intoresult.voidaddMix(@NotNull net.minecraft.world.item.alchemy.Potion input, @NotNull net.minecraft.world.item.Item reagent, @NotNull net.minecraft.world.item.alchemy.Potion result) Brewingreagentinto aninputpotion gives aresultpotion.voidaddRecipe(@NotNull IBrewingRecipe recipe) voidaddRecipe(@NotNull net.minecraft.world.item.crafting.Ingredient input, @NotNull net.minecraft.world.item.crafting.Ingredient ingredient, @NotNull net.minecraft.world.item.ItemStack output) voidaddStartMix(@NotNull net.minecraft.world.item.Item reagent, @NotNull net.minecraft.world.item.alchemy.Potion result) Brewingreagentinto an awkward potion givesresult(and into water, a mundane potion).@NotNull BrewingRecipeRegistrybuild()The custom recipes added so far, as a registry to query.
-
Constructor Details
-
BrewingBuilder
public BrewingBuilder()
-
-
Method Details
-
addRecipe
public void addRecipe(@NotNull @NotNull net.minecraft.world.item.crafting.Ingredient input, @NotNull @NotNull net.minecraft.world.item.crafting.Ingredient ingredient, @NotNull @NotNull net.minecraft.world.item.ItemStack output) -
addRecipe
-
addContainerRecipe
public void addContainerRecipe(@NotNull @NotNull net.minecraft.world.item.Item input, @NotNull @NotNull net.minecraft.world.item.Item reagent, @NotNull @NotNull net.minecraft.world.item.Item result) Brewingreagentinto a potion held ininputturns its container intoresult. -
addContainer
public void addContainer(@NotNull @NotNull net.minecraft.world.item.Item container) Lets potions incontainerbe brewed. -
addMix
public void addMix(@NotNull @NotNull net.minecraft.world.item.alchemy.Potion input, @NotNull @NotNull net.minecraft.world.item.Item reagent, @NotNull @NotNull net.minecraft.world.item.alchemy.Potion result) Brewingreagentinto aninputpotion gives aresultpotion. -
addStartMix
public void addStartMix(@NotNull @NotNull net.minecraft.world.item.Item reagent, @NotNull @NotNull net.minecraft.world.item.alchemy.Potion result) Brewingreagentinto an awkward potion givesresult(and into water, a mundane potion). -
build
The custom recipes added so far, as a registry to query. -
getBrewingRecipes
-