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
Added Vector3[] setUniform call
Some change in Renderer
Error logging to help diagnose Vanilla-338
Revert "Stack Alloc testing"

This reverts commit 83eae58d6ecb127215cf7e0b70c80520b909486b.
Less Multiplication, More perf
More fast PI
MathHelper.getRandom() change
- Reduced entropy load
- The Random for each thread gets a different seed
- Still probably overkill
Computational improvement for rotation smoothing

Signed-off-by: Alkaelis <AlkaelisFenaro@gmail.com>