@ParametersAreNonnullByDefault @MethodsReturnNonnullByDefault public class ServerHeightMap extends java.lang.Object implements IHeightMap
IHeightMap.HeightMap| Constructor and Description |
|---|
ServerHeightMap(int[] heightmap) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
dump(int localX,
int localZ) |
byte[] |
getData() |
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)
Returns the y-coordinate of the highest non-transparent block that is below the given blockY.
|
void |
onOpacityChange(int localX,
int blockY,
int localZ,
int opacity)
Sets the opacity at the given position to the given value.
|
void |
readData(byte[] data) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisOccludedpublic void onOpacityChange(int localX,
int blockY,
int localZ,
int opacity)
IHeightMaponOpacityChange in interface IHeightMaplocalX - local block x-coordinate (0..15)blockY - global block y-coordinatelocalZ - local block z-coordinate (0..15)opacity - new opacity (0..255)public int getTopBlockY(int localX,
int localZ)
IHeightMapgetTopBlockY in interface IHeightMaplocalX - local block x-coordinate (0..15)localZ - local block z-coordinate (0..15)public int getTopBlockYBelow(int localX,
int localZ,
int blockY)
IHeightMapgetTopBlockYBelow in interface IHeightMaplocalX - local block x-coordinate (0..15)localZ - local block z-coordinate (0..15)blockY - only positions below or at this Y coordinate will be retuirnedpublic int getLowestTopBlockY()
IHeightMapgetLowestTopBlockY in interface IHeightMappublic byte[] getData()
public void readData(byte[] data)
public java.lang.String dump(int localX,
int localZ)