Class CaptureEvent.StartCapture
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.CaptureEvent
com.pixelmonmod.pixelmon.api.events.CaptureEvent.StartCapture
- Enclosing class:
- CaptureEvent
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.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
ConstructorsConstructorDescriptionStartCapture(net.minecraft.server.level.ServerPlayer player, PixelmonEntity pokemon, PokeBallEntity pokeBall, CaptureValues values) -
Method Summary
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
-
StartCapture
public StartCapture(net.minecraft.server.level.ServerPlayer player, PixelmonEntity pokemon, PokeBallEntity pokeBall, 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.
-