Class BrightPowderItem

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

public class BrightPowderItem extends HeldItem
Lowers the accuracy of moves used against the holder.
  • Constructor Details

    • BrightPowderItem

      public BrightPowderItem(EnumHeldItems itemEnum)
      Initializes the held item.
      Parameters:
      itemEnum - The held item's type.
  • Method Details

    • modifyPowerAndAccuracyTarget

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

      public net.minecraft.world.InteractionResult useOn(net.minecraft.world.item.context.UseOnContext context)
      Overrides:
      useOn in class net.minecraft.world.item.Item
    • getBlock

      public net.minecraft.world.level.block.Block getBlock()