Class BottleCapEvent

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

public class BottleCapEvent extends net.minecraftforge.eventbus.api.Event
Event fired when a bottle cap is used on a pokemon Cancelling will prevent the stats being changed & the item being shrunk
  • 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
    BottleCapEvent(PixelmonEntity pixelmon, net.minecraft.world.entity.player.Player player, EnumBottleCap bottleCap, net.minecraft.world.item.ItemStack itemStack)
     
  • 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

    • BottleCapEvent

      public BottleCapEvent(PixelmonEntity pixelmon, net.minecraft.world.entity.player.Player player, EnumBottleCap bottleCap, net.minecraft.world.item.ItemStack itemStack)
  • Method Details

    • getPixelmon

      public PixelmonEntity getPixelmon()
    • getPokemon

      public Pokemon getPokemon()
    • getPlayer

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

      public EnumBottleCap getBottleCap()
    • getItemStack

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

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