Package net.minecraftforge.event.brewing
Class BrewingRecipeRegisterEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.brewing.BrewingRecipeRegisterEvent
public class BrewingRecipeRegisterEvent
extends net.minecraftforge.eventbus.api.Event
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprivate final PotionBrewing.Builder
private final FeatureFlagSet
-
Constructor Summary
ConstructorDescriptionBrewingRecipeRegisterEvent
(PotionBrewing.Builder builder, FeatureFlagSet features) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRecipe
(Ingredient input, Ingredient ingredient, ItemStack output) Adds a recipe to the registry.void
addRecipe
(IBrewingRecipe recipe) Adds a recipe to the registry.Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
builder
-
features
-
-
Constructor Details
-
BrewingRecipeRegisterEvent
-
-
Method Details
-
getBuilder
-
getFeatures
-
addRecipe
Adds a recipe to the registry. Due to the nature of the brewing stand inputs that stack (a.k.a max stack size > 1) are not allowed.- Parameters:
input
- The Ingredient that goes in same slots as the water bottles would.ingredient
- The Ingredient that goes in the same slot as nether wart would.output
- The ItemStack that will replace the input once the brewing is done.
-
addRecipe
Adds a recipe to the registry. Due to the nature of the brewing stand inputs that stack (a.k.a max stack size > 1) are not allowed.
-