Class Sandstorm
java.lang.Object
com.pixelmonmod.pixelmon.battles.attacks.EffectBase
com.pixelmonmod.pixelmon.battles.status.StatusBase
com.pixelmonmod.pixelmon.battles.status.GlobalStatusBase
com.pixelmonmod.pixelmon.battles.status.Weather
com.pixelmonmod.pixelmon.battles.status.Sandstorm
Deals residual 1/16 damage to Pokémon that are not Rock, Ground, or Steel types. 1.5x Special Defense boost to Rock
types.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.battles.status.Weather
extreme, isOverworldWeather, langContinue, langEnd, langStart, turnsToGo, weatherRockFields 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 TypeMethodDescriptionvoidTriggers at the end of every turn.copy()If necessary, makes a deep copy of the status.protected intcountBenefits(PixelmonWrapper user, PixelmonWrapper target) Counts the number of ways that the target Pokémon benefits from the weather.protected WeathergetNewInstance(int turns) Gets a new instance of the subclass.booleanChecks 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.Methods inherited from class com.pixelmonmod.pixelmon.battles.status.Weather
applyEffect, applyRepeatedEffect, getIsOverworldWeather, getLangContinue, getRemainingTurns, setRemainingTurns, setStartTurns, toString, weightEffectMethods inherited from class com.pixelmonmod.pixelmon.battles.status.GlobalStatusBase
applyEffectAfterStatus, ignoreWeather, isTerrain, isWeatherMethods 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, modifyStatsCancellable, modifyWeight, onAttackEnd, onAttackUsed, onDamageReceived, onDynamaxTriggered, onEndOfAttackersTurn, onEndOfTurn, onFormChanged, redirectAttack, skipsTurn, stopsEvolution, stopsForcedSwitches, stopsIncomingAttack, stopsIncomingAttackMessage, stopsIncomingAttackUser, stopsSelfStatusMove, stopsStatusChange, stopsSwitchingMethods 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, preventsRedirection, setChance
-
Constructor Details
-
Sandstorm
public Sandstorm()Initializes a sandstorm. -
Sandstorm
public Sandstorm(int turnsToGo) Initializes a sandstorm.- Parameters:
turnsToGo- The amount of turns for sandstorm to last.
-
Sandstorm
public Sandstorm(int turnsToGo, boolean isOverworldWeather) Initializes a sandstorm.- Parameters:
turnsToGo- The amount of turns for sandstorm to last.isOverworldWeather- Whether this weather is created due to the current weather in the Minecraft world.
-
-
Method Details
-
getNewInstance
Description copied from class:WeatherGets a new instance of the subclass.- Specified by:
getNewInstancein 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:WeatherTriggers at the end of every turn.- Overrides:
applyRepeatedEffectin classWeather- Parameters:
bc- The battle that the weather is in.
-
isImmune
Description copied from class:StatusBaseChecks if the Pokémon is immune to the status.- Overrides:
isImmunein classStatusBase- Parameters:
p- The Pokémon to check.- Returns:
- Whether the Pokémon is immune to the status.
-
modifyStats
Description copied from class:StatusBaseModifies the Pokémon's stats at the beginning of a battle turn.- Overrides:
modifyStatsin classStatusBase- Parameters:
user- The Pokémon.stats- The Pokémon's stats.- Returns:
- The modified stats.
-
countBenefits
Description copied from class:WeatherCounts the number of ways that the target Pokémon benefits from the weather.- Specified by:
countBenefitsin 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:StatusBaseIf necessary, makes a deep copy of the status.- Overrides:
copyin classStatusBase- Returns:
- A deep copy of the status.
-