Class MirrorHerbItem

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

public class MirrorHerbItem extends HeldItem
Copies an opponent's stat increases once.
  • Constructor Details

    • MirrorHerbItem

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

    • onStatIncrease

      public void onStatIncrease(PixelmonWrapper pw, PixelmonWrapper affected, int amount, BattleStatsType stat)
      Description copied from class: HeldItem
      Triggers when a Pokémon's stat is increased.
      Overrides:
      onStatIncrease in class HeldItem
      Parameters:
      pw - The Pokémon whose item it is.
      affected - The Pokémon whose stat was increased.
      amount - The size of the increase.
      stat - The stat that was increased.
    • onStatModified

      public void onStatModified(PixelmonWrapper holder, PixelmonWrapper affected)
      Description copied from class: HeldItem
      Triggers when a Pokémon's stats are modified.
      Overrides:
      onStatModified in class HeldItem
      Parameters:
      holder - The Pokémon holding the item.
      affected - The Pokémon whose stats were just modified.
    • applyEffectInDaycare

      public void applyEffectInDaycare(Pokemon pokemon, Pokemon partner)
      Description copied from class: HeldItem
      Triggers when a Pokémon is put in a daycare with another Pokémon.
      Overrides:
      applyEffectInDaycare in class HeldItem
      Parameters:
      pokemon - The holder.
      partner - The holder's partner in the daycare.