Extra methods for light buffers
Updated constructor for CuboidNibbleLightBuffer testcase and added check
Added copy method to CuboidLightBuffer
Added copy to ByteArrayCuboidLightBuffer
Use MathHelper.getRandom()
Added ResourcePointer class to handle unloaded resource referencing

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

Added ResourcePointer class
Normalize quaternion axis vector

Signed-off-by: Aleksi Sapon <QcTechs@gmail.com>
Moved serialize to CuboidLightBuffer from LightManager
Changed material model to a res pointer, adding spout model constants

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

Changed String model path to a ResourcePointer
Fixed a bug with SimpleRegionFile
- isClosed() = true did not guarantee that it was safe to open a new SimpleRegionFile with the same name
-- The map was updated after the update to the atomic variable checked by isClosed()
--- Added full syncing

- Removed closed AtomicBoolean, as it did nothing

- Fixes a bug with MappedRandomAccessFile
-- write pointer was not adjusted correctly after write
-- seek was always used before write anyway

- slight tweak to the block locks
Missed a variable
Merge pull request #493 from DDoSQc/master

Normalize quaternion axis vector
Partial revert of 91d11f3c60170b610fa24c171a93290fc6fd20a8
Added canHold and canWithdraw for sane transfers, and to allow alternate minimum/maximum balances to accounts.

moved methods so I can sanely modify javadocs when making changes to how the API functions.

Signed-off-by: Sleaker <sleaker@gmail.com>
Merge pull request #495 from Sleaker/master

make transfers sane, update docs
forgot a couple currency exceptions.

Signed-off-by: Sleaker <sleaker@gmail.com>
Add AnimationEndEvent
Merge pull request #496 from Sleaker/master

forgot a couple currency exceptions