Class IncensePowerIncreaseItem

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

public class IncensePowerIncreaseItem extends HeldItem
An incense that increases the power of a certain type of move.
  • Constructor Details

    • IncensePowerIncreaseItem

      public IncensePowerIncreaseItem(EnumIncenses IncenseType, Element type)
      Initializes the incense.
      Parameters:
      IncenseType - The type of incense.
      type - The move type to increase the power of.
  • 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.
    • 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()