Class UnderGround
java.lang.Object
com.pixelmonmod.pixelmon.battles.attacks.EffectBase
com.pixelmonmod.pixelmon.battles.status.StatusBase
com.pixelmonmod.pixelmon.battles.status.UnderGround
Prevents most moves from hitting the Pokémon.
Used when executing Dig.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.battles.status.StatusBase
battleTurnGained, turnGained, typeFields inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
modifiers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstopsIncomingAttack(PixelmonWrapper pokemon, PixelmonWrapper user) Determines whether the status stops an attack about to hit the statused Pokémon.voidstopsIncomingAttackMessage(PixelmonWrapper pokemon, PixelmonWrapper user) Displays a battle message when the status stops an attack.booleanDetermines 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, stopsForcedSwitches, stopsIncomingAttackUser, stopsSelfStatusMove, stopsStatusChangeMethods 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
-
UnderGround
public UnderGround()Initializes the status.
-
-
Method Details
-
stopsSwitching
public boolean stopsSwitching()Description copied from class:StatusBaseDetermines whether the status stops switching.- Overrides:
stopsSwitchingin classStatusBase- Returns:
- Whether the status stops switching.
-
stopsIncomingAttack
Description copied from class:StatusBaseDetermines whether the status stops an attack about to hit the statused Pokémon.- Overrides:
stopsIncomingAttackin classStatusBase- Parameters:
pokemon- The statused Pokémon.user- The attack's user.- Returns:
- Whether the attack is stopped.
-
stopsIncomingAttackMessage
Description copied from class:StatusBaseDisplays a battle message when the status stops an attack.- Overrides:
stopsIncomingAttackMessagein classStatusBase- Parameters:
pokemon- The statused Pokémon.user- The attack's user.
-