#473: Add an API for passing the heightmap to getHighestBlockAt* method

By: ysl3000 <yannicklamprecht@live.de>
This commit is contained in:
Bukkit/Spigot
2020-02-09 10:31:05 +11:00
parent 26409057b9
commit 92cb9d0c47
2 changed files with 87 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
package org.bukkit;
/**
* Further information regarding heightmaps.
*
* @see <a href="https://minecraft.gamepedia.com/Chunk_format">Gamepedia Chunk
* Format</a>
*/
public enum HeightMap {
/**
* The highest block that blocks motion or contains a fluid.
*/
MOTION_BLOCKING,
/**
* The highest block that blocks motion or contains a fluid or is in the
* {@link Tag#LEAVES}.
*/
MOTION_BLOCKING_NO_LEAVES,
/**
* The highest non-air block, solid block.
*/
OCEAN_FLOOR,
/**
* The highest block that is neither air nor contains a fluid, for worldgen.
*/
OCEAN_FLOOR_WG,
/**
* The highest non-air block.
*/
WORLD_SURFACE,
/**
* The highest non-air block, for worldgen.
*/
WORLD_SURFACE_WG,
}