Class CaptureEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.CaptureEvent
- Direct Known Subclasses:
CaptureEvent.FailedCapture
,CaptureEvent.FailedRaidCapture
,CaptureEvent.StartCapture
,CaptureEvent.StartRaidCapture
,CaptureEvent.SuccessfulCapture
,CaptureEvent.SuccessfulRaidCapture
public abstract class CaptureEvent
extends net.minecraftforge.eventbus.api.Event
Superclass for capture related events.
Subclasses:
CaptureEvent.StartCapture
, CaptureEvent.StartRaidCapture
, CaptureEvent.SuccessfulCapture
, CaptureEvent.SuccessfulRaidCapture
,
CaptureEvent.FailedCapture
, CaptureEvent.FailedRaidCapture
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Event fired when a regular (non-raid) capture attempt fails to succeed.static class
Event fired when a raid capture attempt fails to succeed.static class
Event fired when a regular (non-raid) capture attempt is about to start.static class
Event fired when a raid capture attempt is about to start.static class
Event fired when a regular (non-raid) capture attempt is about to succeed, after passing all the required checks.static class
Event fired when a raid capture attempt is about to succeed, after passing all the required checks.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
Modifier and TypeFieldDescriptionprotected final net.minecraft.server.level.ServerPlayer
protected final PokeBallEntity
protected PixelmonEntity
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.server.level.ServerPlayer
TheServerPlayer
performing this capture attempt.ThePokeBallEntity
being used in this capture attempt.ThePixelmonEntity
being caught.void
setPokemon
(PixelmonEntity pokemon) Replaces the ThePixelmonEntity
being caught.Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
player
protected final net.minecraft.server.level.ServerPlayer player -
pokemon
-
pokeBall
-
-
Method Details
-
getPlayer
public net.minecraft.server.level.ServerPlayer getPlayer()TheServerPlayer
performing this capture attempt.- Returns:
- The
ServerPlayer
performing this capture attempt.
-
getPokemon
ThePixelmonEntity
being caught.- Returns:
- The
PixelmonEntity
being caught.
-
getPokeBall
ThePokeBallEntity
being used in this capture attempt.- Returns:
- The
PokeBallEntity
being used in this capture attempt.
-
setPokemon
Replaces the ThePixelmonEntity
being caught.- Parameters:
pokemon
- The newPixelmonEntity
being caught.
-