public class WildPixelmonParticipant extends BattleParticipant
allPokemon, ashNinja, bc, controlledPokemon, dynamax, evolution, isDefeated, lastFailedCapture, lastFaintedTurn, lastMoveTime, numControlledPokemon, startedBattle, switchingIn, switchingOut, team, totalFainted, ultraBurst, usedZ, wait| Constructor and Description |
|---|
WildPixelmonParticipant(boolean isGrassBattleParticipant,
PixelmonEntity... pixelmon)
Initializes a wild Pokémon participant
|
WildPixelmonParticipant(PixelmonEntity... pixelmon)
Initializes a wild Pokémon participant.
|
WildPixelmonParticipant(Pokemon... pokemon) |
| Modifier and Type | Method and Description |
|---|---|
PixelmonWrapper |
asWrapper() |
boolean |
canDynamax()
Checks if the participant is allowed to Dynamax Pokémon.
|
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.MobEntity |
getEntity()
Gets the entity that this participant is representing.
|
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.
|
boolean |
hasMorePokemon()
Checks if the participant has Pokémon that can battle
|
boolean |
hasMorePokemonReserve()
For use with switching in new Pokémon.
|
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, onAddStatus, onEndTurn, onHit, onOpponentKO, onSwitchIn, onTakeTurn, onTargeted, onUseAttack, onUseAttackOther, onUseAttackPost, resetMoveTimer, retrieveEntityDuringBattleUnlessRiding, selectAction, sendDamagePacket, sendHealPacket, sendMessage, setBattleAI, setNumControlledPokemon, switchAllFainted, tick, updateLastFaintedTurnpublic WildPixelmonParticipant(boolean isGrassBattleParticipant,
PixelmonEntity... pixelmon)
isGrassBattleParticipant - Whether the Pokémon was spawned from Pixelmon Grass.pixelmon - The Pokémon that the participant is representing.public WildPixelmonParticipant(PixelmonEntity... pixelmon)
pixelmon - The Pokémon that the participant is representing.public WildPixelmonParticipant(Pokemon... pokemon)
public ParticipantType getType()
BattleParticipantgetType in class BattleParticipantpublic boolean hasMorePokemon()
BattleParticipanthasMorePokemon in class BattleParticipantpublic boolean hasMorePokemonReserve()
BattleParticipanthasMorePokemonReserve in class BattleParticipantpublic boolean canGainXP()
BattleParticipantcanGainXP in class BattleParticipantpublic void startBattle()
BattleParticipantstartBattle in class BattleParticipantpublic void endBattle(BattleEndCause cause)
BattleParticipantendBattle in class BattleParticipantpublic void getNextPokemon(int position)
BattleParticipantgetNextPokemon in class BattleParticipantposition - The position to send out the Pokémon at.public java.util.UUID getNextPokemonUUID()
BattleParticipantgetNextPokemonUUID in class BattleParticipantpublic net.minecraft.util.text.TextComponent getName()
BattleParticipantgetName in class BattleParticipantpublic MoveChoice getMove(PixelmonWrapper pw)
BattleParticipantgetMove in class BattleParticipantpw - The Pokémon to get a move for.public PixelmonWrapper switchPokemon(PixelmonWrapper pw, java.util.UUID newPixelmonUUID)
BattleParticipantswitchPokemon in class BattleParticipantpw - The Pokémon to switch out.newPixelmonUUID - The UUID of the Pokémon's to switch in.public boolean checkPokemon()
BattleParticipantcheckPokemon in class BattleParticipantpublic void updatePokemon(PixelmonWrapper pw)
BattleParticipantupdatePokemon in class BattleParticipantpw - The Pokémon to update.public net.minecraft.entity.MobEntity getEntity()
BattleParticipantgetEntity in class BattleParticipantpublic PixelmonWrapper asWrapper()
public void updateOtherPokemon()
BattleParticipantupdateOtherPokemon in class BattleParticipantpublic boolean canDynamax()
BattleParticipantcanDynamax in class BattleParticipantpublic java.lang.String getDisplayName()
BattleParticipantgetDisplayName in class BattleParticipant