类 BiomeProvider
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明返回在指定位置应该存在的生物群系.getBiome(@NotNull WorldInfo worldInfo, int x, int y, int z, @NotNull BiomeParameterPoint biomeParameterPoint) 返回在指定位置应该存在的生物群系.返回一个包含此BiomeProvider将用于给定世界的所有生物群系的列表.
-
构造器详细资料
-
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 andgetBiome(WorldInfo, int, int, int)are overridden.- 参数:
worldInfo- 生物群系将用于的世界的世界信息x- 世界原点的X坐标y- 世界原点的Y坐标z- 世界原点的Z坐标biomeParameterPoint- 该位置默认提供的参数点(包含温度、湿度、 大陆性、侵蚀度、深度和奇异度)- 返回:
- 给定位置的生物群系
- 另请参阅:
-
getBiomes
返回一个包含此BiomeProvider将用于给定世界的所有生物群系的列表.原文: Returns a list with every biome the
BiomeProviderwill 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使用的所有生物群系的列表
-