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.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    PotionBrewEvent(net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> stacks)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    getItem(int index)
     
    int
     
    void
    setItem(int index, net.minecraft.world.item.ItemStack stack)
     

    Methods inherited from class java.lang.Object

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

    • stacks

      private net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> stacks
  • Constructor Details

    • PotionBrewEvent

      protected PotionBrewEvent(net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> stacks)
  • Method Details

    • getItem

      public net.minecraft.world.item.ItemStack getItem(int index)
    • setItem

      public void setItem(int index, net.minecraft.world.item.ItemStack stack)
    • getLength

      public int getLength()