@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
public interface IHeightMap
| Modifier and Type | Interface and Description |
|---|---|
static class |
IHeightMap.HeightMap |
| Modifier and Type | Method and Description |
|---|---|
int |
getLowestTopBlockY()
Out of the highest non-opaque blocks from all block columns in the column, returns the y-coordinate of the lowest
block.
|
int |
getTopBlockY(int localX,
int localZ)
Returns the y-coordinate of the highest non-transparent block in the specified block-column.
|
int |
getTopBlockYBelow(int localX,
int localZ,
int blockY)
Deprecated.
|
default boolean |
isOccluded(int localX,
int blockY,
int localZ)
Returns true if the block at the given position is occluded by a known non-opaque block further up.
|
void |
onOpacityChange(int localX,
int blockY,
int localZ,
int opacity)
Sets the opacity at the given position to the given value.
|
void onOpacityChange(int localX,
int blockY,
int localZ,
int opacity)
localX - local block x-coordinate (0..15)blockY - global block y-coordinatelocalZ - local block z-coordinate (0..15)opacity - new opacity (0..255)default boolean isOccluded(int localX,
int blockY,
int localZ)
localX - local block x-coordinate (0..15)blockY - global block y-coordinatelocalZ - local block z-coordinate (0..15)int getTopBlockY(int localX,
int localZ)
localX - local block x-coordinate (0..15)localZ - local block z-coordinate (0..15)@Deprecated
int getTopBlockYBelow(int localX,
int localZ,
int blockY)
localX - local block x-coordinate (0..15)localZ - local block z-coordinate (0..15)blockY - only positions below or at this Y coordinate will be retuirnedint getLowestTopBlockY()