public interface World
LocalWorld eventually, once this class has been
fleshed out with the required methods and it has been decided that it is time to
start breaking some API compatibility.boolean setBlock(Vector location, Block block, boolean notifyAdjacent)
Block to the world, so future changes to the
Block do not affect the world until this method is called again.
Implementations may or may not consider the value of the notifyAdjacent
parameter, and implementations may to choose to either apply physics anyway or
to not apply any physics (particularly in a stand-alone implementation).
The return value of this method indicates whether the change "went through," as
in the block was changed in the world in any way. If the new block is no different
than the block already at the position in the world, 'false' would be returned.
If the position is invalid (out of bounds, for example), then nothing should
occur and 'false' should be returned. If possible, the return value should be
accurate as possible, but implementations may choose to not provide an accurate
value if it is not possible to know.location - location of the blockblock - block to setnotifyAdjacent - true to to notify adjacent (perform physics)Block getBlock(Vector location)
Block have no effect until
setBlock(Vector, Block, boolean) is called.location - location of the blockCopyright © 2010-2014. All Rights Reserved.