Class ProtectivePadsItem

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

public class ProtectivePadsItem extends HeldItem
Protects the holder from effects caused by making direct contact with the target
  • Constructor Details

    • ProtectivePadsItem

      public ProtectivePadsItem()
      Initializes the held item.
  • Method Details

    • ignoresContactEffectsFromTarget

      public boolean ignoresContactEffectsFromTarget(PixelmonWrapper itemHolder, PixelmonWrapper target)
      Description copied from class: HeldItem
      When overridden, allows an item to ignore any effects from the target that would occur due to contact.
      Overrides:
      ignoresContactEffectsFromTarget in class HeldItem
      Parameters:
      itemHolder - The Pixelmon that is holding the item and also the one attacking.
      target - The defending Pixelmon that has contact effects that could activate.
      Returns:
      True if contact effects will be ignored.