枚举的使用
org.bukkit.HeightMap
-
org.bukkit中HeightMap的使用
修饰符和类型方法说明static HeightMap
返回带有指定名称的该类型的枚举常量。static HeightMap[]
HeightMap.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。修饰符和类型方法说明World.getHighestBlockAt
(int x, int z, @NotNull HeightMap heightMap) Gets the highest block corresponding to theHeightMap
at the given coordinates.World.getHighestBlockAt
(@NotNull Location location, @NotNull HeightMap heightMap) Gets the highest block corresponding to theHeightMap
at the given coordinates.int
RegionAccessor.getHighestBlockYAt
(int x, int z, @NotNull HeightMap heightMap) Gets the highest coordinate corresponding to theHeightMap
at the given coordinates.int
RegionAccessor.getHighestBlockYAt
(@NotNull Location location, @NotNull HeightMap heightMap) -
org.bukkit.generator中HeightMap的使用
修饰符和类型方法说明int
ChunkGenerator.getBaseHeight
(@NotNull WorldInfo worldInfo, @NotNull Random random, int x, int z, @NotNull HeightMap heightMap) This method is similar toWorld.getHighestBlockAt(int, int, HeightMap)
.