public interface Extent extends InputExtent, OutputExtent
the get____() portion
,
the set____() portion
Modifier and Type | Method and Description |
---|---|
Entity |
createEntity(Location location,
BaseEntity entity)
Create an entity at the given location.
|
java.util.List<? extends Entity> |
getEntities()
Get a list of all entities.
|
java.util.List<? extends Entity> |
getEntities(Region region)
Get a list of all entities within the given region.
|
BlockVector3 |
getMaximumPoint()
Get the maximum point in the extent.
|
BlockVector3 |
getMinimumPoint()
Get the minimum point in the extent.
|
getBiome, getBiome, getBlock, getFullBlock
commit, fullySupports3DBiomes, setBiome, setBiome, setBlock
BlockVector3 getMinimumPoint()
If the extent is unbounded, then a large (negative) value may be returned.
BlockVector3 getMaximumPoint()
If the extent is unbounded, then a large (positive) value may be returned.
java.util.List<? extends Entity> getEntities(Region region)
If 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.
region
- the region in which entities must be containedjava.util.List<? extends Entity> getEntities()
If 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.
@Nullable Entity createEntity(Location location, BaseEntity entity)
entity
- the entitylocation
- the location