FallenMoonNetwork/CanaryMod — pull request #11 by Jarvix (2012-05-11 13:21:14+00:00)
Title: Adding ITEM_TOUCH_GROUND hook.

This commit adds a new hook ITEM_TOUCH_GROUND. Its PluginListener function is onItemTouchGround(ItemEntity). It is called when an itementity begins touching the ground. Eg: the moment it falls on the floor after being dropped by a player or by a chicken.

This hook can be used to auto-insert items into containers or to make an auto-plant plugin. Before, this was done using a timer or onTimeUpdate(), looping over ALL itementities checking their state. This is a massive hit in performance.