Class ItemIdentificationPath
java.lang.Object
games.stendhal.server.entity.equip.ItemIdentificationPath
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 Summary
ConstructorDescriptionItemIdentificationPath(RPAction action)
creates a new ItemIdentificationPathItemIdentificationPath(RPAction action, boolean source)
creates a new ItemIdentificationPath -
Method Summary
-
Constructor Details
-
ItemIdentificationPath
creates a new ItemIdentificationPath- Parameters:
action
- RPAction which has baseitem, baseitem+baseslot+baseobject or itempath
-
ItemIdentificationPath
creates a new ItemIdentificationPath- Parameters:
source
- true, if the RPAction is for the base/source, false if it is for the targetaction
- RPAction which has baseitem, baseitem+baseslot+baseobject or itempath, if source=true. targetobject+targetslot or x+y if source=false
-
-
Method Details
-
getSlot
gets the Slot- Returns:
- EntitySlot
-
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
-