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
ConstructorDescriptionRaidPixelmonParticipant
(RaidData raid, RaidSettings settings, Pokemon pokemon) Initializes a wild Raid Pokémon participant -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Checks if the participant is allowed to Dynamax Pokémon.boolean
canDynamax
(BattleParticipant participant) 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.world.entity.LivingEntity
Gets the entity that this participant is representing.net.minecraft.network.chat.Component
getName()
Gets the name of the participant.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
For use with switching in new Pokémon.boolean
isAlive()
boolean
isRaid()
If the participant is a raid.boolean
onAddStatus
(BattleController bc, PixelmonWrapper user, PixelmonWrapper target, StatusBase status) void
float
onHit
(PixelmonWrapper source, float damage, DamageTypeEnum damageType) void
void
boolean
boolean
onTargeted
(PixelmonWrapper user, Attack attack) boolean
boolean
onUseAttackOther
(BattleController bc, Attack attack, BattleParticipant bp, PixelmonWrapper user) void
void
Adds the participant to a battle.void
switchPokemon
(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, 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
-
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: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.
-
hasMorePokemonReserve
public boolean hasMorePokemonReserve()Description copied from class:BattleParticipant
For use with switching in new Pokémon. Checks if they have Pokémon in reserve.- Overrides:
hasMorePokemonReserve
in classBattleParticipant
- Returns:
- True if the player has a Pokémon in reserve.
-
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.
-
getName
public net.minecraft.network.chat.Component getName()Description copied from class:BattleParticipant
Gets the name of the participant.- Overrides:
getName
in classBattleParticipant
- Returns:
- The name of the participant.
-
switchPokemon
Description copied from class:BattleParticipant
Switches the participant's Pokémon for another one.- Overrides:
switchPokemon
in 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:BattleParticipant
Gets the entity that this participant is representing.- Specified by:
getEntity
in interfaceBattleViewer
- Overrides:
getEntity
in classBattleParticipant
- Returns:
- The entity that this participant is representing.
-
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.
-
areShieldsUp
public boolean areShieldsUp() -
onSwitchIn
- Overrides:
onSwitchIn
in classBattleParticipant
-
onEndTurn
- Overrides:
onEndTurn
in classBattleParticipant
-
onTakeTurn
- Overrides:
onTakeTurn
in classBattleParticipant
-
onUseAttack
- Overrides:
onUseAttack
in classBattleParticipant
-
onUseAttackPost
- Overrides:
onUseAttackPost
in classBattleParticipant
-
onUseAttackOther
public boolean onUseAttackOther(BattleController bc, Attack attack, BattleParticipant bp, PixelmonWrapper user) - Overrides:
onUseAttackOther
in classBattleParticipant
-
shockwave
-
onTargeted
- Overrides:
onTargeted
in classBattleParticipant
-
onAddStatus
public boolean onAddStatus(BattleController bc, PixelmonWrapper user, PixelmonWrapper target, StatusBase status) - Overrides:
onAddStatus
in classBattleParticipant
-
onHit
- Overrides:
onHit
in classBattleParticipant
-
onOpponentKO
- Overrides:
onOpponentKO
in classBattleParticipant
-
canDynamax
-
isAlive
public boolean isAlive() -
isRaid
public boolean isRaid()Description copied from class:BattleParticipant
If the participant is a raid.- Overrides:
isRaid
in classBattleParticipant
- Returns:
- Whether the participant is a raid.
-