Class Revenant
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
com.pixelmonmod.pixelmon.api.pokemon.ability.abilities.custom.Revenant
- All Implemented Interfaces:
Ability,RarityTweak,ITranslatable
Regenerates health and shuffles moves and typings when reduced to zero HP a number of times.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallowsIncomingAttack(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a) Determines whether an incoming attack can hit the PokémonvoidallowsIncomingAttackMessage(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a) Sends a battle message when the Pokémon's Ability nullifies an attack.booleanallowsStatusOpponent(StatusType status, PixelmonWrapper pokemon, PixelmonWrapper target, PixelmonWrapper user) Fires for all opponents when a status attempts to be applied.booleanWhether the Pokémon with this ability should always be considered as hurt for moves such as Recover.voidapplyEndOfBattleEffect(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.booleanReturns whether the ability fully blocks anything that can copy this ability, including transform effects etc.booleanReturns whether the ability can be disabled by external effects eg.booleanReturns whether the ability can be transferred via Entrainment.booleanReturns whether the ability can be bypassed by moves that ignore abilities or not.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.booleanReturns whether the ability blocks use of Perish-type effects, eg Perish Song, Destiny Bond, Perish Body.intmodifyDamage(int damage, PixelmonWrapper user, PixelmonWrapper pokemon, DamageTypeEnum type, Attack attack, Ability ability) Triggers when the Pokémon takes damage, from any source.intmodifyDamageTarget(int damage, PixelmonWrapper user, PixelmonWrapper pokemon, Attack a) Triggers when the Pokémon takes direct damage.booleanChecks if a new instance of the Ability needs to be initialized if a Pokémon receives it in battle.voidonDamageReceived(PixelmonWrapper user, PixelmonWrapper pokemon, Attack a, int damage, DamageTypeEnum damagetype) intonHealed(PixelmonWrapper pw, int heal) Fired whenever a Pokémon is about to be healed.voidpreProcessAttack(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a) Triggers before the Pokémon is attacked.booleanReturns whether the ability is active for Transformed pokemon.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, allowsIncomingAttackTeammate, allowsOutgoingAttack, allowsStatChange, allowsStatChangeTeammate, allowsStatus, allowsStatusTeammate, applyAllySwitchInEffect, applyCritMultiplier, applyDynamaxEffect, applyEffectOnContactTarget, applyEffectOnContactTargetLate, applyEffectOnContactUser, applyEffectOnStatModified, applyFoeSwitchInEffect, applyPostSwitchEffect, applyRepeatedEffect, applyRepeatedEffectAfterStatus, applyStartOfBattleEffect, applyStartOfBattleHeadOfPartyEffect, applyStartOfTurnEffect, applySwitchOutEffect, applySwitchReplaceEffect, beforeSwitch, canAttackThisTurn, doesAttackUserIgnoreProtect, doesContactAttackMakeContact, getMultiplier, ignoreEvasion, ignoresStatusTypeImmunity, ignoreWeather, isAbility, isAbility, isAbility, isAbility, isAbility, isNegativeAbility, modifyConfusionDamage, modifyDamageIncludeFixed, modifyDamageTeammate, modifyDamageUser, modifyEffectiveTypes, modifyMoveEffectChanceTarget, modifyMoveEffectChanceUser, modifyMoveEffects, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyTeammate, modifyPowerAndAccuracyUser, modifyPriority, modifySelfDamage, modifyStab, modifyStats, modifyStatsCancellable, modifyStatsCancellableOther, modifyStatsCancellableTeammate, modifyStatsOther, modifyStatsTeammate, modifyType, modifyWeight, onAbilityLost, onAllyFaint, onBerryEaten, onFoeFaint, onItemChanged, onItemConsumed, onSelfFaint, onStatDecrease, onStatIncrease, onStatusAdded, onTerrainSwitch, onWeatherChange, postProcessAttack, postProcessAttackOther, postProcessAttackUser, postProcessAttackUserHitOrMiss, preProcessAttackStatBeforeDamageCalc, preProcessAttackUser, preventsCriticalHits, preventsItemRemoval, preventsRedirection, redirectAttack, sendActivatedMessage, startMove, stopsForcedSwitches, stopsSwitching, tookDamageTarget, tookDamageTargetAfterMove, tookDamageUserMethods inherited from interface com.pixelmonmod.pixelmon.api.util.ITranslatable
getLocalizedName, getTranslatedName
-
Constructor Details
-
Revenant
public Revenant()
-
-
Method Details
-
onHealed
Description copied from interface:AbilityFired whenever a Pokémon is about to be healed.- Parameters:
pw- The Pokémon being healed.heal- The heal amount.- Returns:
- The new heal amount.
-
modifyDamage
public int modifyDamage(int damage, PixelmonWrapper user, PixelmonWrapper pokemon, DamageTypeEnum type, @Nullable Attack attack, @Nullable Ability ability) Description copied from interface:AbilityTriggers when the Pokémon takes damage, from any source.- Parameters:
damage- The amount of damage dealt.user- The attack's user.pokemon- The attack's target.type- The damage type.attack- The attack used by the source Pokémon, if present.ability- The ability of the source Pokémon.- Returns:
- The modified damage.
-
onDamageReceived
public void onDamageReceived(PixelmonWrapper user, PixelmonWrapper pokemon, Attack a, int damage, DamageTypeEnum damagetype) -
allowsStatusOpponent
public boolean allowsStatusOpponent(StatusType status, PixelmonWrapper pokemon, PixelmonWrapper target, PixelmonWrapper user) Description copied from interface:AbilityFires for all opponents when a status attempts to be applied.- Parameters:
status- The status being afflicted.pokemon- The Pokémon with the Ability.target- The Pokémon who is being afflicted with the status.user- The Pokémon inflicting the status.- Returns:
- Whether the status can be afflicted.
-
allowsIncomingAttack
Description copied from interface:AbilityDetermines whether an incoming attack can hit the Pokémon- Parameters:
pokemon- The Pokémon with the Ability.user- The attack's user.a- The attack.- Returns:
- Whether the attack can hit the Pokémon.
-
allowsIncomingAttackMessage
Description copied from interface:AbilitySends a battle message when the Pokémon's Ability nullifies an attack.- Parameters:
pokemon- The Pokémon with the Ability.user- The attack's user.a- The attack.
-
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.
-
applyEndOfBattleEffect
Description copied from interface:AbilityTriggers at the end of the battle.- Parameters:
pokemon- The Pokémon in battle at the battle's end.
-
preProcessAttack
Description copied from interface:AbilityTriggers before the Pokémon is attacked.- Parameters:
pokemon- The Pokémon with the Ability.user- The attack's user.a- The attack.
-
modifyDamageTarget
Description copied from interface:AbilityTriggers when the Pokémon takes direct damage.- Parameters:
damage- The amount of damage dealt.user- The attack's user.pokemon- The attack's target.a- The attack.- Returns:
- The modified damage.
-
canBeCopied
public boolean canBeCopied()Description copied from interface:AbilityReturns whether the ability fully blocks anything that can copy this ability, including transform effects etc.- Returns:
- Whether the ability can be copied.
-
alwaysConsideredDamaged
Description copied from interface:AbilityWhether the Pokémon with this ability should always be considered as hurt for moves such as Recover.- Parameters:
pw- The Pokémon being considered.- Returns:
- Whether the Pokémon is always considered damaged or not.
-
canPerish
public boolean canPerish()Description copied from interface:AbilityReturns whether the ability blocks use of Perish-type effects, eg Perish Song, Destiny Bond, Perish Body.- Returns:
- Whether the ability blocks Perish-type effects.
-
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.
-
canBeDisabled
public boolean canBeDisabled()Description copied from interface:AbilityReturns whether the ability can be disabled by external effects eg. Neutralizing Gas.- Returns:
- Whether the ability can be disabled.
-
canBeIgnored
public boolean canBeIgnored()Description copied from interface:AbilityReturns whether the ability can be bypassed by moves that ignore abilities or not. e.g. Moldbreaker or G-Max Drum Solo- Returns:
- Whether the ability can be ignored.
-
worksWithTransformedPokemon
public boolean worksWithTransformedPokemon()Description copied from interface:AbilityReturns whether the ability is active for Transformed pokemon.- Returns:
- Whether the ability can be used by transformed pokemon.
-