Class Illusion
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
com.pixelmonmod.pixelmon.api.pokemon.ability.abilities.Illusion
- All Implemented Interfaces:
Ability
,RarityTweak
,ITranslatable
Disguises the Pokémon as the last Pokémon in the Trainer's party. The disguise fades if the Pokémon takes direct
damage.
-
Field Summary
Modifier and TypeFieldDescriptionThe form of the disguised Pokémon.The gender of the Pokémon to be disguised as.The name of the Pokémon to be disguised as.The texture of the Pokémon to be disguised as.The species of Pokémon to be disguised as. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyEndOfBattleEffect
(PixelmonWrapper pokemon) Triggers at the end of the battle.void
applySwitchInEffect
(PixelmonWrapper newPokemon) Triggers after the Pokémon switches in and when the Pokémon gains an Ability.void
applySwitchOutEffect
(PixelmonWrapper oldPokemon) Triggers when the Pokémon switches out.void
beforeSwitch
(PixelmonWrapper newPokemon) Triggers just before the Pokémon switches in.boolean
Returns whether the ability can be bypassed by moves that ignore abilities or not.boolean
Checks if a new instance of the Ability needs to be initialized if a Pokémon receives it in battle.void
onAbilityLost
(PixelmonWrapper pokemon) Triggers just before the Pokémon loses an Ability in battle.void
tookDamageTarget
(int damage, PixelmonWrapper user, PixelmonWrapper target, Attack a) Triggers after the Pokémon takes damage.Methods inherited from class com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
equals, getName, getNewInstance, getTranslationKey, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.pixelmonmod.pixelmon.api.pokemon.ability.Ability
adjustCriticalHitChance, allowsAttack, allowsIncomingAttack, allowsIncomingAttackMessage, allowsIncomingAttackTeammate, allowsOutgoingAttack, allowsStatChange, allowsStatChangeTeammate, allowsStatus, allowsStatusTeammate, alwaysConsideredDamaged, applyAllySwitchInEffect, applyDynamaxEffect, applyEffectOnContactTarget, applyEffectOnContactTargetLate, applyEffectOnContactUser, applyEffectOnStatModified, applyFoeSwitchInEffect, applyPostSwitchEffect, applyRepeatedEffect, applyRepeatedEffectAfterStatus, applyStartOfBattleEffect, applyStartOfBattleHeadOfPartyEffect, applyStartOfTurnEffect, applySwitchReplaceEffect, canAttackThisTurn, canBeCopied, canBeDisabled, canPerish, doesAttackUserIgnoreProtect, doesContactAttackMakeContact, getEffectiveTypes, getMultiplier, ignoreWeather, isAbility, isAbility, isAbility, isAbility, isAbility, isNegativeAbility, modifyConfusionDamage, modifyDamage, modifyDamageIncludeFixed, modifyDamageTarget, modifyDamageTeammate, modifyDamageUser, modifyMoveEffectChanceTarget, modifyMoveEffectChanceUser, modifyMoveEffects, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyTeammate, modifyPowerAndAccuracyUser, modifyPriority, modifySelfDamage, modifyStab, modifyStats, modifyStatsCancellable, modifyStatsCancellableOther, modifyStatsCancellableTeammate, modifyStatsOther, modifyStatsTeammate, modifyType, modifyWeight, onAllyFaint, onBerryEaten, onDamageReceived, onFoeFaint, onHealed, onItemChanged, onItemConsumed, onSelfFaint, onStatDecrease, onStatIncrease, onStatusAdded, onTerrainSwitch, onWeatherChange, postProcessAttack, postProcessAttackOther, postProcessAttackUser, postProcessAttackUserHitOrMiss, preProcessAttack, preProcessAttackStatBeforeDamageCalc, preProcessAttackUser, preventsCriticalHits, preventsItemRemoval, preventsRedirection, redirectAttack, sendActivatedMessage, startMove, stopsForcedSwitches, stopsSwitching, tookDamageTargetAfterMove, tookDamageUser
Methods inherited from interface com.pixelmonmod.pixelmon.api.util.ITranslatable
getLocalizedName, getTranslatedName
-
Field Details
-
disguisedPokemon
The species of Pokémon to be disguised as. -
disguisedNickname
The name of the Pokémon to be disguised as. -
disguisedGender
The gender of the Pokémon to be disguised as. -
disguisedForm
The form of the disguised Pokémon. -
disguisedPalette
The texture of the Pokémon to be disguised as.
-
-
Constructor Details
-
Illusion
public Illusion()
-
-
Method Details
-
beforeSwitch
Description copied from interface:Ability
Triggers just before the Pokémon switches in.- Parameters:
newPokemon
- The Pokémon switching in.
-
applySwitchInEffect
Description copied from interface:Ability
Triggers after the Pokémon switches in and when the Pokémon gains an Ability.- Parameters:
newPokemon
- The Pokémon switching in.
-
tookDamageTarget
Description copied from interface:Ability
Triggers after the Pokémon takes damage.- Parameters:
damage
- The amount of damage dealt.user
- The attack's user.target
- The attack's target.a
- The attack.
-
onAbilityLost
Description copied from interface:Ability
Triggers just before the Pokémon loses an Ability in battle.- Parameters:
pokemon
- The Pokémon with the Ability.
-
applySwitchOutEffect
Description copied from interface:Ability
Triggers when the Pokémon switches out.- Parameters:
oldPokemon
- The Pokémon switching out.
-
applyEndOfBattleEffect
Description copied from interface:Ability
Triggers at the end of the battle.- Parameters:
pokemon
- The Pokémon in battle at the battle's end.
-
needNewInstance
public boolean needNewInstance()Description copied from interface:Ability
Checks if a new instance of the Ability needs to be initialized if a Pokémon receives it in battle.- Returns:
- Whether a new instance of the Ability needs to be initialized if a Pokémon receives it in battle.
-
canBeIgnored
public boolean canBeIgnored()Description copied from interface:Ability
Returns whether the ability can be bypassed by moves that ignore abilities or not.- Returns:
- Whether the ability can be ignored.
-