Class ItemContainerChanged


  • public final class ItemContainerChanged
    extends java.lang.Object
    An event called whenever the stack size of an Item in an ItemContainer is modified.

    Examples of when this event may trigger include:

    • Withdrawing an item from bank (triggers for both bank and player inv)
    • Picking up an item
    • Dropping an item
    • Constructor Detail

      • ItemContainerChanged

        public ItemContainerChanged​(int containerId,
                                    ItemContainer itemContainer)
    • Method Detail

      • getContainerId

        public int getContainerId()
        The modified container's ID.
      • getItemContainer

        public ItemContainer getItemContainer()
        The modified item container.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object