public class MultiStageReorder extends AbstractDelegateExtent implements ReorderingExtent
| Constructor and Description |
|---|
MultiStageReorder(Extent extent)
Create a new instance when the re-ordering is enabled.
|
MultiStageReorder(Extent extent,
boolean enabled)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Operation |
commitBefore() |
boolean |
isEnabled()
Return whether re-ordering is enabled.
|
boolean |
setBlock(Vector location,
BaseBlock block)
Change the block at the given location to the given block.
|
void |
setEnabled(boolean enabled)
Set whether re-ordering is enabled.
|
commit, createEntity, getBiome, getBlock, getEntities, getEntities, getExtent, getLazyBlock, getMaximumPoint, getMinimumPoint, setBiomeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateEntity, getEntities, getEntities, getMaximumPoint, getMinimumPointgetBiome, getBlock, getLazyBlockcommit, setBiomepublic MultiStageReorder(Extent extent, boolean enabled)
extent - the extentenabled - true to enablepublic MultiStageReorder(Extent extent)
extent - the extentpublic boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - true if re-ordering is enabledpublic boolean setBlock(Vector location, BaseBlock block) throws WorldEditException
OutputExtentBaseBlock to the world, so future changes to the
BaseBlock do not affect the world until this method is called again.
The return value of this method indicates whether the change was probably successful. It may not be successful if, for example, the location is out of the bounds of the extent. It may be unsuccessful if the block passed is the same as the one in the world. However, the return value is only an estimation and it may be incorrect, but it could be used to count, for example, the approximate number of changes.
setBlock in interface OutputExtentsetBlock in class AbstractDelegateExtentlocation - position of the blockblock - block to setWorldEditException - thrown on an errorpublic Operation commitBefore()
commitBefore in class AbstractDelegateExtentCopyright © 2010-2014. All Rights Reserved.