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
FieldsModifier and TypeFieldDescriptionThe form of the disguised Pokémon.The gender of the Pokémon to be disguised as.net.minecraft.network.chat.MutableComponentThe 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyEndOfBattleEffect(PixelmonWrapper pokemon) Triggers at the end of the battle.voidapplySwitchInEffect(PixelmonWrapper newPokemon) Triggers after the Pokémon switches in and when the Pokémon gains an Ability.voidapplySwitchOutEffect(PixelmonWrapper oldPokemon) Triggers when the Pokémon switches out.voidbeforeSwitch(PixelmonWrapper newPokemon) Triggers just before the Pokémon switches in.booleanReturns whether the ability can be transferred via Entrainment.booleanReturns whether the ability can be copied from an ally via Receiver.booleanReturns whether the ability can be copied via Roleplay.booleanReturns whether the ability can be part of a Skill Swap exchange.booleanReturns whether the ability can be copied via Trace.booleanChecks if a new instance of the Ability needs to be initialized if a Pokémon receives it in battle.voidonAbilityLost(PixelmonWrapper pokemon) Triggers just before the Pokémon loses an Ability in battle.voidtookDamageTarget(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, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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, worksWithTransformedPokemonMethods 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:AbilityTriggers just before the Pokémon switches in.- Parameters:
newPokemon- The Pokémon switching in.
-
applySwitchInEffect
Description copied from interface:AbilityTriggers 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:AbilityTriggers 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:AbilityTriggers just before the Pokémon loses an Ability in battle.- Parameters:
pokemon- The Pokémon with the Ability.
-
applySwitchOutEffect
Description copied from interface:AbilityTriggers when the Pokémon switches out.- Parameters:
oldPokemon- The Pokémon switching out.
-
applyEndOfBattleEffect
Description copied from interface:AbilityTriggers 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:AbilityChecks 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:AbilityReturns whether the ability can be copied via Roleplay.- Returns:
- Whether the ability can be copied.
-
canBeReceived
public boolean canBeReceived()Description copied from interface:AbilityReturns 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:AbilityReturns 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:AbilityReturns whether the ability can be copied via Trace.- Returns:
- Whether the ability can be Traced.
-
canBeSwapped
public boolean canBeSwapped()Description copied from interface:AbilityReturns whether the ability can be part of a Skill Swap exchange.- Returns:
- Whether the ability can be swapped.
-