Class BottleCapEvent
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.pokemon.BottleCapEvent
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
public class BottleCapEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.bus.api.ICancellableEvent
Event fired when a bottle cap is used on a pokemon
Cancelling will prevent the stats being changed invalid input: '&' the item being shrunk
-
Constructor Summary
ConstructorsConstructorDescriptionBottleCapEvent
(PixelmonEntity pixelmon, net.minecraft.world.entity.player.Player player, EnumBottleCap bottleCap, net.minecraft.world.item.ItemStack itemStack) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.Item
getItem()
net.minecraft.world.item.ItemStack
net.minecraft.world.entity.player.Player
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
-
BottleCapEvent
public BottleCapEvent(PixelmonEntity pixelmon, net.minecraft.world.entity.player.Player player, EnumBottleCap bottleCap, net.minecraft.world.item.ItemStack itemStack)
-
-
Method Details
-
getPixelmon
-
getPokemon
-
getPlayer
public net.minecraft.world.entity.player.Player getPlayer() -
getBottleCap
-
getItemStack
public net.minecraft.world.item.ItemStack getItemStack() -
getItem
public net.minecraft.world.item.Item getItem()
-