Class PowerOfAlchemy
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
com.pixelmonmod.pixelmon.api.pokemon.ability.abilities.PowerOfAlchemy
- All Implemented Interfaces:
- Ability,- RarityTweak,- ITranslatable
- Direct Known Subclasses:
- Receiver
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns 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 copied via Trace.voidonAllyFaint(PixelmonWrapper pokemon, PixelmonWrapper fainted, PixelmonWrapper source) Triggers right after an allied Pokémon faints.protected booleanreceiveAbility(PixelmonWrapper pw, PixelmonWrapper fainted) Receives target pokemon's ability if possible.voidtookDamageUser(int damage, PixelmonWrapper user, PixelmonWrapper pokemon, Attack a) Triggers after the Pokémon deals damage.Methods inherited from class com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbilityequals, getName, getNewInstance, getTranslationKey, hashCodeMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pixelmonmod.pixelmon.api.pokemon.ability.AbilityadjustCriticalHitChance, adjustCritStage, allowsAttack, allowsIncomingAttack, allowsIncomingAttackMessage, allowsIncomingAttackTeammate, allowsOutgoingAttack, allowsStatChange, allowsStatChangeTeammate, allowsStatus, allowsStatusOpponent, allowsStatusTeammate, alwaysConsideredDamaged, applyAllySwitchInEffect, applyCritMultiplier, applyDynamaxEffect, applyEffectOnContactTarget, applyEffectOnContactTargetLate, applyEffectOnContactUser, applyEffectOnStatModified, applyEndOfBattleEffect, applyFoeSwitchInEffect, applyPostSwitchEffect, applyRepeatedEffect, applyRepeatedEffectAfterStatus, applyStartOfBattleEffect, applyStartOfBattleHeadOfPartyEffect, applyStartOfTurnEffect, applySwitchInEffect, applySwitchOutEffect, applySwitchReplaceEffect, beforeSwitch, canAttackThisTurn, canBeCopied, canBeDisabled, canBeIgnored, canBeSwapped, 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, needNewInstance, onAbilityLost, 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, tookDamageTarget, tookDamageTargetAfterMove, worksWithTransformedPokemonMethods inherited from interface com.pixelmonmod.pixelmon.api.util.ITranslatablegetLocalizedName, getTranslatedName
- 
Constructor Details- 
PowerOfAlchemypublic PowerOfAlchemy()
 
- 
- 
Method Details- 
tookDamageUserDescription copied from interface:AbilityTriggers after the Pokémon deals damage.- Parameters:
- damage- The amount of damage dealt.
- user- The attack's user.
- pokemon- The attack's target.
- a- The attack.
 
- 
onAllyFaintDescription copied from interface:AbilityTriggers right after an allied Pokémon faints.- Parameters:
- pokemon- - The Pokémon with the ability. Not the one fainting.
- fainted- - The ally Pokémon that fainted.
- source- - The ultimate cause of the fainting. Self inflicted or global causes give the fainted as the source.
 
- 
receiveAbilityReceives target pokemon's ability if possible.- Parameters:
- pw- The pokemon with this ability.
- fainted- The pokemon who's ability is being received.
- Returns:
- Whether the ability was able to be replaced.
 
- 
canBeRoleplayedpublic boolean canBeRoleplayed()Description copied from interface:AbilityReturns whether the ability can be copied via Roleplay.- Returns:
- Whether the ability can be copied.
 
- 
canBeReceivedpublic 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.
 
- 
canBeEntrainedpublic boolean canBeEntrained()Description copied from interface:AbilityReturns whether the ability can be transferred via Entrainment.- Returns:
- Whether the ability can be set on opponent.
 
- 
canBeTracedpublic boolean canBeTraced()Description copied from interface:AbilityReturns whether the ability can be copied via Trace.- Returns:
- Whether the ability can be Traced.
 
 
-