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.SuccessfulRaidCaptureNested 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
ConstructorsConstructorDescriptionStartRaidCapture(net.minecraft.server.level.ServerPlayer player, Pokemon raidPokemon, RaidData raid, CaptureValues values) -
Method Summary
Modifier and TypeMethodDescriptionGets the currentCaptureValuesfor this capture attempt.getRaid()Gets theRaidDatathis capture attempt is being performed in.Gets thePokemonbeing caught in the raid.Methods inherited from class com.pixelmonmod.pixelmon.api.events.CaptureEvent
getPlayer, getPokeBall, getPokemon, setPokemonMethods 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 currentCaptureValuesfor this capture attempt. Will contain the modified capture rate and the ball bonus at this stage.- Returns:
- The current
CaptureValuesfor this capture attempt.
-
getRaidPokemon
Gets thePokemonbeing caught in the raid.- Returns:
- The
Pokemonbeing caught in the raid.
-
getRaid
Gets theRaidDatathis capture attempt is being performed in.- Returns:
- The
RaidDatathis capture attempt is being performed in.
-