SpoutDev/SpoutAPI — pull request #259 by bergerkiller (2012-06-19 16:57:29+00:00)
Title: Added Inventory itemstack iterator and simplified viewer iteration

Signed-off-by: Irmo van den Berge

You can now iterator over Inventories using a simple for-loop, and can use remove() to clear items as well. I also added a 'Soft Reference Iterator', what that does is iterate over a collection of soft references, getting the object contained in each reference, and removing the reference if it is empty. It is there to prevent duplications in the Inventory 'notify' handling.