Class DittoEnhancingItem

All Implemented Interfaces:
ITranslatable, net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, net.minecraftforge.common.extensions.IForgeItem

public class DittoEnhancingItem extends StatEnhancingItems
Increases Ditto's stats by a certain amount when it is not transformed.
  • Constructor Details

    • DittoEnhancingItem

      public DittoEnhancingItem(EnumHeldItems type, BattleStatsType[] raisedStats, float statMultiplier)
      Initializes a Ditto enhancing item.
      Parameters:
      type - The type of stat enhancing item.
      raisedStats - The stats raised by the item.
      statMultiplier - The muliplier of the stat raise.
  • Method Details

    • canAffect

      protected boolean canAffect(PixelmonWrapper pokemon)
      Description copied from class: StatEnhancingItems
      Checks if the item affects the Pokémon.
      Overrides:
      canAffect in class StatEnhancingItems
      Parameters:
      pokemon - The Pokémon to check for the item affecting.
      Returns:
      Whether the item affects the Pokémon.