Class EvolveEvent.Pre
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.EvolveEvent
com.pixelmonmod.pixelmon.api.events.EvolveEvent.Pre
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
EvolveEvent
public static class EvolveEvent.Pre
extends EvolveEvent
implements net.neoforged.bus.api.ICancellableEvent
The event fired before the evolution checks are completed and before any evolution logic is done
Cancelling this will prevent any evolution from occurring
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.EvolveEvent
EvolveEvent.Constants, EvolveEvent.Post, EvolveEvent.Pre
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.EvolveEvent
getCause, getEvolution, getPlayer, getPokemon, isInternal
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
public Pre(net.minecraft.server.level.ServerPlayer player, Pokemon pokemon, Evolution evolution, String cause) Basic constructor for the pre evolution event Including the player, Pokémon and evolution- Parameters:
player
- The player causing the evolvingpokemon
- The Pokémon evolvingevolution
- The evolutioncause
- The cause of the evolution
-