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 PlayerParticipantThePlayerParticipantwho's Pokémon that just picked up an item.final PixelmonWrapperThePixelmonWrapperthat just picked up an item.net.minecraft.world.item.ItemStackThe 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, waitMethods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Field Details
-
pokemon
ThePixelmonWrapperthat just picked up an item. -
player
ThePlayerParticipantwho'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)
-