Class CritEnhancingItem

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

public class CritEnhancingItem extends HeldItem
Increases the critical hit ratio of certain Pokémon.
  • Constructor Details

    • CritEnhancingItem

      @SafeVarargs public CritEnhancingItem(EnumHeldItems type, Supplier<Supplier<Species>>... pokemon)
      Initializes a critical hit ratio raising item.
      Parameters:
      type - The held item's type.
      pokemon - The Pokémon affected by the item.
  • Method Details

    • adjustCritStage

      public int adjustCritStage(PixelmonWrapper user)
      Description copied from class: HeldItem
      Modifies the holder's critical hit ratio.
      Overrides:
      adjustCritStage in class HeldItem
      Parameters:
      user - The holder.