onContainerUpdateItem

Getting triggered when an item in container updates

Prototypes
onContainerUpdateItem(callback) -- callback = function(container)
onContainerUpdateItem(callback) -- callback = function(container, slot, item)
Parameters
    • function(container, slot, item): callback function
      • container: container object
      • slot: position object
      • item: item object
Usage
onContainerUpdateItem(function(container, slot, item)
  if item then
    info("Item updated: " .. item:getId())
    info("In Container: " .. container:getName())
  end
end)