public class ChangeSetExtent extends AbstractDelegateExtent
ChangeSet.| Constructor and Description |
|---|
ChangeSetExtent(Extent extent,
ChangeSet changeSet)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Entity |
createEntity(Location location,
BaseEntity state)
Create an entity at the given location.
|
List<? extends Entity> |
getEntities()
Get a list of all entities.
|
List<? extends Entity> |
getEntities(Region region)
Get a list of all entities within the given region.
|
boolean |
setBlock(Vector location,
BaseBlock block)
Change the block at the given location to the given block.
|
commit, commitBefore, getBiome, getBlock, getExtent, getLazyBlock, getMaximumPoint, getMinimumPoint, setBiomepublic 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 error@Nullable public Entity createEntity(Location location, BaseEntity state)
ExtentcreateEntity in interface ExtentcreateEntity in class AbstractDelegateExtentlocation - the locationstate - the entitypublic List<? extends Entity> getEntities()
ExtentIf the extent is not wholly loaded (i.e. a world being simulated in the game will not have every chunk loaded), then this list may not be incomplete.
getEntities in interface ExtentgetEntities in class AbstractDelegateExtentpublic List<? extends Entity> getEntities(Region region)
ExtentIf the extent is not wholly loaded (i.e. a world being simulated in the game will not have every chunk loaded), then this list may not be incomplete.
getEntities in interface ExtentgetEntities in class AbstractDelegateExtentregion - the region in which entities must be containedCopyright © 2010-2014. All Rights Reserved.