public class CaptureHealth
extends java.lang.Object
Constructor and Description |
---|
CaptureHealth(PixelmonEntity entity)
Constructs a new CaptureHealth representing a regular capture (in battle or out of battle, not a raid).
|
CaptureHealth(RaidData.RaidPlayer raidPlayer,
RaidData raid)
Constructs a new CaptureHealth representing a raid capture.
|
Modifier and Type | Method and Description |
---|---|
double |
getCurrentHP()
Gets the current HP for the purposes of the capture attempt this object is associated with.
|
PixelmonEntity |
getEntity()
Gets the
PixelmonEntity associated with the capture attempt this object is associated with. |
double |
getMaxHP()
Gets the max HP for the purposes of the capture attempt this object is associated with.
|
RaidData |
getRaid()
Gets the
RaidData associated with the capture attempt this object is associated with. |
RaidData.RaidPlayer |
getRaidPlayer()
Gets the
RaidData.RaidPlayer associated with the capture attempt this object is associated with. |
PixelmonWrapper |
getWrapper()
Gets the
PixelmonWrapper associated with the capture attempt this object is associated with. |
boolean |
hasEntity()
Whether there is a
PixelmonEntity associated with the capture attempt this object is associated with. |
boolean |
hasWrapper()
Whether there is a
PixelmonWrapper associated with the capture attempt this object is associated with. |
boolean |
isRaid()
Whether there is a
RaidData and RaidData.RaidPlayer associated with the capture attempt this object is associated with. |
public CaptureHealth(@Nonnull PixelmonEntity entity)
entity
- The PixelmonEntity
being caught.public CaptureHealth(@Nonnull RaidData.RaidPlayer raidPlayer, @Nonnull RaidData raid)
raidPlayer
- The RaidData.RaidPlayer
instance performing this capture.raid
- The RaidData
this capture is part of.public double getCurrentHP()
public double getMaxHP()
public boolean hasEntity()
PixelmonEntity
associated with the capture attempt this object is associated with.PixelmonEntity
associated with the capture attempt this object is associated with.@Nullable public PixelmonEntity getEntity()
PixelmonEntity
associated with the capture attempt this object is associated with.PixelmonEntity
for the capture attempt this object is associated with.public boolean hasWrapper()
PixelmonWrapper
associated with the capture attempt this object is associated with.PixelmonWrapper
associated with the capture attempt this object is associated with.@Nullable public PixelmonWrapper getWrapper()
PixelmonWrapper
associated with the capture attempt this object is associated with.PixelmonWrapper
for the capture attempt this object is associated with.public boolean isRaid()
RaidData
and RaidData.RaidPlayer
associated with the capture attempt this object is associated with.RaidData
and RaidData.RaidPlayer
associated with the capture attempt this object is associated with.@Nullable public RaidData.RaidPlayer getRaidPlayer()
RaidData.RaidPlayer
associated with the capture attempt this object is associated with.RaidData.RaidPlayer
for the capture attempt this object is associated with.