java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
com.pixelmonmod.pixelmon.api.pokemon.ability.abilities.IgnoreWeather
All Implemented Interfaces:
Ability, RarityTweak, ITranslatable
Direct Known Subclasses:
AirLock, CloudNine

public abstract class IgnoreWeather extends AbstractAbility
Prevents the effects of weather.
  • Constructor Details

    • IgnoreWeather

      public IgnoreWeather(String switchInMessage)
      Initializes the Ability.
      Parameters:
      switchInMessage - The message displayed when the Ability takes effect.
  • Method Details

    • ignoreWeather

      public boolean ignoreWeather()
      Description copied from interface: Ability
      Determines whether the Ability ignores weather.
      Returns:
      Whether the Ability ignores weather.
    • 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 oldPokemon)
      Description copied from interface: Ability
      Triggers when the Pokémon switches out.
      Parameters:
      oldPokemon - The Pokémon switching out.