Class EVsGainedEvent
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.pokemon.EVsGainedEvent
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Direct Known Subclasses:
EVsGainedEvent.Item
public class EVsGainedEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.bus.api.ICancellableEvent
Event fired when a Pokémon gains EVs. The amount of EVs to give can be modified by adjusting the
Cancelling this event will prevent any EVs from being given.
evs
array.Cancelling this event will prevent any EVs from being given.
- Since:
- July 9, 2019
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Event for when an item is used on a Pokémon to gain EVs -
Field Summary
Fields -
Constructor Summary
Constructors -
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
The Pokémon whose EVs are being adjusted. -
evStore
The EVStore belonging to the Pokémon whose EVs are being adjusted. -
evYields
The EVs being given. These values can be negative. This is in the standard 6-stat format of Hp/Atk/Def/SpAtk/SpDef/Spd. This can be mutated but not re-assigned.
-
-
Constructor Details
-
EVsGainedEvent
-