Class StackableItem

All Implemented Interfaces:
IEntity, RPObjectChangeListener
Direct Known Subclasses:
UseableItem

public class StackableItem extends Item
This is a stackable item.
  • Field Details

    • PROP_QUANTITY

      public static final games.stendhal.client.entity.Property PROP_QUANTITY
      Quantity property.
  • Constructor Details

    • StackableItem

      public StackableItem()
      Create a stackable item.
  • Method Details

    • getQuantity

      public int getQuantity()
      Get the item quantity.
      Returns:
      The number of items.
    • onChangedAdded

      public void onChangedAdded(RPObject object, RPObject changes)
      The object added/changed attribute(s).
      Specified by:
      onChangedAdded in interface RPObjectChangeListener
      Overrides:
      onChangedAdded in class Entity
      Parameters:
      object - The base object.
      changes - The changes.