Class PickupEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.PickupEvent
public class PickupEvent
extends net.minecraftforge.eventbus.api.Event
Fires when a Pokémon finds an item with Pickup. ItemStack is mutable.
-
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
-
Field Summary
Modifier 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
ConstructorDescriptionPickupEvent
(PixelmonWrapper pokemon, PlayerParticipant player, net.minecraft.world.item.ItemStack stack) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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)
-