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.
  • 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 player
      pixelmon - The Pokémon
      item - The item