Class SlotInventoryPixelmon

java.lang.Object
com.pixelmonmod.pixelmon.client.gui.pc.SlotPC
com.pixelmonmod.pixelmon.client.gui.inventory.SlotInventoryPixelmon

public class SlotInventoryPixelmon extends SlotPC
A Pokémon slot in the inventory party GUI.
  • Field Details

    • heldItemX

      public int heldItemX
      The coordinates of the Pokémon's held item.
    • heldItemY

      public int heldItemY
      The coordinates of the Pokémon's held item.
  • Constructor Details

    • SlotInventoryPixelmon

      public SlotInventoryPixelmon(int x, int y, StoragePosition position)
      Initializes a slot.
      Parameters:
      x - The x coordinate of the slot.
      y - The y coordinate of the slot.
      position - The PCPosition this slot represents. If this is in the party, then the box number is irrelevant.
  • Method Details

    • getHeldItemBounds

      public Rectangle getHeldItemBounds()
      Gets the bounds of the held item slot.
      Returns:
      The bounds of the held item slot.