Class CaptureEvent.SuccessfulRaidCapture

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

public static class CaptureEvent.SuccessfulRaidCapture extends CaptureEvent
Event fired when a raid capture attempt is about to succeed, after passing all the required checks. Cancelable.
  • Constructor Details

    • SuccessfulRaidCapture

      public SuccessfulRaidCapture(net.minecraft.server.level.ServerPlayer player, Pokemon raidPokemon, RaidData raid)
  • Method Details

    • getRaidPokemon

      public Pokemon getRaidPokemon()
      Gets the Pokemon being caught in the raid.
      Returns:
      The Pokemon being caught in the raid.
    • getRaid

      public RaidData getRaid()
      Gets the RaidData this capture attempt is being performed in.
      Returns:
      The RaidData this capture attempt is being performed in.