Class ItemInteractionEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.pokemon.ItemInteractionEvent

public class ItemInteractionEvent extends net.minecraftforge.eventbus.api.Event
Called when the ability of a pokemon is changed by an item Cancelling will cancel the ability change and the item shrinking
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemInteractionEvent(net.minecraft.world.entity.player.Player player, PixelmonEntity pixelmon, net.minecraft.world.item.ItemStack item)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.Item
     
    net.minecraft.world.item.ItemStack
     
     
    net.minecraft.world.entity.player.Player
     
     

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ItemInteractionEvent

      public ItemInteractionEvent(net.minecraft.world.entity.player.Player player, PixelmonEntity pixelmon, net.minecraft.world.item.ItemStack item)
  • Method Details

    • getPlayer

      public net.minecraft.world.entity.player.Player getPlayer()
    • getPixelmon

      public PixelmonEntity getPixelmon()
    • getPokemon

      public Pokemon getPokemon()
    • getItemStack

      public net.minecraft.world.item.ItemStack getItemStack()
    • getItem

      public net.minecraft.world.item.Item getItem()