程序包 org.bukkit.generator

# 类 BiomeProvider

java.lang.Object
org.bukkit.generator.BiomeProvider

public abstract class BiomeProvider extends Object
Class for providing biomes.

- ## 构造器概要

  构造器
  构造器
  说明
  `BiomeProvider()`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `abstract @NotNull Biome`
  `getBiome(@NotNull WorldInfo worldInfo, int x, int y, int z)`
  Return the Biome which should be present at the provided location.
  `@NotNull Biome`
  `getBiome(@NotNull WorldInfo worldInfo, int x, int y, int z, @NotNull BiomeParameterPoint biomeParameterPoint)`
  Return the Biome which should be present at the provided location.
  `abstract @NotNull List<Biome>`
  `getBiomes(@NotNull WorldInfo worldInfo)`
  Returns a list with every biome the `BiomeProvider` will use for the given world.

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 构造器详细资料

  - ### BiomeProvider

    public BiomeProvider()

- ## 方法详细资料

  - ### getBiome

    @NotNull public abstract @NotNull Biome getBiome(@NotNull @NotNull WorldInfo worldInfo, int x, int y, int z)
    Return the Biome which should be present at the provided location.

    Notes:

    This method must be completely thread safe and able to handle multiple concurrent callers.

    This method should only return biomes which are present in the list returned by `getBiomes(WorldInfo)`

    This method should never return `Biome.CUSTOM`.

    参数:
      `worldInfo` - The world info of the world the biome will be used for
      `x` - The X-coordinate from world origin
      `y` - The Y-coordinate from world origin
      `z` - The Z-coordinate from world origin
    返回:
      Biome for the given location

  - ### getBiome

    @NotNull public @NotNull Biome getBiome(@NotNull @NotNull WorldInfo worldInfo, int x, int y, int z, @NotNull @NotNull BiomeParameterPoint biomeParameterPoint)
    Return the Biome which should be present at the provided location.

    Notes:

    This method must be completely thread safe and able to handle multiple concurrent callers.

    This method should only return biomes which are present in the list returned by `getBiomes(WorldInfo)`

    This method should never return `Biome.CUSTOM`. Only this method is called if both this and `getBiome(WorldInfo, int, int, int)` are overridden.

    参数:
      `worldInfo` - The world info of the world the biome will be used for
      `x` - The X-coordinate from world origin
      `y` - The Y-coordinate from world origin
      `z` - The Z-coordinate from world origin
      `biomeParameterPoint` - The parameter point that is provided by default for this location (contains temperature, humidity, continentalness, erosion, depth and weirdness)
    返回:
      Biome for the given location
    另请参阅:
      - `getBiome(WorldInfo, int, int, int)`

  - ### getBiomes

    @NotNull public abstract @NotNull List<Biome> getBiomes(@NotNull @NotNull WorldInfo worldInfo)
    Returns a list with every biome the `BiomeProvider` will use for the given world.

    Notes:

    This method only gets called once, when the world is loaded. Returning another list or modifying the values from the initial returned list later one, are not respected.

    This method should never return a list which contains `Biome.CUSTOM`.

    参数:
      `worldInfo` - The world info of the world the list will be used for
    返回:
      A list with every biome the `BiomeProvider` uses