Class CovertCloakItem

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

public class CovertCloakItem extends HeldItem
Protects the holder from the secondary effects of moves. Does not prevent entry hazards being placed by Ceaseless Edge or Stone Axe.
  • Constructor Details

    • CovertCloakItem

      public CovertCloakItem()
      Initializes the item.
  • Method Details

    • modifyMoveEffectChanceTarget

      public void modifyMoveEffectChanceTarget(PixelmonWrapper user, PixelmonWrapper target, List<EffectBase> effects)
      Description copied from class: HeldItem
      Allows the target's held item to adjust the move's effects, such as disabling effects from CovertCloak
      Overrides:
      modifyMoveEffectChanceTarget in class HeldItem
      Parameters:
      user - The item holder and attacking Pokemon.
      target - The Pokemon being attacked.
      effects - The current effects of the attack.