Class EntityParticipant
java.lang.Object
com.pixelmonmod.pixelmon.battles.controller.participants.BattleParticipant
com.pixelmonmod.pixelmon.battles.controller.participants.EntityParticipant
- All Implemented Interfaces:
BattleViewer
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BattleAIModeprotected final BossTierprotected final booleanprotected final booleanprotected final PartyStorageFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityParticipant.Builderbuilder()booleanChecks if the participant is allowed to Dynamax Pokémon.booleanChecks if the participant is allowed to Mega Evolve 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.Returns the Pokémon storage of the participant.booleanIf the participant is a trainer.voidAdds the participant to a battle.Methods inherited from class com.pixelmonmod.pixelmon.battles.controller.participants.BattleParticipant
addSwitchingOut, canSwitch, checkPokemon, clearMovement, clearTurnVariables, convertEntitiesToWrapper, convertPokemonToWrapper, countAblePokemon, countFaintedPokemon, countHealthPercent, countPartyPokemon, faintedLastTurn, getActiveUnfaintedPokemon, getAllies, getAllyData, getBattleAI, getDisplayName, getEntity, getFaintedPokemon, getHighestLevel, getLevelCap, getMove, getName, getNextPokemon, getOpponentPokemon, getOpponents, getPartyPokemonFromUUID, getPartyPosition, getPokemonFromParty, getPokemonFromUUID, getRandomPartyPokemon, getTeamPokemon, getTeamPokemonUUIDs, getTotalFainted, getTurnTimeSeconds, getUniqueId, getWait, getWorld, hasMorePokemon, hasMorePokemonReserve, hasRemainingPokemon, incrementFaintCount, isOnField, isPlayer, isRaid, isWild, 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
-
Field Details
-
storage
-
bossTier
-
aiMode
-
canMega
protected final boolean canMega -
canDynamax
protected final boolean canDynamax
-
-
Constructor Details
-
EntityParticipant
-
-
Method Details
-
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.
-
canMegaEvolve
public boolean canMegaEvolve()Description copied from class:BattleParticipantChecks if the participant is allowed to Mega Evolve Pokémon.- Overrides:
canMegaEvolvein classBattleParticipant- Returns:
- Whether the participant is allowed to Mega Evolve Pokémon.
-
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.
-
endBattle
Description copied from class:BattleParticipantEnds the battle the participant is in.- Specified by:
endBattlein classBattleParticipant
-
getStorage
Description copied from class:BattleParticipantReturns the Pokémon storage of the participant.- Overrides:
getStoragein classBattleParticipant- Returns:
- The Pokémon storage of the participant.
-
isTrainer
public boolean isTrainer()Description copied from class:BattleParticipantIf the participant is a trainer.- Overrides:
isTrainerin classBattleParticipant- Returns:
- Whether the participant is a trainer.
-
builder
-