Class TerrainSeedItem

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

public class TerrainSeedItem extends HeldItem
Created by Jay113355 on 11/27/2019.

https://bulbapedia.bulbagarden.net/wiki/Electric_Seed https://bulbapedia.bulbagarden.net/wiki/Grassy_Seed https://bulbapedia.bulbagarden.net/wiki/Misty_Seed https://bulbapedia.bulbagarden.net/wiki/Psychic_Seed

  • Field Details

  • Constructor Details

  • Method Details

    • onTerrainSwitch

      public void onTerrainSwitch(BattleController bc, PixelmonWrapper user, Terrain terrain)
      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.
    • applySwitchInEffect

      public void applySwitchInEffect(PixelmonWrapper newPokemon)
      Triggers when the holder switches in and when a Pokémon receives a held item in battle.
      Overrides:
      applySwitchInEffect in class HeldItem
      Parameters:
      newPokemon - The Pokémon switching in.