public class Sandstorm extends Weather
extreme, isOverworldWeather, langContinue, langEnd, langStart, turnsToGo, weatherRock
type
modifiers
Constructor and Description |
---|
Sandstorm()
Initializes a sandstorm.
|
Sandstorm(int turnsToGo)
Initializes a sandstorm.
|
Sandstorm(int turnsToGo,
boolean isOverworldWeather)
Initializes a sandstorm.
|
Modifier and Type | Method and Description |
---|---|
void |
applyRepeatedEffect(BattleController bc)
Triggers at the end of every turn.
|
StatusBase |
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 |
isImmune(PixelmonWrapper p)
Checks if the Pokémon is immune to the status.
|
int[] |
modifyStats(PixelmonWrapper user,
int[] stats)
Modifies the Pokémon's stats at the beginning of a battle turn.
|
applyEffect, applyRepeatedEffect, getIsOverworldWeather, getLangContinue, getRemainingTurns, setStartTurns, toString, weightEffect
ignoreWeather, isTerrain, isWeather
allowsStatChange, applyBeforeEffect, applyEffectOnSwitch, applyEndOfBattleEffect, applyRepeatedEffect, applySwitchOutEffect, canAttackThisTurn, cantMiss, getCureMessage, getCureMessageItem, getEffectiveTypes, getNewInstance, ignoreStatus, isTeamStatus, isWholeTeamStatus, modifyBaseStats, modifyDamageIncludeFixed, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyUser, modifyStatsCancellable, modifyWeight, onAttackEnd, onAttackUsed, onDamageReceived, onEndOfAttackersTurn, onEndOfTurn, redirectAttack, skipsTurn, stopsForcedSwitches, stopsIncomingAttack, stopsIncomingAttackMessage, stopsIncomingAttackUser, stopsSelfStatusMove, stopsStatusChange, stopsSwitching
applyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyEffectStart, applyMissEffect, changeChance, checkChance, dealtDamage, doesPersist, getChance, getWeightWithChance, isChance, modifyDamage, modifyPriority, modifyTypeEffectiveness, modifyTypeEffectiveness
public Sandstorm()
public Sandstorm(int turnsToGo)
turnsToGo
- The amount of turns for sandstorm to last.public Sandstorm(int turnsToGo, boolean isOverworldWeather)
turnsToGo
- The amount of turns for sandstorm to last.isOverworldWeather
- Whether this weather is created due to the current weather in the Minecraft world.protected Weather getNewInstance(int turns)
Weather
getNewInstance
in class Weather
turns
- The number of turns that the weather will last for.public void applyRepeatedEffect(BattleController bc)
Weather
applyRepeatedEffect
in class Weather
bc
- The battle that the weather is in.public boolean isImmune(PixelmonWrapper p)
StatusBase
isImmune
in class StatusBase
p
- The Pokémon to check.public int[] modifyStats(PixelmonWrapper user, int[] stats)
StatusBase
modifyStats
in class StatusBase
user
- The Pokémon.stats
- The Pokémon's stats.protected int countBenefits(PixelmonWrapper user, PixelmonWrapper target)
Weather
countBenefits
in class Weather
user
- The Pokémon using the weather move.target
- The Pokémon to count benefits for.public StatusBase copy()
StatusBase
copy
in class StatusBase