Class BlankTechnicalMachineItem

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

public class BlankTechnicalMachineItem extends HeldItem
Created by Jay113355 on 8/11/2020.
  • Field Details

  • Constructor Details

    • BlankTechnicalMachineItem

      public BlankTechnicalMachineItem(TMType prefix)
  • Method Details

    • appendHoverText

      public void appendHoverText(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, List<net.minecraft.network.chat.Component> tooltip, net.minecraft.world.item.TooltipFlag advanced)
      Overrides:
      appendHoverText in class PixelmonItem
    • onAttackUsed

      public void onAttackUsed(PixelmonWrapper user, Attack attack)
      Triggers when the holder uses an attack.
      Overrides:
      onAttackUsed in class HeldItem
      Parameters:
      user - The attack's user.
      attack - The attack.
    • ignoresKlutz

      public boolean ignoresKlutz()
      Description copied from class: HeldItem
      Checks if the held item cannot be suppressed by the Klutz ability.
      Overrides:
      ignoresKlutz in class HeldItem
      Returns:
      Whether the held item can be used by a pokemon with the Klutz ability.
    • inventoryTick

      public void inventoryTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.Entity entityIn, int itemSlot, boolean isSelected)
      Overrides:
      inventoryTick in class net.minecraft.world.item.Item