Class EVGainEvent.Pre
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.EVGainEvent
com.pixelmonmod.pixelmon.api.events.battles.EVGainEvent.Pre
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
EVGainEvent
public static class EVGainEvent.Pre
extends EVGainEvent
implements net.neoforged.bus.api.ICancellableEvent
Cancelling this will prevent the yields from being given at all.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.battles.EVGainEvent
EVGainEvent.DoubleYieldEvent, EVGainEvent.Post, EVGainEvent.Pre
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.events.battles.EVGainEvent
evYields, faintedPokemon, originalEVYields, pokemon
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.battles.EVGainEvent
getEvYields, getFaintedPokemon, getOriginalEVYields, getPokemon
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
-
Pre
Deprecated, for removal: This API element is subject to removal in a future version. -
Pre
-
-
Method Details
-
setYield
This is used to set the yields to a new value.- Parameters:
evYields
- The new EVYields being given to the Pokémon
-