Class CaptureEvent.SuccessfulRaidCapture

java.lang.Object
net.neoforged.bus.api.Event
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Enclosing class:
CaptureEvent

public static class CaptureEvent.SuccessfulRaidCapture extends CaptureEvent.SuccessfulCapture implements net.neoforged.bus.api.ICancellableEvent
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, PokeBall pokeBall, 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.