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
Event fired when a raid capture attempt is about to start.
Cancelable.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.CaptureEvent
CaptureEvent.FailedCapture, CaptureEvent.FailedRaidCapture, CaptureEvent.StartCapture, CaptureEvent.StartRaidCapture, CaptureEvent.SuccessfulCapture, CaptureEvent.SuccessfulRaidCapture
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.events.CaptureEvent
player, pokeBall, pokemon
-
Constructor Summary
ConstructorDescriptionStartRaidCapture
(net.minecraft.server.level.ServerPlayer player, Pokemon raidPokemon, RaidData raid, CaptureValues values) -
Method Summary
Modifier and TypeMethodDescriptionGets the currentCaptureValues
for this capture attempt.getRaid()
Gets theRaidData
this capture attempt is being performed in.Gets thePokemon
being caught in the raid.Methods inherited from class com.pixelmonmod.pixelmon.api.events.CaptureEvent
getPlayer, getPokeBall, getPokemon, setPokemon
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
StartRaidCapture
public StartRaidCapture(net.minecraft.server.level.ServerPlayer player, Pokemon raidPokemon, RaidData raid, CaptureValues values)
-
-
Method Details
-
getCaptureValues
Gets the currentCaptureValues
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
Gets thePokemon
being caught in the raid.- Returns:
- The
Pokemon
being caught in the raid.
-
getRaid
Gets theRaidData
this capture attempt is being performed in.- Returns:
- The
RaidData
this capture attempt is being performed in.
-