Class UtilityUmbrellaItem

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

public class UtilityUmbrellaItem extends HeldItem
The Pokémon holding the Utility Umbrella is unaffected by the effects of rain and harsh sunlight. All effects of sandstorm, hail, and snow work as normal.
  • Constructor Details

    • UtilityUmbrellaItem

      public UtilityUmbrellaItem()
  • Method Details

    • preventsEffectsOfWeather

      public boolean preventsEffectsOfWeather(Weather weather)
      Description copied from class: HeldItem
      Determines whether the item prevents weather from affecting the user.
      Overrides:
      preventsEffectsOfWeather in class HeldItem
    • applySwitchInEffect

      public void applySwitchInEffect(PixelmonWrapper newPokemon)
      Force a Pokémon to return to its default form upon receiving a Utility Umbrella in battle.
      Overrides:
      applySwitchInEffect in class HeldItem
      Parameters:
      newPokemon - The Pokémon switching in.
    • onItemLost

      public void onItemLost(PixelmonWrapper pw)
      Description copied from class: HeldItem
      Triggers when a Pokémon loses the held item in battle.
      Overrides:
      onItemLost in class HeldItem
      Parameters:
      pw - The Pokémon who lost the item.