Class MetronomeItem

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

public class MetronomeItem extends HeldItem
Makes consecutively used moves increase in power.
  • Constructor Details

    • MetronomeItem

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

    • modifyPowerAndAccuracyUser

      public int[] modifyPowerAndAccuracyUser(int[] modifiedMoveStats, PixelmonWrapper user, PixelmonWrapper target, Attack attack)
      Description copied from class: HeldItem
      Modifies the power and accuracy of the Pokémon's attack.
      Overrides:
      modifyPowerAndAccuracyUser in class HeldItem
      Parameters:
      modifiedMoveStats - The attack's power and accuracy.
      user - The attack's user.
      target - The attack's target.
      attack - The attack.
      Returns:
      The modified power and accuracy.
    • onMiss

      public void onMiss(PixelmonWrapper attacker, PixelmonWrapper target, Attack attack)
      Description copied from class: HeldItem
      Triggers if the holder misses an attack.
      Overrides:
      onMiss in class HeldItem
      Parameters:
      attacker - The attack's user.
      target - The attack's intended target.
      attack - The attack used.
    • applySwitchOutEffect

      public void applySwitchOutEffect(PixelmonWrapper pw)
      Description copied from class: HeldItem
      Triggers when the holder switches out.
      Overrides:
      applySwitchOutEffect in class HeldItem
      Parameters:
      pw - The Pokémon switching out.