Class RoomServiceItem

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

public class RoomServiceItem extends HeldItem
  • Constructor Details

    • RoomServiceItem

      public RoomServiceItem()
  • 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.
    • onGlobalStatusAdded

      public void onGlobalStatusAdded(PixelmonWrapper itemHolder, GlobalStatusBase globalStatus)
      Description copied from class: HeldItem
      Triggers when a global status is added to the battle.
      Overrides:
      onGlobalStatusAdded in class HeldItem
      Parameters:
      itemHolder - The Pokémon holding the item.
      globalStatus - The new status.