Class Hail
Damages all non-Ice-type Pokémon by 1/16 hp each turn.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.battles.status.Weather
extreme, isOverworldWeather, langContinue, langEnd, langStart, turnsToGo, weatherRock
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 TypeMethodDescriptionvoid
Triggers at the end of every turn.copy()
If necessary, makes a deep copy of the status.protected int
countBenefits
(PixelmonWrapper user, PixelmonWrapper target) Counts the number of ways that the target Pokémon benefits from the weather.protected Weather
getNewInstance
(int turns) Gets a new instance of the subclass.boolean
Checks if the Pokémon is immune to the status.Methods inherited from class com.pixelmonmod.pixelmon.battles.status.Weather
applyEffect, applyRepeatedEffect, getIsOverworldWeather, getLangContinue, getRemainingTurns, setStartTurns, toString, weightEffect
Methods inherited from class com.pixelmonmod.pixelmon.battles.status.GlobalStatusBase
applyEffectAfterStatus, ignoreWeather, isTerrain, isWeather
Methods inherited from class com.pixelmonmod.pixelmon.battles.status.StatusBase
adjustCritStage, allowsStatChange, applyBeforeEffect, applyEffectOnSwitch, applyEndOfBattleEffect, applyRepeatedEffect, applySwitchOutEffect, canAttackThisTurn, cantMiss, getCureMessage, getCureMessageItem, getNewInstance, ignoreStatus, isTeamStatus, isWholeTeamStatus, modifyBaseStats, modifyDamageIncludeFixed, modifyEffectiveTypes, modifyMoveEffectChanceTarget, modifyMoveEffectChanceUser, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyUser, modifyStats, modifyStatsCancellable, modifyWeight, onAttackEnd, onAttackUsed, onDamageReceived, onDynamaxTriggered, onEndOfAttackersTurn, onEndOfTurn, onFormChanged, redirectAttack, skipsTurn, stopsEvolution, stopsForcedSwitches, stopsIncomingAttack, stopsIncomingAttackMessage, stopsIncomingAttackUser, stopsSelfStatusMove, stopsStatusChange, stopsSwitching
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
-
Constructor Details
-
Hail
public Hail()Initializes hail. -
Hail
public Hail(int turnsToGo) Initializes hail.- Parameters:
turnsToGo
- The number of turns for hail to last.
-
Hail
public Hail(int turnsToGo, boolean isOverworldWeather) Initializes hail.- Parameters:
turnsToGo
- The number of turns for hail to last.isOverworldWeather
- Whether this weather is created due to the current weather in the Minecraft world.
-
-
Method Details
-
getNewInstance
Description copied from class:Weather
Gets a new instance of the subclass.- Specified by:
getNewInstance
in classWeather
- Parameters:
turns
- The number of turns that the weather will last for.- Returns:
- A new instance of the subclass.
-
applyRepeatedEffect
Description copied from class:Weather
Triggers at the end of every turn.- Overrides:
applyRepeatedEffect
in classWeather
- Parameters:
bc
- The battle that the weather is in.
-
isImmune
Description copied from class:StatusBase
Checks if the Pokémon is immune to the status.- Overrides:
isImmune
in classStatusBase
- Parameters:
p
- The Pokémon to check.- Returns:
- Whether the Pokémon is immune to the status.
-
countBenefits
Description copied from class:Weather
Counts the number of ways that the target Pokémon benefits from the weather.- Specified by:
countBenefits
in classWeather
- Parameters:
user
- The Pokémon using the weather move.target
- The Pokémon to count benefits for.- Returns:
- The number of ways that the target Pokémon benefits from the weather.
-
copy
Description copied from class:StatusBase
If necessary, makes a deep copy of the status.- Overrides:
copy
in classStatusBase
- Returns:
- A deep copy of the status.
-