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

public class Pickup extends AbstractAbility
Retrieves held items previously consumed by other Pokémon. May give items to the player upon winning battles.
  • Constructor Details

    • Pickup

      public Pickup()
  • Method Details

    • onItemConsumed

      public void onItemConsumed(PixelmonWrapper pokemon, PixelmonWrapper consumer, HeldItem heldItem)
      Description copied from interface: Ability
      Triggers when a held item is consumed.
      Parameters:
      pokemon - The Pokémon with the Ability.
      consumer - The Pokémon who consumed the held item.
      heldItem - The consumed held item.
    • applyRepeatedEffect

      public void applyRepeatedEffect(PixelmonWrapper pokemon)
      Description copied from interface: Ability
      Fires at the end of the turn.
      Parameters:
      pokemon - The Pokémon with the Ability.
    • needNewInstance

      public boolean needNewInstance()
      Description copied from interface: Ability
      Checks 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.
    • pickupItem

      public static void pickupItem(PlayerParticipant player)
      10% chance of giving a random item to the player if a party Pokémon has Pickup.