Class QuickClawItem

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

public class QuickClawItem extends HeldItem
Gives the holder a 20% chance of moving first regardless of speed.
  • Field Details

    • priorityModifier

      protected float priorityModifier
    • checkedThisTurn

      protected boolean checkedThisTurn
  • Constructor Details

    • QuickClawItem

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

    • applyStartOfTurnEffect

      public void applyStartOfTurnEffect(PixelmonWrapper pw)
      Description copied from class: HeldItem
      Triggers at the start of the turn, after switches and evolutions.
      Overrides:
      applyStartOfTurnEffect in class HeldItem
      Parameters:
      pw - The Pokémon holding this.
    • modifyPriority

      public float modifyPriority(PixelmonWrapper pokemon, float priority, MutableBoolean fractional)
      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.
      fractional - Whether an ability before this also modified priority with a fractional change.
      Returns:
      The modified priority.