Package org.dreambot.api.script.listener
Interface ItemContainerListener
-
- All Superinterfaces:
java.util.EventListener
public interface ItemContainerListener extends java.util.EventListener
Item container listener, holds events for Inventory, Bank, and Equipment.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
onBankItemAdded(Item item)
A new item is addeddefault void
onBankItemChanged(Item incoming, Item existing)
Item changed is when the item that is changing is the same ID but different stack sizesdefault void
onBankItemRemoved(Item item)
An Item is removeddefault void
onBankItemSwapped(Item incoming, Item outgoing)
An item is being swapped out with another itemdefault void
onEquipmentItemAdded(Item item)
A new item is addeddefault void
onEquipmentItemChanged(Item incoming, Item existing)
Item changed is when the item that is changing is the same ID but different stack sizesdefault void
onEquipmentItemRemoved(Item item)
An Item is removeddefault void
onEquipmentItemSwapped(Item incoming, Item outgoing)
An item is being swapped out with another itemdefault void
onInventoryItemAdded(Item item)
A new item is addeddefault void
onInventoryItemChanged(Item incoming, Item existing)
Item changed is when the item that is changing is the same ID but different stack sizesdefault void
onInventoryItemRemoved(Item item)
An Item is removeddefault void
onInventoryItemSwapped(Item incoming, Item outgoing)
An item is being swapped out with another itemdefault void
onLootBagItemAdded(Item item)
An item is being added to the looting bag interface Only gets fired when you check/view looting bagdefault void
onLootBagItemRemoved(Item item)
default void
onLootBagItemUpdated(Item incoming, Item existing)
-
-
-
Method Detail
-
onInventoryItemChanged
default void onInventoryItemChanged(Item incoming, Item existing)
Item changed is when the item that is changing is the same ID but different stack sizes- Parameters:
incoming
- The incoming item, has the updated stack sizeexisting
- The existing item
-
onInventoryItemAdded
default void onInventoryItemAdded(Item item)
A new item is added- Parameters:
item
- new Item to be added
-
onInventoryItemRemoved
default void onInventoryItemRemoved(Item item)
An Item is removed- Parameters:
item
- the old item that is being removed
-
onInventoryItemSwapped
default void onInventoryItemSwapped(Item incoming, Item outgoing)
An item is being swapped out with another item- Parameters:
incoming
- The incoming itemoutgoing
- The existing item being swapped out
-
onEquipmentItemChanged
default void onEquipmentItemChanged(Item incoming, Item existing)
Item changed is when the item that is changing is the same ID but different stack sizes- Parameters:
incoming
- The incoming item, has the updated stack sizeexisting
- The existing item
-
onEquipmentItemAdded
default void onEquipmentItemAdded(Item item)
A new item is added- Parameters:
item
- new Item to be added
-
onEquipmentItemRemoved
default void onEquipmentItemRemoved(Item item)
An Item is removed- Parameters:
item
- the old item that is being removed
-
onEquipmentItemSwapped
default void onEquipmentItemSwapped(Item incoming, Item outgoing)
An item is being swapped out with another item- Parameters:
incoming
- The incoming itemoutgoing
- The existing item being swapped out
-
onBankItemChanged
default void onBankItemChanged(Item incoming, Item existing)
Item changed is when the item that is changing is the same ID but different stack sizes- Parameters:
incoming
- The incoming item, has the updated stack sizeexisting
- The existing item
-
onBankItemAdded
default void onBankItemAdded(Item item)
A new item is added- Parameters:
item
- new Item to be added
-
onBankItemRemoved
default void onBankItemRemoved(Item item)
An Item is removed- Parameters:
item
- the old item that is being removed
-
onBankItemSwapped
default void onBankItemSwapped(Item incoming, Item outgoing)
An item is being swapped out with another item- Parameters:
incoming
- The incoming itemoutgoing
- The existing item being swapped out
-
onLootBagItemAdded
default void onLootBagItemAdded(Item item)
An item is being added to the looting bag interface Only gets fired when you check/view looting bag- Parameters:
item
-
-
onLootBagItemRemoved
default void onLootBagItemRemoved(Item item)
-
-