Class PickupEvent
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.PickupEvent
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
public class PickupEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.bus.api.ICancellableEvent
Fires when a Pokémon finds an item with Pickup. ItemStack is mutable.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal PlayerParticipant
ThePlayerParticipant
who's Pokémon that just picked up an item.final PixelmonWrapper
ThePixelmonWrapper
that just picked up an item.net.minecraft.world.item.ItemStack
The item that is to be found. -
Constructor Summary
ConstructorsConstructorDescriptionPickupEvent
(PixelmonWrapper pokemon, PlayerParticipant player, net.minecraft.world.item.ItemStack stack) -
Method Summary
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
-
Field Details
-
pokemon
ThePixelmonWrapper
that just picked up an item. -
player
ThePlayerParticipant
who's Pokémon that just picked up an item. -
stack
public net.minecraft.world.item.ItemStack stackThe item that is to be found.
-
-
Constructor Details
-
PickupEvent
public PickupEvent(PixelmonWrapper pokemon, PlayerParticipant player, net.minecraft.world.item.ItemStack stack)
-