Class RingTargetItem

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

public class RingTargetItem extends HeldItem
Negates the holder's type immunities
  • Constructor Details

    • RingTargetItem

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

    • modifyEffectiveTypes

      public List<Element> modifyEffectiveTypes(PixelmonWrapper user, PixelmonWrapper target, List<Element> types)
      Description copied from class: HeldItem
      Returns the types that will be used in calculating the Pokémon's attack's type effectiveness.
      Overrides:
      modifyEffectiveTypes in class HeldItem
      Parameters:
      user - The attack's user.
      target - The attack's target.
      types - The existing target's types.
      Returns:
      The target's modified types.