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.
  • Constructor Details

  • Method Details

    • setYield

      public void setYield(EVYields evYields)
      This is used to set the yields to a new value.
      Parameters:
      evYields - The new EVYields being given to the Pokémon