Class ItemInteractionEvent.Pre
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.pokemon.ItemInteractionEvent
com.pixelmonmod.pixelmon.api.events.pokemon.ItemInteractionEvent.Pre
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
ItemInteractionEvent
public static class ItemInteractionEvent.Pre
extends ItemInteractionEvent
implements net.neoforged.bus.api.ICancellableEvent
The event fired before the interaction has completed.
Cancelling this will prevent the result of the interaction from finishing.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.pokemon.ItemInteractionEvent
ItemInteractionEvent.Post, ItemInteractionEvent.Pre
-
Constructor Summary
ConstructorsConstructorDescriptionPre
(net.minecraft.world.entity.player.Player player, PixelmonEntity pixelmon, net.minecraft.world.item.ItemStack item) Basic constructor for the pre Item Interaction event Including the player, Pokémon and evolution -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.pokemon.ItemInteractionEvent
getItem, getItemStack, getPixelmon, getPlayer, getPokemon
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
public Pre(net.minecraft.world.entity.player.Player player, PixelmonEntity pixelmon, net.minecraft.world.item.ItemStack item) Basic constructor for the pre Item Interaction event Including the player, Pokémon and evolution- Parameters:
player
- The playerpixelmon
- The Pokémonitem
- The item
-