Class RaiseStatItem

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

public class RaiseStatItem extends HeldItem
A held item that raises a stat when hit by a certain type of move.
  • Constructor Details

    • RaiseStatItem

      public RaiseStatItem(EnumHeldItems heldItemType, BattleStatsType stat, Element moveType)
      Initializes the held item.
      Parameters:
      heldItemType - The held item's type.
      stat - The stat that the held item raises.
      moveType - The move type that triggers the held item.
  • Method Details

    • postProcessDamagingAttackTarget

      public void postProcessDamagingAttackTarget(PixelmonWrapper attacker, PixelmonWrapper holder, Attack attack, float damage, DamageTypeEnum damageType)
      Description copied from class: HeldItem
      Triggers after the holder is hit by a damaging attack.
      Overrides:
      postProcessDamagingAttackTarget in class HeldItem
      Parameters:
      attacker - The attack's user.
      holder - The attack's target.
      attack - The attack.
      damage - The damage dealt.
      damageType - The type of damage dealt.