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
ConstructorsConstructorDescriptionWildPixelmonParticipant(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 TypeMethodDescriptionbooleanChecks if the participant is allowed to Dynamax Pokémon.voidcheckAndHandleBossTier(PixelmonWrapper wrapper) Checks if the participant is a boss and then applies the boss tier logic to the provided wrapper.voidendBattle(BattleEndCause cause) Ends the battle the participant is in.net.minecraft.network.chat.MutableComponentReturns the name of the entity the participant is representing.voidgetNextPokemon(int position) Sends out the next unfainted Pokémon in the participant's party.booleanChecks if the participant has Pokémon that can battlebooleanisWild()If the participant is a wild Pokémon.voidAdds 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, waitingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:BattleParticipantChecks if the participant has Pokémon that can battle- Overrides:
hasMorePokemonin classBattleParticipant- Returns:
- True if the player has a Pokémon that can battle.
-
preBattleChecks
public void preBattleChecks()Description copied from class:BattleParticipantAdds the participant to a battle.- Overrides:
preBattleChecksin classBattleParticipant
-
checkAndHandleBossTier
Description copied from class:BattleParticipantChecks if the participant is a boss and then applies the boss tier logic to the provided wrapper.- Overrides:
checkAndHandleBossTierin classBattleParticipant- Parameters:
wrapper- The wrapper to apply the boss tier logic to.
-
endBattle
Description copied from class:BattleParticipantEnds the battle the participant is in.- Specified by:
endBattlein classBattleParticipant
-
getNextPokemon
public void getNextPokemon(int position) Description copied from class:BattleParticipantSends out the next unfainted Pokémon in the participant's party.- Overrides:
getNextPokemonin classBattleParticipant- Parameters:
position- The position to send out the Pokémon at.
-
canDynamax
public boolean canDynamax()Description copied from class:BattleParticipantChecks if the participant is allowed to Dynamax Pokémon.- Overrides:
canDynamaxin classBattleParticipant- Returns:
- Whether the participant is allowed to Dynamax Pokémon.
-
getDisplayName
public net.minecraft.network.chat.MutableComponent getDisplayName()Description copied from class:BattleParticipantReturns the name of the entity the participant is representing.- Overrides:
getDisplayNamein classBattleParticipant- Returns:
- The name of the entity the participant is representing.
-
isWild
public boolean isWild()Description copied from class:BattleParticipantIf the participant is a wild Pokémon.- Overrides:
isWildin classBattleParticipant- Returns:
- Whether the participant is a wild Pokémon.
-