Class LaggingTailItem

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

public class LaggingTailItem extends HeldItem
Makes the holder move last.
  • Constructor Details

    • LaggingTailItem

      public LaggingTailItem(EnumHeldItems itemType)
      Initializes the held item.
      Parameters:
      itemType - The held item's type.
  • Method Details

    • modifyPriority

      public float modifyPriority(PixelmonWrapper pokemon, float priority, MutableBoolean triggered)
      Description copied from class: HeldItem
      Modifies the holder's attack's priority.
      Overrides:
      modifyPriority in class HeldItem
      Parameters:
      pokemon - The attack's user.
      priority - The attack's priority.
      triggered - Whether an ability before this also modified priority.
      Returns:
      The modified priority.
    • useOn

      public net.minecraft.world.InteractionResult useOn(net.minecraft.world.item.context.UseOnContext context)
      Overrides:
      useOn in class net.minecraft.world.item.Item
    • getBlock

      public net.minecraft.world.level.block.Block getBlock()