类 BiomeProvider

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

public abstract class BiomeProvider extends Object
用于提供生物群系的类.
  • 构造器详细资料

    • 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 - 生物群系将用于的世界的世界信息
      x - 世界原点的X坐标
      y - 世界原点的Y坐标
      z - 世界原点的Z坐标
      返回:
      给定位置的生物群系
    • 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 - 生物群系将用于的世界的世界信息
      x - 世界原点的X坐标
      y - 世界原点的Y坐标
      z - 世界原点的Z坐标
      biomeParameterPoint - 该位置默认提供的参数点(包含温度、湿度、 大陆性、侵蚀度、深度和奇异度)
      返回:
      给定位置的生物群系
      另请参阅:
    • getBiomes

      @NotNull public abstract @NotNull List<Biome> getBiomes(@NotNull @NotNull WorldInfo worldInfo)
      返回一个包含此 BiomeProvider 将用于给定世界的所有生物群系的列表.

      原文: 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 - 列表将用于的世界的世界信息
      返回:
      包含此 BiomeProvider 使用的所有生物群系的列表