public interface LimitedRegion extends RegionAccessor
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.Modifier and Type | Method and Description |
---|---|
int |
getBuffer()
Gets the buffer around the central chunk which is accessible.
|
List<BlockState> |
getTileEntities()
Gets a list of all tile entities in the limited region including the
buffer zone.
|
boolean |
isInRegion(int x,
int y,
int z)
Checks if the given coordinates are in the region.
|
boolean |
isInRegion(Location location)
Checks if the given
Location is in the region. |
generateTree, generateTree, generateTree, getBiome, getBiome, getBlockData, getBlockData, getBlockState, getBlockState, getEntities, getEntitiesByClass, getEntitiesByClasses, getLivingEntities, getType, getType, setBiome, setBiome, setBlockData, setBlockData, setType, setType, spawn, spawn, spawn, spawnEntity, spawnEntity
int getBuffer()
For example: If the method returns 16 you have a working area of 48x48.
boolean isInRegion(@NotNull Location location)
Location
is in the region.location
- the location to checkboolean isInRegion(int x, int y, int z)
x
- X-coordinate to checky
- Y-coordinate to checkz
- Z-coordinate to check@NotNull List<BlockState> getTileEntities()
Copyright © 2022. All rights reserved.