Class LifeOrbItem

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

public class LifeOrbItem extends HeldItem
Increases move power by 30% but deals 10% hp in damage whenever an offensive move is used.
  • Constructor Details

    • LifeOrbItem

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

    • preProcessDamagingAttackUser

      public double preProcessDamagingAttackUser(PixelmonWrapper attacker, PixelmonWrapper target, Attack attack, double damage)
      Description copied from class: HeldItem
      Triggers before the holder uses a damaging attack.
      Overrides:
      preProcessDamagingAttackUser in class HeldItem
      Parameters:
      attacker - The attack's user.
      target - The attack's target.
      attack - The attack.
      damage - The damage to be dealt.
      Returns:
      The modified damage.
    • dealtDamage

      public void dealtDamage(PixelmonWrapper attacker, PixelmonWrapper defender, Attack attack, DamageTypeEnum damageType)
      Description copied from class: HeldItem
      Triggers when the holder deals damage.
      Overrides:
      dealtDamage in class HeldItem
      Parameters:
      attacker - The source of the damage.
      defender - The target of the damage.
      attack - The attack used by the attacker.
      damageType - The type of damage that was dealt.
    • applyEffectAfterAllTargets

      public void applyEffectAfterAllTargets(PixelmonWrapper attacker)
      Description copied from class: HeldItem
      Triggers after a Pokémon attacks all of its targets.
      Overrides:
      applyEffectAfterAllTargets in class HeldItem
      Parameters:
      attacker - The move's user.