Class TypeEnhancingItems

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

public class TypeEnhancingItems extends HeldItem
A held item that increases the power of a certain move type by 20%.
  • Field Details

    • enhanceType

      public EnumTypeEnhancingItems enhanceType
      The type of held item.
    • type

      protected Element type
      The move type to increase the power of.
  • Constructor Details

    • TypeEnhancingItems

      public TypeEnhancingItems(EnumTypeEnhancingItems EnhanceType, Element type)
      Initializes the held item.
      Parameters:
      EnhanceType - The move type to increase the power of.
      type - The type of held item.
    • TypeEnhancingItems

      public TypeEnhancingItems(EnumTypeEnhancingItems EnhanceType, Element type, net.minecraft.world.item.Item.Properties properties)
  • 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.
    • getType

      public Element getType()