Class InfuserEvent.CreateItem.Pre
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.blocks.InfuserEvent
com.pixelmonmod.pixelmon.api.events.blocks.InfuserEvent.CreateItem
com.pixelmonmod.pixelmon.api.events.blocks.InfuserEvent.CreateItem.Pre
- 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.blocks.InfuserEvent.CreateItem
InfuserEvent.CreateItem.Post, InfuserEvent.CreateItem.Pre
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.blocks.InfuserEvent
InfuserEvent.CreateItem
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.events.blocks.InfuserEvent.CreateItem
recipe, recipeOutput
Fields inherited from class com.pixelmonmod.pixelmon.api.events.blocks.InfuserEvent
infuserTileEntity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setRecipeOutput
(net.minecraft.world.item.ItemStack itemStack) Change what item the Infuser will create.Methods inherited from class com.pixelmonmod.pixelmon.api.events.blocks.InfuserEvent.CreateItem
getRecipe, getRecipeOutput
Methods inherited from class com.pixelmonmod.pixelmon.api.events.blocks.InfuserEvent
getInfuserTileEntity, getItemsInInfuser
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Constructor Details
-
Pre
-
-
Method Details
-
setRecipeOutput
public void setRecipeOutput(net.minecraft.world.item.ItemStack itemStack) Change what item the Infuser will create.
-