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
Base event for potion brewing through a brewing stand.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getItem

      public ItemStack getItem(int index)
      Returns the item stack stored at the given index.
      Parameters:
      index - the slot index
      Returns:
      the item stack stored at the given index
      Throws:
      IndexOutOfBoundsException - if the index is negative, or equal or greater than the size of the inventory
    • getLength

      public int getLength()
      Returns the size of the brewing stand's inventory.
      Returns:
      the size of the brewing stand's inventory