Interface ShieldRaidStrategy
- All Superinterfaces:
RaidStrategy
- All Known Implementing Classes:
DynamaxShieldRaidStrategy,TeraShieldRaidStrategy
-
Field Summary
Fields inherited from interface com.pixelmonmod.pixelmon.battles.raids.strategy.RaidStrategy
CODEC -
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault booleanbooleancanTarget(BattleParticipant boss, PixelmonWrapper user, Attack attack) floatmodifyDamage(BattleParticipant boss, PixelmonWrapper attacker, float damage, DamageTypeEnum damageType) default booleanonAddStatus(BattleParticipant boss, PixelmonWrapper user, PixelmonWrapper target, StatusBase status) Called when a status is about to be applied while the raid boss is involved.default floatonBossDamaged(BattleParticipant boss, PixelmonWrapper attacker, float damage, DamageTypeEnum damageType) Called when the raid boss is about to take damage.voidonFailedAttack(BattleParticipant boss, PixelmonWrapper user, Attack attack) voidonOHKO(BattleParticipant boss, PixelmonWrapper user, Attack attack) default voidonShieldsRaisedFromDamage(BattleParticipant boss, PixelmonWrapper attacker, float damage, DamageTypeEnum damageType) default booleanonTargeted(BattleParticipant boss, PixelmonWrapper user, Attack attack) Called when the raid boss is targeted by an attack.default voidonTurnEnd(BattleParticipant boss) Called when a battle turn ends for the raid boss participant.default booleanonUseAttackOther(BattleParticipant boss, BattleParticipant user, PixelmonWrapper attacker, Attack attack) Called when another participant attempts to use an attack while the raid boss is present.voidvoidshieldsHit(BattleParticipant boss, PixelmonWrapper attacker, float damage, DamageTypeEnum damageType) default RaidShieldStateshieldState(BattleParticipant boss) booleanshouldBlockStatus(BattleParticipant boss, StatusBase status) booleanshouldFail(BattleParticipant boss, Attack attack) booleandefault booleanshouldRaiseShieldsFromDamage(BattleParticipant boss, PixelmonWrapper attacker, float damage, DamageTypeEnum damageType) default voidupdate(BattleParticipant boss) Called from the raid boss participant tick.Methods inherited from interface com.pixelmonmod.pixelmon.battles.raids.strategy.RaidStrategy
onBattleAction, onBossAttack, onPokemonFainted, onPokemonSwitchIn, onRaidEnd, onRaidStart, onTakeTurn, onUseAttackPost, shouldKeepFaintedPokemon, shouldSkipTurnAgainstOpponent, type
-
Method Details
-
update
Description copied from interface:RaidStrategyCalled from the raid boss participant tick.Use this for real-time behavior that is not tied to turn boundaries, such as Tera Raid timers or delayed revival.
- Specified by:
updatein interfaceRaidStrategy- Parameters:
boss- The raid boss participant.
-
onTurnEnd
Description copied from interface:RaidStrategyCalled when a battle turn ends for the raid boss participant.- Specified by:
onTurnEndin interfaceRaidStrategy- Parameters:
boss- The raid boss participant.
-
onBossDamaged
default float onBossDamaged(BattleParticipant boss, PixelmonWrapper attacker, float damage, DamageTypeEnum damageType) Description copied from interface:RaidStrategyCalled when the raid boss is about to take damage.The returned value is the damage that should continue through the battle damage flow. Composite strategy dispatch passes the returned value from one strategy into the next.
- Specified by:
onBossDamagedin interfaceRaidStrategy- Parameters:
boss- The raid boss participant.attacker- The Pokemon that caused the damage.damage- The incoming damage amount.damageType- The kind of damage being applied.- Returns:
- The damage amount to apply after this strategy has handled it.
-
onUseAttackOther
default boolean onUseAttackOther(BattleParticipant boss, BattleParticipant user, PixelmonWrapper attacker, Attack attack) Description copied from interface:RaidStrategyCalled when another participant attempts to use an attack while the raid boss is present.Return
truewhen the strategy handled or blocked the attack. This prevents later strategies in the composite from also handling the same attack.- Specified by:
onUseAttackOtherin interfaceRaidStrategy- Parameters:
boss- The raid boss participant.user- The participant using the attack.attacker- The Pokemon using the attack.attack- The attack being used.- Returns:
- Whether this strategy handled or blocked the attack.
-
onTargeted
Description copied from interface:RaidStrategyCalled when the raid boss is targeted by an attack.- Specified by:
onTargetedin interfaceRaidStrategy- Parameters:
boss- The raid boss participant.user- The Pokemon targeting the raid boss.attack- The attack being used.- Returns:
trueif targeting should be blocked.
-
onAddStatus
default boolean onAddStatus(BattleParticipant boss, PixelmonWrapper user, PixelmonWrapper target, StatusBase status) Description copied from interface:RaidStrategyCalled when a status is about to be applied while the raid boss is involved.- Specified by:
onAddStatusin interfaceRaidStrategy- Parameters:
boss- The raid boss participant.user- The Pokemon applying the status.target- The Pokemon receiving the status.status- The status being applied.- Returns:
trueif the status should be blocked.
-
areShieldsUp
-
shieldState
-
shouldRaiseShields
-
raiseShields
-
shouldRaiseShieldsFromDamage
default boolean shouldRaiseShieldsFromDamage(BattleParticipant boss, PixelmonWrapper attacker, float damage, DamageTypeEnum damageType) -
onShieldsRaisedFromDamage
default void onShieldsRaisedFromDamage(BattleParticipant boss, PixelmonWrapper attacker, float damage, DamageTypeEnum damageType) -
blocksTriggeringDamage
-
modifyDamage
float modifyDamage(BattleParticipant boss, PixelmonWrapper attacker, float damage, DamageTypeEnum damageType) -
shieldsHit
void shieldsHit(BattleParticipant boss, PixelmonWrapper attacker, float damage, DamageTypeEnum damageType) -
onOHKO
-
shouldFail
-
onFailedAttack
-
canTarget
-
shouldBlockStatus
-