Class FocusBandItem

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

public class FocusBandItem extends HeldItem
Has a 10% chance of letting a fatal attack instead leave the holder with 1 hp remaining.
  • Constructor Details

    • FocusBandItem

      public FocusBandItem()
      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.