Package org.bukkit.generator
Interface LimitedRegion
- All Superinterfaces:
- RegionAccessor
A limited region is used in world generation for features which are
 going over a chunk. For example, trees or ores.
 Use 
getBuffer() to know how much you can go beyond the central
 chunk. The buffer zone may or may not be already populated.
 The coordinates are absolute from the world origin.- 
Method SummaryModifier and TypeMethodDescriptionintGets the buffer around the central chunk which is accessible.Gets a list of all tile entities in the limited region including the buffer zone.booleanisInRegion(int x, int y, int z)Checks if the given coordinates are in the region.booleanisInRegion(Location location)Checks if the givenLocationis in the region.Methods inherited from interface org.bukkit.RegionAccessorgenerateTree, generateTree, getBiome, getBiome, getBlockData, getBlockData, getBlockState, getBlockState, getEntities, getEntitiesByClass, getEntitiesByClasses, getLivingEntities, getType, getType, setBiome, setBiome, setBlockData, setBlockData, setType, setType, spawn, spawn, spawn, spawnEntity, spawnEntity
- 
Method Details- 
getBufferint getBuffer()Gets the buffer around the central chunk which is accessible. The returned value is in normal world coordinate scale.For example: If the method returns 16 you have a working area of 48x48. - Returns:
- The buffer in X and Z direction
 
- 
isInRegionChecks if the givenLocationis in the region.- Parameters:
- location- the location to check
- Returns:
- true if the location is in the region, otherwise false.
 
- 
isInRegionboolean isInRegion(int x, int y, int z)Checks if the given coordinates are in the region.- Parameters:
- x- X-coordinate to check
- y- Y-coordinate to check
- z- Z-coordinate to check
- Returns:
- true if the coordinates are in the region, otherwise false.
 
- 
getTileEntitiesGets a list of all tile entities in the limited region including the buffer zone.- Returns:
- a list of tile entities.
 
 
-