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.neoforged.neoforge.common.extensions.IItemExtension

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

    • ignoresAdditionalEffectsFromAttacker

      public boolean ignoresAdditionalEffectsFromAttacker(EffectBase effect, PixelmonWrapper user, PixelmonWrapper attacker)
      Description copied from class: HeldItem
      When overridden, allows an item to ignore the additional effects of moves.
      Overrides:
      ignoresAdditionalEffectsFromAttacker in class HeldItem
      Parameters:
      effect - What will potentially be ignored.
      user - The item holder and defending Pokémon.
      attacker - The Pokémon attacking.