Class EvolveEvent.Pre

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.EvolveEvent
com.pixelmonmod.pixelmon.api.events.EvolveEvent.Pre
Enclosing class:
EvolveEvent

public static class EvolveEvent.Pre extends EvolveEvent
The event fired before the evolution checks are completed and before any evolution logic is done Cancelling this will prevent any evolution from occurring
  • 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 evolving
      pokemon - The Pokémon evolving
      evolution - The evolution
      cause - The cause of the evolution