Class OgerponMaskItem

java.lang.Object
net.minecraft.world.item.Item
All Implemented Interfaces:
ITranslatable, net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, net.neoforged.neoforge.common.extensions.IItemExtension

public class OgerponMaskItem extends HeldItem
One of Ogerpon's masks. Held by Ogerpon to change its form and the type of Ivy Cudgel.
  • Field Details

    • form

      public final String form
      The form name this mask corresponds to (matches Ogerpon's species form data).
    • type

      public final net.minecraft.resources.ResourceKey<Type> type
      The type Ivy Cudgel becomes when Ogerpon holds this mask.
  • Constructor Details

    • OgerponMaskItem

      public OgerponMaskItem(String form, net.minecraft.resources.ResourceKey<Type> type)
  • 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.