public interface OutputExtent
Modifier and Type | Method and Description |
---|---|
Operation |
commit()
Return an
Operation that should be called to tie up loose ends
(such as to commit changes in a buffer). |
boolean |
setBiome(Vector2D position,
BaseBiome biome)
Set the biome.
|
boolean |
setBlock(Vector position,
BaseBlock block)
Change the block at the given location to the given block.
|
boolean setBlock(Vector position, BaseBlock block) throws WorldEditException
BaseBlock
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.
position
- position of the blockblock
- block to setWorldEditException
- thrown on an errorboolean setBiome(Vector2D position, BaseBiome biome)
position
- the (x, z) location to set the biome atbiome
- the biome to set to