Class BoosterEnergyItem

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

public class BoosterEnergyItem extends HeldItem
  • Constructor Details

    • BoosterEnergyItem

      public BoosterEnergyItem()
  • Method Details

    • applyPostSwitchEffect

      public void applyPostSwitchEffect(PixelmonWrapper newPokemon)
      Description copied from class: HeldItem
      Triggers after all the Pokémon switch in at the start of turn.
      Overrides:
      applyPostSwitchEffect in class HeldItem
      Parameters:
      newPokemon - The Pokémon switching in.
    • onTerrainSwitch

      public void onTerrainSwitch(BattleController bc, PixelmonWrapper user, Terrain terrain)
      Description copied from class: HeldItem
      Triggers when the terrain is changed in battle.
      Overrides:
      onTerrainSwitch in class HeldItem
      Parameters:
      bc - The battle controller.
      user - The Pokémon whose holding this item.
      terrain - The terrain being switched in.
    • onWeatherSwitch

      public void onWeatherSwitch(BattleController bc, PixelmonWrapper user, Weather weather)
      Description copied from class: HeldItem
      Triggers when the weather is changed in battle.
      Overrides:
      onWeatherSwitch in class HeldItem
      Parameters:
      bc - The battle controller.
      user - The Pokémon whose holding this item.
      weather - The weather being switched in.