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.net.minecraft.network.chat.MutableComponent
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 transferred via Entrainment.boolean
Returns whether the ability can be copied from an ally via Receiver.boolean
Returns whether the ability can be copied via Roleplay.boolean
Returns whether the ability can be part of a Skill Swap exchange.boolean
Returns whether the ability can be copied via Trace.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, adjustCritStage, allowsAttack, allowsIncomingAttack, allowsIncomingAttackMessage, allowsIncomingAttackTeammate, allowsOutgoingAttack, allowsStatChange, allowsStatChangeTeammate, allowsStatus, allowsStatusOpponent, allowsStatusTeammate, alwaysConsideredDamaged, applyAllySwitchInEffect, applyCritMultiplier, applyDynamaxEffect, applyEffectOnContactTarget, applyEffectOnContactTargetLate, applyEffectOnContactUser, applyEffectOnStatModified, applyFoeSwitchInEffect, applyPostSwitchEffect, applyRepeatedEffect, applyRepeatedEffectAfterStatus, applyStartOfBattleEffect, applyStartOfBattleHeadOfPartyEffect, applyStartOfTurnEffect, applySwitchReplaceEffect, canAttackThisTurn, canBeCopied, canBeDisabled, canBeIgnored, canPerish, doesAttackUserIgnoreProtect, doesContactAttackMakeContact, getMultiplier, ignoreEvasion, ignoresStatusTypeImmunity, ignoreWeather, isAbility, isAbility, isAbility, isAbility, isAbility, isNegativeAbility, modifyConfusionDamage, modifyDamage, modifyDamageIncludeFixed, modifyDamageTarget, modifyDamageTeammate, modifyDamageUser, modifyEffectiveTypes, 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, worksWithTransformedPokemon
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
public net.minecraft.network.chat.MutableComponent disguisedNicknameThe 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.
-
canBeRoleplayed
public boolean canBeRoleplayed()Description copied from interface:Ability
Returns whether the ability can be copied via Roleplay.- Returns:
- Whether the ability can be copied.
-
canBeReceived
public boolean canBeReceived()Description copied from interface:Ability
Returns whether the ability can be copied from an ally via Receiver.- Returns:
- Whether the ability can be Received from an ally.
-
canBeEntrained
public boolean canBeEntrained()Description copied from interface:Ability
Returns whether the ability can be transferred via Entrainment.- Returns:
- Whether the ability can be set on opponent.
-
canBeTraced
public boolean canBeTraced()Description copied from interface:Ability
Returns whether the ability can be copied via Trace.- Returns:
- Whether the ability can be Traced.
-
canBeSwapped
public boolean canBeSwapped()Description copied from interface:Ability
Returns whether the ability can be part of a Skill Swap exchange.- Returns:
- Whether the ability can be swapped.
-