Class WildPixelmonParticipant
java.lang.Object
com.pixelmonmod.pixelmon.battles.controller.participants.BattleParticipant
com.pixelmonmod.pixelmon.battles.controller.participants.WildPixelmonParticipant
- All Implemented Interfaces:
BattleViewer
A wild Pokémon in battle.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.battles.controller.participants.BattleParticipant
allPokemon, ashNinja, bc, controlledPokemon, dynamax, entity, evolution, isDefeated, lastFailedCapture, lastFaintedTurn, lastMoveTime, numControlledPokemon, switchingIn, switchingOut, team, totalFainted, ultraBurst, usedZ, wait
-
Constructor Summary
ConstructorDescriptionWildPixelmonParticipant
(boolean isGrassBattleParticipant, PixelmonEntity... pixelmon) Initializes a wild Pokémon participantWildPixelmonParticipant
(int size, Pokemon... pokemon) WildPixelmonParticipant
(Pokemon... pokemon) WildPixelmonParticipant
(PixelmonEntity... pixelmon) Initializes a wild Pokémon participant. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if the participant is allowed to Dynamax Pokémon.void
checkAndHandleBossTier
(PixelmonWrapper wrapper) Checks if the participant is a boss and then applies the boss tier logic to the provided wrapper.void
endBattle
(BattleEndCause cause) Ends the battle the participant is in.net.minecraft.network.chat.MutableComponent
Returns the name of the entity the participant is representing.void
getNextPokemon
(int position) Sends out the next unfainted Pokémon in the participant's party.boolean
Checks if the participant has Pokémon that can battleboolean
isWild()
If the participant is a wild Pokémon.void
Adds the participant to a battle.Methods inherited from class com.pixelmonmod.pixelmon.battles.controller.participants.BattleParticipant
addSwitchingOut, canMegaEvolve, canSwitch, checkPokemon, clearMovement, clearTurnVariables, convertEntitiesToWrapper, convertPokemonToWrapper, countAblePokemon, countFaintedPokemon, countHealthPercent, countPartyPokemon, faintedLastTurn, getActiveUnfaintedPokemon, getAllies, getAllyData, getBattleAI, getEntity, getFaintedPokemon, getHighestLevel, getLevelCap, getMove, getName, getOpponentPokemon, getOpponents, getPartyPokemonFromUUID, getPartyPosition, getPokemonFromParty, getPokemonFromUUID, getRandomPartyPokemon, getStorage, getTeamPokemon, getTeamPokemonUUIDs, getTotalFainted, getTurnTimeSeconds, getUniqueId, getWait, getWorld, hasMorePokemonReserve, hasRemainingPokemon, incrementFaintCount, isOnField, isPlayer, isRaid, isTrainer, loadParty, loadParty, loadSingle, onAddStatus, onEndTurn, onHit, onOpponentKO, onSwitchIn, onTakeTurn, onTargeted, onUseAttack, onUseAttackOther, onUseAttackPost, releasePokemon, resetMoveTimer, retrieveEntityDuringBattleUnlessRiding, revivePokemon, revivePokemon, selectAction, sendBattleMessage, sendBattleMessage, sendDamagePacket, sendHealPacket, sendPacket, setBattleAI, setWait, startBattle, switchAllFainted, switchPokemon, tick, updateBattlingPokemon, updateLastFaintedTurn, waiting
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.pixelmonmod.pixelmon.battles.controller.BattleViewer
getPlayer, sendBattleMessage
-
Constructor Details
-
WildPixelmonParticipant
Initializes a wild Pokémon participant- Parameters:
isGrassBattleParticipant
- Whether the Pokémon was spawned from Pixelmon Grass.pixelmon
- The Pokémon that the participant is representing.
-
WildPixelmonParticipant
Initializes a wild Pokémon participant.- Parameters:
pixelmon
- The Pokémon that the participant is representing.
-
WildPixelmonParticipant
-
WildPixelmonParticipant
-
-
Method Details
-
hasMorePokemon
public boolean hasMorePokemon()Description copied from class:BattleParticipant
Checks if the participant has Pokémon that can battle- Overrides:
hasMorePokemon
in classBattleParticipant
- Returns:
- True if the player has a Pokémon that can battle.
-
preBattleChecks
public void preBattleChecks()Description copied from class:BattleParticipant
Adds the participant to a battle.- Overrides:
preBattleChecks
in classBattleParticipant
-
checkAndHandleBossTier
Description copied from class:BattleParticipant
Checks if the participant is a boss and then applies the boss tier logic to the provided wrapper.- Overrides:
checkAndHandleBossTier
in classBattleParticipant
- Parameters:
wrapper
- The wrapper to apply the boss tier logic to.
-
endBattle
Description copied from class:BattleParticipant
Ends the battle the participant is in.- Specified by:
endBattle
in classBattleParticipant
-
getNextPokemon
public void getNextPokemon(int position) Description copied from class:BattleParticipant
Sends out the next unfainted Pokémon in the participant's party.- Overrides:
getNextPokemon
in classBattleParticipant
- Parameters:
position
- The position to send out the Pokémon at.
-
canDynamax
public boolean canDynamax()Description copied from class:BattleParticipant
Checks if the participant is allowed to Dynamax Pokémon.- Overrides:
canDynamax
in classBattleParticipant
- Returns:
- Whether the participant is allowed to Dynamax Pokémon.
-
getDisplayName
public net.minecraft.network.chat.MutableComponent getDisplayName()Description copied from class:BattleParticipant
Returns the name of the entity the participant is representing.- Overrides:
getDisplayName
in classBattleParticipant
- Returns:
- The name of the entity the participant is representing.
-
isWild
public boolean isWild()Description copied from class:BattleParticipant
If the participant is a wild Pokémon.- Overrides:
isWild
in classBattleParticipant
- Returns:
- Whether the participant is a wild Pokémon.
-