Class CaptureEvent.StartRaidCapture

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

public static class CaptureEvent.StartRaidCapture extends CaptureEvent
Event fired when a raid capture attempt is about to start. Cancelable.
  • Constructor Details

    • StartRaidCapture

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

    • getCaptureValues

      public CaptureValues getCaptureValues()
      Gets the current CaptureValues for this capture attempt. Will contain the modified capture rate and the ball bonus at this stage.
      Returns:
      The current CaptureValues for this capture attempt.
    • 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.