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 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 size
        existing - 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 item
        outgoing - 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 size
        existing - 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 item
        outgoing - 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 size
        existing - 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 item
        outgoing - 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)
      • onLootBagItemUpdated

        default void onLootBagItemUpdated​(Item incoming,
                                          Item existing)