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
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An events that occurs when the Infuser is about to finish infusing. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.core.NonNullList
<net.minecraft.world.item.ItemStack> The ItemStacks that hold the items currently being used in the infuser.
-
Field Details
-
infuserTileEntity
-
-
Constructor Details
-
InfuserEvent
-
-
Method Details
-
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.
-