java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
com.pixelmonmod.pixelmon.api.pokemon.ability.abilities.AsOne
All Implemented Interfaces:
Ability, RarityTweak, ITranslatable

public class AsOne extends AbstractAbility
  • Constructor Details

    • AsOne

      public AsOne()
  • Method Details

    • applySwitchInEffect

      public void applySwitchInEffect(PixelmonWrapper newPokemon)
      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.
    • applySwitchOutEffect

      public void applySwitchOutEffect(PixelmonWrapper old)
      Description copied from interface: Ability
      Triggers when the Pokémon switches out.
      Parameters:
      old - The Pokémon switching out.
    • onTargetKnockedOut

      public void onTargetKnockedOut(PixelmonWrapper abilityUser, PixelmonWrapper target)
      Description copied from interface: Ability
      Triggers if the user of the ability was responsible for knocking out the target.
      Parameters:
      abilityUser - - The Pixelmon with the ability. The one responsible for knocking out the target.
      target - - The Pokémon that fainted. Not necessarily an opponent.
    • canBeDisabled

      public boolean canBeDisabled()
      Description copied from interface: Ability
      Returns whether the ability can be disabled by external effects eg. Neutralizing Gas.
      Returns:
      Whether the ability can be disabled.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.