程序包 org.bukkit.generator

# 接口 LimitedRegion

所有超级接口:
  `RegionAccessor`

public interface LimitedRegion extends 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.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `int`
  `getBuffer()`
  Gets the buffer around the central chunk which is accessible.
  `@NotNull 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(@NotNull Location location)`
  Checks if the given `Location` is in the region.

  ### 从接口继承的方法 org.bukkit.RegionAccessor

  `addEntity, createEntity, generateTree, generateTree, generateTree, getBiome, getBiome, getBlockData, getBlockData, getBlockState, getBlockState, getEntities, getEntitiesByClass, getEntitiesByClasses, getHighestBlockYAt, getHighestBlockYAt, getHighestBlockYAt, getHighestBlockYAt, getLivingEntities, getType, getType, setBiome, setBiome, setBlockData, setBlockData, setType, setType, spawn, spawn, spawn, spawnEntity, spawnEntity`

- ## 方法详细资料

  - ### getBuffer

    int 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.

    返回:
      The buffer in X and Z direction

  - ### isInRegion

    boolean isInRegion(@NotNull @NotNull Location location)
    Checks if the given `Location` is in the region.
    参数:
      `location` - the location to check
    返回:
      true if the location is in the region, otherwise false.

  - ### isInRegion

    boolean isInRegion(int x, int y, int z)
    Checks if the given coordinates are in the region.
    参数:
      `x` - X-coordinate to check
      `y` - Y-coordinate to check
      `z` - Z-coordinate to check
    返回:
      true if the coordinates are in the region, otherwise false.

  - ### getTileEntities

    @NotNull @NotNull List<BlockState> getTileEntities()
    Gets a list of all tile entities in the limited region including the buffer zone.
    返回:
      a list of tile entities.