Class RaidPixelmonParticipant
java.lang.Object
com.pixelmonmod.pixelmon.battles.controller.participants.BattleParticipant
com.pixelmonmod.pixelmon.battles.controller.participants.RaidPixelmonParticipant
- All Implemented Interfaces:
BattleViewer
A wild Raid 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
ConstructorsConstructorDescriptionRaidPixelmonParticipant(RaidData raid, RaidSettings settings, Pokemon pokemon) Initializes a wild Raid Pokémon participant -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanChecks if the participant is allowed to Dynamax Pokémon.booleancanDynamax(BattleParticipant participant) 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.world.entity.LivingEntityGets the entity that this participant is representing.net.minecraft.network.chat.ComponentgetName()Gets the name of the participant.voidgetNextPokemon(int position) Sends out the next unfainted Pokémon in the participant's party.booleanChecks if the participant has Pokémon that can battlebooleanFor use with switching in new Pokémon.booleanisAlive()booleanisRaid()If the participant is a raid.booleanonAddStatus(BattleController bc, PixelmonWrapper user, PixelmonWrapper target, StatusBase status) voidfloatonHit(PixelmonWrapper source, float damage, DamageTypeEnum damageType) voidvoidbooleanbooleanonTargeted(PixelmonWrapper user, Attack attack) booleanbooleanonUseAttackOther(BattleController bc, Attack attack, BattleParticipant bp, PixelmonWrapper user) voidvoidAdds the participant to a battle.voidswitchPokemon(PixelmonWrapper pw, UUID newPixelmonUUID) Switches the participant's Pokémon for another one.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, getDisplayName, getFaintedPokemon, getHighestLevel, getLevelCap, getMove, getOpponentPokemon, getOpponents, getPartyPokemonFromUUID, getPartyPosition, getPokemonFromParty, getPokemonFromUUID, getRandomPartyPokemon, getStorage, getTeamPokemon, getTeamPokemonUUIDs, getTotalFainted, getTurnTimeSeconds, getUniqueId, getWait, getWorld, hasRemainingPokemon, incrementFaintCount, isOnField, isPlayer, isTrainer, isWild, loadParty, loadParty, loadSingle, releasePokemon, resetMoveTimer, retrieveEntityDuringBattleUnlessRiding, revivePokemon, revivePokemon, selectAction, sendBattleMessage, sendBattleMessage, sendDamagePacket, sendHealPacket, sendPacket, setBattleAI, setWait, startBattle, switchAllFainted, 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
-
RaidPixelmonParticipant
Initializes a wild Raid Pokémon participant- Parameters:
pokemon- The Pokémon that the participant is representing.
-
-
Method Details
-
getWrapper
-
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.
-
hasMorePokemonReserve
public boolean hasMorePokemonReserve()Description copied from class:BattleParticipantFor use with switching in new Pokémon. Checks if they have Pokémon in reserve.- Overrides:
hasMorePokemonReservein classBattleParticipant- Returns:
- True if the player has a Pokémon in reserve.
-
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.
-
getName
public net.minecraft.network.chat.Component getName()Description copied from class:BattleParticipantGets the name of the participant.- Overrides:
getNamein classBattleParticipant- Returns:
- The name of the participant.
-
switchPokemon
Description copied from class:BattleParticipantSwitches the participant's Pokémon for another one.- Overrides:
switchPokemonin classBattleParticipant- Parameters:
pw- The Pokémon to switch out.newPixelmonUUID- The UUID of the Pokémon's to switch in.- Returns:
- The Pokémon who switched in.
-
getEntity
public net.minecraft.world.entity.LivingEntity getEntity()Description copied from class:BattleParticipantGets the entity that this participant is representing.- Specified by:
getEntityin interfaceBattleViewer- Overrides:
getEntityin classBattleParticipant- Returns:
- The entity that this participant is representing.
-
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.
-
areShieldsUp
public boolean areShieldsUp() -
onSwitchIn
- Overrides:
onSwitchInin classBattleParticipant
-
onEndTurn
- Overrides:
onEndTurnin classBattleParticipant
-
onTakeTurn
- Overrides:
onTakeTurnin classBattleParticipant
-
onUseAttack
- Overrides:
onUseAttackin classBattleParticipant
-
onUseAttackPost
- Overrides:
onUseAttackPostin classBattleParticipant
-
onUseAttackOther
public boolean onUseAttackOther(BattleController bc, Attack attack, BattleParticipant bp, PixelmonWrapper user) - Overrides:
onUseAttackOtherin classBattleParticipant
-
shockwave
-
onTargeted
- Overrides:
onTargetedin classBattleParticipant
-
onAddStatus
public boolean onAddStatus(BattleController bc, PixelmonWrapper user, PixelmonWrapper target, StatusBase status) - Overrides:
onAddStatusin classBattleParticipant
-
onHit
- Overrides:
onHitin classBattleParticipant
-
onOpponentKO
- Overrides:
onOpponentKOin classBattleParticipant
-
canDynamax
-
isAlive
public boolean isAlive() -
isRaid
public boolean isRaid()Description copied from class:BattleParticipantIf the participant is a raid.- Overrides:
isRaidin classBattleParticipant- Returns:
- Whether the participant is a raid.
-