Class PotionBrewEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.brewing.PotionBrewEvent
Direct Known Subclasses:
PotionBrewEvent.Post, PotionBrewEvent.Pre

public abstract class PotionBrewEvent extends net.neoforged.bus.api.Event
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    PotionBrewEvent.Post is fired when a potion is brewed in the brewing stand.
    static class 
    PotionBrewEvent.Pre is fired before vanilla brewing takes place.

    Nested classes/interfaces inherited from class net.neoforged.bus.api.Event

    net.neoforged.bus.api.Event.HasResult, net.neoforged.bus.api.Event.Result
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull ItemStack
    getItem(int index)
     
    int
     
    void
    setItem(int index, @NotNull ItemStack stack)
     

    Methods inherited from class net.neoforged.bus.api.Event

    getResult, hasResult, setResult

    Methods inherited from class java.lang.Object

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

  • Constructor Details

  • Method Details

    • getItem

      @NotNull public @NotNull ItemStack getItem(int index)
    • setItem

      public void setItem(int index, @NotNull @NotNull ItemStack stack)
    • getLength

      public int getLength()