Class AirBalloonItem

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

public class AirBalloonItem extends HeldItem
Prevents Ground-type moves from hitting the Pokémon. Pops if another move hits the Pokémon.
  • Constructor Details

    • AirBalloonItem

      public AirBalloonItem()
      Initializes the held item.
  • Method Details

    • applySwitchInEffect

      public void applySwitchInEffect(PixelmonWrapper newPokemon)
      Description copied from class: HeldItem
      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.
    • allowsIncomingAttack

      public boolean allowsIncomingAttack(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a)
      Description copied from class: HeldItem
      Determines whether the holder can be hit by an incoming attack.
      Overrides:
      allowsIncomingAttack in class HeldItem
      Parameters:
      pokemon - The holder.
      user - The attack's user.
      a - The attack.
      Returns:
      Whether the attack can hit the holder.
    • postProcessDamagingAttackTarget

      public void postProcessDamagingAttackTarget(PixelmonWrapper attacker, PixelmonWrapper holder, Attack attack, float damage, DamageTypeEnum damageType)
      Description copied from class: HeldItem
      Triggers after the holder is hit by a damaging attack.
      Overrides:
      postProcessDamagingAttackTarget in class HeldItem
      Parameters:
      attacker - The attack's user.
      holder - The attack's target.
      attack - The attack.
      damage - The damage dealt.
      damageType - The type of damage dealt.