Class ShellBellItem

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

public class ShellBellItem extends HeldItem
Heals the Pokémon by 1/8th of the damage dealt by it.
  • Constructor Details

    • ShellBellItem

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

    • postProcessDamagingAttackUser

      public void postProcessDamagingAttackUser(PixelmonWrapper holder, PixelmonWrapper defender, Attack attack, float damage)
      Description copied from class: HeldItem
      Triggers after the holder uses a damaging attack.
      Overrides:
      postProcessDamagingAttackUser in class HeldItem
      Parameters:
      holder - The attack's user.
      defender - The attack's target.
      attack - The attack.
      damage - The damage dealt.