Class ClearAmuletItem

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

public class ClearAmuletItem extends HeldItem
Clear Amulet prevents the holder from having its stats lowered by other Pokémon's moves or Abilities. However, this item doesn't protect the user from the effects of Haze or Clear Smog.
  • Constructor Details

    • ClearAmuletItem

      public ClearAmuletItem()
  • Method Details

    • allowsStatChange

      public boolean allowsStatChange(PixelmonWrapper pokemon, PixelmonWrapper cause, StatsEffect statsEffect)
      Description copied from class: HeldItem
      Determines whether the holder's stats can be changed.
      Overrides:
      allowsStatChange in class HeldItem
      Parameters:
      pokemon - The holder.
      cause - The attack's user.
      statsEffect - The stat change.
      Returns:
      Whether the attack can hit the holder.