public class RaidPixelmonParticipant extends BattleParticipant
allPokemon, ashNinja, bc, controlledPokemon, dynamax, evolution, isDefeated, lastFailedCapture, lastFaintedTurn, lastMoveTime, numControlledPokemon, startedBattle, switchingIn, switchingOut, team, totalFainted, ultraBurst, usedZ, wait
Constructor and Description |
---|
RaidPixelmonParticipant(RaidData raid,
RaidSettings settings,
PixelmonEntity pixelmon)
Deprecated.
|
RaidPixelmonParticipant(RaidData raid,
RaidSettings settings,
Pokemon pokemon)
Initializes a wild Raid Pokémon participant
|
Modifier and Type | Method and Description |
---|---|
boolean |
areShieldsUp() |
boolean |
canDynamax()
Checks if the participant is allowed to Dynamax Pokémon.
|
boolean |
canDynamax(BattleParticipant participant) |
boolean |
canGainXP()
Checks if the participant's Pokémon can give experience.
|
boolean |
checkPokemon()
Checks if the participant's Pokémon are in a valid state.
|
void |
endBattle(BattleEndCause cause)
Ends the battle the participant is in.
|
java.lang.String |
getDisplayName()
Returns the name of the entity the participant is representing.
|
net.minecraft.entity.LivingEntity |
getEntity()
Gets the entity that this participant is representing.
|
RaidGovernor |
getGovernor() |
MoveChoice |
getMove(PixelmonWrapper pw)
Gets the move to be used by the specified Pokémon.
|
net.minecraft.util.text.TextComponent |
getName()
Gets the name of the participant.
|
void |
getNextPokemon(int position)
Sends out the next unfainted Pokémon in the participant's party.
|
java.util.UUID |
getNextPokemonUUID()
Gets the UUID of the next Pokémon in the participant's party that can battle;
|
ParticipantType |
getType()
Gets the type of participant that this participant is.
|
PixelmonWrapper |
getWrapper() |
boolean |
hasMorePokemon()
Checks if the participant has Pokémon that can battle
|
boolean |
hasMorePokemonReserve()
For use with switching in new Pokémon.
|
boolean |
isAlive() |
boolean |
onAddStatus(BattleController bc,
PixelmonWrapper user,
PixelmonWrapper target,
StatusBase status) |
void |
onEndTurn(BattleController bc) |
float |
onHit(PixelmonWrapper source,
float damage,
DamageTypeEnum damageType) |
void |
onOpponentKO(BattleController bc,
PixelmonWrapper pw) |
void |
onSwitchIn(BattleController bc,
PixelmonWrapper pw) |
boolean |
onTakeTurn(BattleController bc,
PixelmonWrapper pw) |
boolean |
onTargeted(PixelmonWrapper user,
Attack attack) |
boolean |
onUseAttack(BattleController bc,
PixelmonWrapper pw) |
boolean |
onUseAttackOther(BattleController bc,
Attack attack,
BattleParticipant bp,
PixelmonWrapper user) |
void |
onUseAttackPost(BattleController bc,
PixelmonWrapper pw) |
void |
shockwave(PixelmonWrapper pw) |
void |
startBattle()
Adds the participant to a battle.
|
PixelmonWrapper |
switchPokemon(PixelmonWrapper pw,
java.util.UUID newPixelmonUUID)
Switches the participant's Pokémon for another one.
|
void |
updateOtherPokemon()
Updates the opponent's Pokémon client-side.
|
void |
updatePokemon(PixelmonWrapper pw)
Updates the specified Pokémon client-side.
|
addSwitchingOut, animateDynamax, canMegaEvolve, canSwitch, clearTurnVariables, countAblePokemon, countHealthPercent, countTeam, faintedLastTurn, getActiveUnfaintedPokemon, getAllies, getBattleAI, getCurrentTime, getFaintedPokemon, getOpponentPokemon, getOpponents, getPartyPosition, getPokemonFromParty, getPokemonFromParty, getPokemonFromUUID, getRandomPartyPokemon, getStorage, getTeamPokemon, getTotalFainted, getTurnTimeSeconds, getWait, getWorld, hasRemainingPokemon, incrementFaintCount, loadParty, loadParty, loadSingle, resetMoveTimer, retrieveEntityDuringBattleUnlessRiding, selectAction, sendDamagePacket, sendHealPacket, sendMessage, setBattleAI, setNumControlledPokemon, switchAllFainted, tick, updateLastFaintedTurn
@Deprecated public RaidPixelmonParticipant(RaidData raid, RaidSettings settings, PixelmonEntity pixelmon)
pixelmon
- The Pokémon that the participant is representing.public RaidPixelmonParticipant(RaidData raid, RaidSettings settings, Pokemon pokemon)
pokemon
- The Pokémon that the participant is representing.public PixelmonWrapper getWrapper()
public ParticipantType getType()
BattleParticipant
getType
in class BattleParticipant
public boolean hasMorePokemon()
BattleParticipant
hasMorePokemon
in class BattleParticipant
public boolean hasMorePokemonReserve()
BattleParticipant
hasMorePokemonReserve
in class BattleParticipant
public boolean canGainXP()
BattleParticipant
canGainXP
in class BattleParticipant
public void startBattle()
BattleParticipant
startBattle
in class BattleParticipant
public void endBattle(BattleEndCause cause)
BattleParticipant
endBattle
in class BattleParticipant
public void getNextPokemon(int position)
BattleParticipant
getNextPokemon
in class BattleParticipant
position
- The position to send out the Pokémon at.public java.util.UUID getNextPokemonUUID()
BattleParticipant
getNextPokemonUUID
in class BattleParticipant
public net.minecraft.util.text.TextComponent getName()
BattleParticipant
getName
in class BattleParticipant
public MoveChoice getMove(PixelmonWrapper pw)
BattleParticipant
getMove
in class BattleParticipant
pw
- The Pokémon to get a move for.public PixelmonWrapper switchPokemon(PixelmonWrapper pw, java.util.UUID newPixelmonUUID)
BattleParticipant
switchPokemon
in class BattleParticipant
pw
- The Pokémon to switch out.newPixelmonUUID
- The UUID of the Pokémon's to switch in.public boolean checkPokemon()
BattleParticipant
checkPokemon
in class BattleParticipant
public void updatePokemon(PixelmonWrapper pw)
BattleParticipant
updatePokemon
in class BattleParticipant
pw
- The Pokémon to update.public net.minecraft.entity.LivingEntity getEntity()
BattleParticipant
getEntity
in class BattleParticipant
public void updateOtherPokemon()
BattleParticipant
updateOtherPokemon
in class BattleParticipant
public boolean canDynamax()
BattleParticipant
canDynamax
in class BattleParticipant
public java.lang.String getDisplayName()
BattleParticipant
getDisplayName
in class BattleParticipant
public boolean areShieldsUp()
public void onSwitchIn(BattleController bc, PixelmonWrapper pw)
onSwitchIn
in class BattleParticipant
public void onEndTurn(BattleController bc)
onEndTurn
in class BattleParticipant
public boolean onTakeTurn(BattleController bc, PixelmonWrapper pw)
onTakeTurn
in class BattleParticipant
public boolean onUseAttack(BattleController bc, PixelmonWrapper pw)
onUseAttack
in class BattleParticipant
public void onUseAttackPost(BattleController bc, PixelmonWrapper pw)
onUseAttackPost
in class BattleParticipant
public boolean onUseAttackOther(BattleController bc, Attack attack, BattleParticipant bp, PixelmonWrapper user)
onUseAttackOther
in class BattleParticipant
public void shockwave(PixelmonWrapper pw)
public boolean onTargeted(PixelmonWrapper user, Attack attack)
onTargeted
in class BattleParticipant
public boolean onAddStatus(BattleController bc, PixelmonWrapper user, PixelmonWrapper target, StatusBase status)
onAddStatus
in class BattleParticipant
public float onHit(PixelmonWrapper source, float damage, DamageTypeEnum damageType)
onHit
in class BattleParticipant
public void onOpponentKO(BattleController bc, PixelmonWrapper pw)
onOpponentKO
in class BattleParticipant
public boolean canDynamax(BattleParticipant participant)
public boolean isAlive()
public RaidGovernor getGovernor()