Class CaptureEvent.StartCapture
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.CaptureEvent
com.pixelmonmod.pixelmon.api.events.CaptureEvent.StartCapture
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Direct Known Subclasses:
CaptureEvent.StartRaidCapture
- Enclosing class:
CaptureEvent
public static class CaptureEvent.StartCapture
extends CaptureEvent
implements net.neoforged.bus.api.ICancellableEvent
Event fired when a regular (non-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
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.events.CaptureEvent
player, pokeBall, pokeBallEntity, pokemon
-
Constructor Summary
ConstructorsConstructorDescriptionStartCapture
(net.minecraft.server.level.ServerPlayer player, Pokemon pokemon, PokeBall ball, CaptureValues values) StartCapture
(net.minecraft.server.level.ServerPlayer player, Pokemon pokemon, PokeBallEntity pokeBall, CaptureValues values) -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.CaptureEvent
getPlayer, getPokeBall, getPokeBallEntity, getPokemon, setPokemon
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Constructor Details
-
StartCapture
public StartCapture(net.minecraft.server.level.ServerPlayer player, Pokemon pokemon, PokeBallEntity pokeBall, CaptureValues values) -
StartCapture
public StartCapture(net.minecraft.server.level.ServerPlayer player, Pokemon pokemon, PokeBall ball, 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.
-