Class IronBallItem

java.lang.Object
net.minecraft.world.item.Item
com.pixelmonmod.pixelmon.items.PixelmonItem
com.pixelmonmod.pixelmon.items.HeldItem
com.pixelmonmod.pixelmon.items.heldItems.IronBallItem
All Implemented Interfaces:
ITranslatable, net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, net.minecraftforge.common.extensions.IForgeItem

public class IronBallItem extends HeldItem
Halves the user's speed and makes flying Pokémon vulnerable to Ground-type moves.
  • Constructor Details

    • IronBallItem

      public IronBallItem()
      Initializes the held item.
  • Method Details

    • applySwitchInEffect

      public void applySwitchInEffect(PixelmonWrapper newPokemon)
      Description copied from class: HeldItem
      Triggers when the holder switches in and when a Pokémon receives a held item in battle.
      Overrides:
      applySwitchInEffect in class HeldItem
      Parameters:
      newPokemon - The Pokémon switching in.
    • modifyStats

      public int[] modifyStats(PixelmonWrapper user, int[] stats)
      Description copied from class: HeldItem
      Modifies the Pokémon's stats at the beginning of a battle turn.
      Overrides:
      modifyStats in class HeldItem
      Parameters:
      user - The Pokémon.
      stats - The Pokémon's stats.
      Returns:
      The modified stats.
    • getEffectiveTypes

      public List<Element> getEffectiveTypes(PixelmonWrapper user, PixelmonWrapper target)
      Description copied from class: HeldItem
      Returns the types that will be used in calculating the Pokémon's attack's type effectiveness.
      Overrides:
      getEffectiveTypes in class HeldItem
      Parameters:
      user - The attack's user.
      target - The attack's target.
      Returns:
      The target's modified types.