Class InfuserEvent.CreateItem.Pre

java.lang.Object
net.neoforged.bus.api.Event
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Enclosing class:
InfuserEvent.CreateItem

public static class InfuserEvent.CreateItem.Pre extends InfuserEvent.CreateItem implements net.neoforged.bus.api.ICancellableEvent
This event fires when the Infuser is ready to consume the ingredients given to it and create a new item from those ingredients. The output of the recipe can be changed with this event. Canceling this event will prevent the ingredients from being consumed and the output being created.
  • Constructor Details

  • Method Details

    • setRecipeOutput

      public void setRecipeOutput(net.minecraft.world.item.ItemStack itemStack)
      Change what item the Infuser will create.