Class MegaEvolutionEvent.Battle

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

public static class MegaEvolutionEvent.Battle extends MegaEvolutionEvent
Fired when the battle mega evolution is about to happen Cancelling will prevent the mega evolution
  • Constructor Details

    • Battle

      public Battle(net.minecraft.server.level.ServerPlayer player, PixelmonWrapper pixelmonWrapper, net.minecraft.world.item.ItemStack stone, boolean ultraBurst)
      Battle event constructor
      Parameters:
      pixelmonWrapper - The wrapper of the pokemon evolving
      stone - The item used for the evolution
      ultraBurst - If they're ultrabursting
  • Method Details

    • getPixelmonWrapper

      public PixelmonWrapper getPixelmonWrapper()
      Gets the battle wrapper for the evolving pokemon
      Returns:
      The pokemon evolving