Class InfuserEvent

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.blocks.InfuserEvent
Direct Known Subclasses:
InfuserEvent.CreateItem

public class InfuserEvent extends net.neoforged.bus.api.Event
Events for the InfuserBlock and InfuserTileEntity.
  • Field Details

  • Constructor Details

  • Method Details

    • getInfuserTileEntity

      public InfuserTileEntity getInfuserTileEntity()
    • getItemsInInfuser

      public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getItemsInInfuser()
      The ItemStacks that hold the items currently being used in the infuser.
      Returns:
      A list of size 4. Index 0 corresonds to the fuel slot. Index 1 and index 2 correspond to the Infuser ingredient slots, and index 3 corresponds to the output slot.