Class ItemIdentificationPath

java.lang.Object
games.stendhal.server.entity.equip.ItemIdentificationPath

public class ItemIdentificationPath extends Object
Identifies an item in a slot, in a nested slot or on the ground.

Important: There is no validation if the item/slot may be accessed.

Author:
hendrik
  • Constructor Details

    • ItemIdentificationPath

      public ItemIdentificationPath(RPAction action)
      creates a new ItemIdentificationPath
      Parameters:
      action - RPAction which has baseitem, baseitem+baseslot+baseobject or itempath
    • ItemIdentificationPath

      public ItemIdentificationPath(RPAction action, boolean source)
      creates a new ItemIdentificationPath
      Parameters:
      source - true, if the RPAction is for the base/source, false if it is for the target
      action - RPAction which has baseitem, baseitem+baseslot+baseobject or itempath, if source=true. targetobject+targetslot or x+y if source=false
  • Method Details

    • getSlot

      public EntitySlot getSlot()
      gets the Slot
      Returns:
      EntitySlot
    • getItem

      public Item getItem()
      gets the item
      Returns:
      Item, or null, if not specified (target slot)
    • getQuantity

      public int getQuantity()
      gets the desired quantity
      Returns:
      quantity, or 0/ if not specified