Class MegaEvolutionEvent.MoveSkill

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.MegaEvolutionEvent
com.pixelmonmod.pixelmon.api.events.MegaEvolutionEvent.MoveSkill
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Enclosing class:
MegaEvolutionEvent

public static class MegaEvolutionEvent.MoveSkill extends MegaEvolutionEvent implements net.neoforged.bus.api.ICancellableEvent
Fired when the move skill mega evolution is about to happen Cancelling will prevent the mega evolution
  • Constructor Details

    • MoveSkill

      public MoveSkill(net.minecraft.server.level.ServerPlayer player, Pokemon pokemon)
      Default constructor taking only the pokemon that evolved
      Parameters:
      pokemon - The pokemon that evolved
    • MoveSkill

      public MoveSkill(net.minecraft.server.level.ServerPlayer player, Pokemon pokemon, net.minecraft.world.item.ItemStack item)
      Constructor for pokemon that evolved with the required item
      Parameters:
      pokemon - The pokemon that evolved
      item - The item used for the evolution