Class FocusSashItem

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

public class FocusSashItem extends HeldItem
If at full hp, an otherwise fatal move will leave the holder with 1 hp remaining.
  • Constructor Details

    • FocusSashItem

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

    • modifyDamageIncludeFixed

      public double modifyDamageIncludeFixed(double damage, PixelmonWrapper attacker, PixelmonWrapper target, Attack attack)
      Description copied from class: HeldItem
      Modifies damage done on the holder by damaging attacks, including fixed damage.
      Overrides:
      modifyDamageIncludeFixed in class HeldItem
      Parameters:
      damage - The damage dealt.
      attacker - The attack's user.
      target - The attack's target.
      attack - The attack.
      Returns:
      The modified damage.
    • modifyConfusionDamage

      public int modifyConfusionDamage(int damage, PixelmonWrapper pw)
      Description copied from class: HeldItem
      Triggers when the Pokémon takes would take Confusion damage.
      Overrides:
      modifyConfusionDamage in class HeldItem
      Parameters:
      damage - The amount of damage dealt.
      pw - The Pokémon taking damage.
      Returns:
      The modified damage.