Class Sunny
Increases the power of Fire-type moves by 50% and decreases the power of Water-type moves by 50%.
-
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 TypeMethodDescriptioncopy()
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.int[]
modifyPowerAndAccuracyTarget
(int power, int accuracy, PixelmonWrapper user, PixelmonWrapper target, Attack a) Modifies the power and accuracy of the attack about to hit the statused Pokémon.boolean
stopsIncomingAttack
(PixelmonWrapper pokemon, PixelmonWrapper user) Determines whether the status stops an attack about to hit the statused Pokémon.Methods inherited from class com.pixelmonmod.pixelmon.battles.status.Weather
applyEffect, applyRepeatedEffect, 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, isImmune, isTeamStatus, isWholeTeamStatus, modifyBaseStats, modifyDamageIncludeFixed, modifyEffectiveTypes, modifyMoveEffectChanceTarget, modifyMoveEffectChanceUser, modifyPowerAndAccuracyUser, modifyStats, modifyStatsCancellable, modifyWeight, onAttackEnd, onAttackUsed, onDamageReceived, onDynamaxTriggered, onEndOfAttackersTurn, onEndOfTurn, onFormChanged, redirectAttack, skipsTurn, stopsEvolution, stopsForcedSwitches, 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
-
Sunny
public Sunny()Initializes intense sunlight. -
Sunny
public Sunny(boolean extreme) -
Sunny
public Sunny(int turnsToGo) Initializes intense sunlight.- Parameters:
turnsToGo
- The duration of intense sunlight.
-
Sunny
public Sunny(int turnsToGo, boolean isOverworldWeather) Initializes intense sunlight.- Parameters:
turnsToGo
- The duration of intense sunlight.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.
-
modifyPowerAndAccuracyTarget
public int[] modifyPowerAndAccuracyTarget(int power, int accuracy, PixelmonWrapper user, PixelmonWrapper target, Attack a) Description copied from class:StatusBase
Modifies the power and accuracy of the attack about to hit the statused Pokémon.- Overrides:
modifyPowerAndAccuracyTarget
in classStatusBase
- Parameters:
power
- The attack's power.accuracy
- The attack's accuracy.user
- The attack's user.target
- The attack's target.a
- The attack.- Returns:
- The modified power and accuracy.
-
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.
-
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.
-