Class Transformed
java.lang.Object
com.pixelmonmod.pixelmon.battles.attacks.EffectBase
com.pixelmonmod.pixelmon.battles.status.StatusBase
com.pixelmonmod.pixelmon.battles.status.Transformed
Copies moves, Ability, stats, type, and appearance of target.
-
Field Summary
Modifier and TypeFieldDescriptionThe form of the transformed Pokémon.The gender of the Pokémon that has been transformed into.The palette of the Pokémon to be transformed into.The species of Pokémon transformed into.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
ConstructorDescriptionTransformed
(PixelmonWrapper user, PixelmonWrapper target) Copies target's attributes to user. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
applyBeforeEffect
(PixelmonWrapper user, PixelmonWrapper target) Triggers when the Pokémon gains the status.void
applyEndOfBattleEffect
(PixelmonWrapper pokemon) Triggers when the battle ends.static void
void
changeTransformedSprite
(PixelmonWrapper user, PixelmonWrapper target) Set values to change the transformed Pokémon's sprite.static List<StatusType>
int[]
modifyBaseStats
(PixelmonWrapper user, int[] stats) Modifies the Pokémon's base stats at the beginning of a battle turn.float
modifyWeight
(float weight) Modifies the Pokémon's weight.Methods inherited from class com.pixelmonmod.pixelmon.battles.status.StatusBase
adjustCritStage, allowsStatChange, applyEffect, applyEffectOnSwitch, applyRepeatedEffect, applySwitchOutEffect, canAttackThisTurn, cantMiss, copy, getCureMessage, getCureMessageItem, getNewInstance, ignoreStatus, isImmune, isTeamStatus, isWholeTeamStatus, modifyDamageIncludeFixed, modifyEffectiveTypes, modifyMoveEffectChanceTarget, modifyMoveEffectChanceUser, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyUser, modifyStats, modifyStatsCancellable, 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, weightEffect
-
Field Details
-
transformedPokemon
The species of Pokémon transformed into. -
transformedGender
The gender of the Pokémon that has been transformed into. -
transformedForm
The form of the transformed Pokémon. -
transformedPalette
The palette of the Pokémon to be transformed into.
-
-
Constructor Details
-
Transformed
Copies target's attributes to user.- Parameters:
user
- Transform's user.target
- Pokémon that Transform copies.
-
-
Method Details
-
copiedStatuses
-
applyBattleChanges
-
changeTransformedSprite
Set values to change the transformed Pokémon's sprite. We don't want to change the nickname, because we aren't trying to hide what Pokémon it actually is.- Parameters:
user
- Transform's user.target
- Pokémon that Transform copies.
-
applyToClientEntity
-
applyBeforeEffect
Description copied from class:StatusBase
Triggers when the Pokémon gains the status.- Overrides:
applyBeforeEffect
in classStatusBase
- Parameters:
user
- The statused Pokémon.target
- The attack's target.
-
applyEndOfBattleEffect
Description copied from class:StatusBase
Triggers when the battle ends.- Overrides:
applyEndOfBattleEffect
in classStatusBase
- Parameters:
pokemon
- The statused Pokémon.
-
modifyBaseStats
Description copied from class:StatusBase
Modifies the Pokémon's base stats at the beginning of a battle turn.- Overrides:
modifyBaseStats
in classStatusBase
- Parameters:
user
- The Pokémon.stats
- The Pokémon's stats.- Returns:
- The modified stats.
-
modifyWeight
public float modifyWeight(float weight) Description copied from class:StatusBase
Modifies the Pokémon's weight.- Overrides:
modifyWeight
in classStatusBase
- Parameters:
weight
- The Pokémon's weight.- Returns:
- The modified weight.
-