Added 1-offset previous and next overload methods

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>
Merge pull request #504 from bergerkiller/master

Added next and previous overloading methods
Use methods instead of direct field access to allow custom implementations of inventories
Give previous itemstack in onSlotSet
Add getEntity to Agents.
Signed-off-by: Chris Sanders <zidane@outlook.com>
Stubbed out Inventory events, issue VANILLA-213

Signed-off-by: Don Redhorse <dredhorse@breiden.net>
We can not use a new SecureRandom call for each thread, /dev/random has limited amount of bits of entropy, can easily deplete all available entropy and lead to long waits or even deadlocks.
Support changing view distances
Optimise glEnable/DisableVertexAttribArray
Fixed snapshot id in tick stage
Adds block change notification to lighting manager system
Merge pull request #505 from dredhorse/feature/FurnaceInventoryEvent

Stubbed out Inventory events, issue VANILLA-213
Cleanup inventory events