Class DecreaseEVBerryItem

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

public class DecreaseEVBerryItem extends BerryItem
EV-reducing Berries that lower EVs in a specific stat and raise happiness.
  • Field Details

  • Constructor Details

    • DecreaseEVBerryItem

      public DecreaseEVBerryItem(net.minecraft.world.item.Item.Properties properties, BattleStatsType type, BerryType berry)
      Initializes the Berry.
      Parameters:
      type - The type of Berry.
  • Method Details

    • interact

      public boolean interact(PixelmonEntity pokemon, net.minecraft.world.item.ItemStack itemstack, net.minecraft.world.entity.player.Player player)
      Description copied from class: HeldItem
      Overrides the standard held item interaction (equipping the held item) if needed.
      Overrides:
      interact in class HeldItem
      Parameters:
      pokemon - The Pokémon being given the item.
      itemstack - The itemstack used to interact.
      player - The player using the item.
      Returns:
      Whether the item was used.
    • berryEVs

      public boolean berryEVs(PixelmonEntity entityPixelmon)
      Lowers the Pokémon's EVs in the corresponding stat and raises its happiness.
      Parameters:
      entityPixelmon - The affected Pokémon.
      Returns:
      Whether the Berry lowered any EVs.