Class SkyDropBase
java.lang.Object
com.pixelmonmod.pixelmon.battles.attacks.EffectBase
com.pixelmonmod.pixelmon.battles.status.StatusBase
com.pixelmonmod.pixelmon.battles.status.SkyDropBase
- Direct Known Subclasses:
SkyDropped
,SkyDropping
Shared functionality between both sides of Sky Drop.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.battles.status.StatusBase
battleTurnGained, turnGained, type
Fields inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
modifiers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether the status prevents another Pokémon from switching them.boolean
stopsIncomingAttack
(PixelmonWrapper pokemon, PixelmonWrapper user) Determines whether the status stops an attack about to hit the statused Pokémon.void
stopsIncomingAttackMessage
(PixelmonWrapper pokemon, PixelmonWrapper user) Displays a battle message when the status stops an attack.boolean
Determines whether the status stops switching.Methods inherited from class com.pixelmonmod.pixelmon.battles.status.StatusBase
adjustCritStage, allowsStatChange, applyBeforeEffect, applyEffect, applyEffectOnSwitch, applyEndOfBattleEffect, applyRepeatedEffect, applySwitchOutEffect, canAttackThisTurn, cantMiss, copy, getCureMessage, getCureMessageItem, getNewInstance, ignoreStatus, isImmune, isTeamStatus, isWholeTeamStatus, modifyBaseStats, modifyDamageIncludeFixed, modifyEffectiveTypes, modifyMoveEffectChanceTarget, modifyMoveEffectChanceUser, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyUser, modifyStats, modifyStatsCancellable, modifyWeight, onAttackEnd, onAttackUsed, onDamageReceived, onDynamaxTriggered, onEndOfAttackersTurn, onEndOfTurn, onFormChanged, redirectAttack, skipsTurn, stopsEvolution, stopsIncomingAttackUser, stopsSelfStatusMove, stopsStatusChange
Methods inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
applyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyEffectStart, applyMissEffect, canHitMultipleTargets, changeChance, checkChance, dealtDamage, dealtDamagePerHit, doesPersist, getChance, getWeightWithChance, isChance, isUser, modifyDamage, modifyPriority, modifyTargets, modifyTypeEffectiveness, modifyTypeEffectiveness, preventsRedirection, setChance, weightEffect
-
Constructor Details
-
SkyDropBase
Initializes the status.- Parameters:
type
- The status's type.
-
-
Method Details
-
stopsSwitching
public boolean stopsSwitching()Description copied from class:StatusBase
Determines whether the status stops switching.- Overrides:
stopsSwitching
in classStatusBase
- Returns:
- Whether the status stops switching.
-
stopsForcedSwitches
Description copied from class:StatusBase
Determines whether the status prevents another Pokémon from switching them.- Overrides:
stopsForcedSwitches
in classStatusBase
- Parameters:
pw
- The Pokémon triggering the switch.- Returns:
- Whether the status stops the forced switch.
-
stopsIncomingAttack
Description copied from class:StatusBase
Determines whether the status stops an attack about to hit the statused Pokémon.- Overrides:
stopsIncomingAttack
in classStatusBase
- Parameters:
pokemon
- The statused Pokémon.user
- The attack's user.- Returns:
- Whether the attack is stopped.
-
stopsIncomingAttackMessage
Description copied from class:StatusBase
Displays a battle message when the status stops an attack.- Overrides:
stopsIncomingAttackMessage
in classStatusBase
- Parameters:
pokemon
- The statused Pokémon.user
- The attack's user.
-