@ParametersAreNonnullByDefault @MethodsReturnNonnullByDefault public class ClientHeightMap extends java.lang.Object implements IHeightMap
IHeightMap.HeightMap| Constructor and Description |
|---|
ClientHeightMap(net.minecraft.world.chunk.Chunk column,
int[] heightmap) |
| Modifier and Type | Method and Description |
|---|---|
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 |
loadData(net.minecraft.network.PacketBuffer in) |
void |
onOpacityChange(int localX,
int blockY,
int localZ,
int opacity)
Sets the opacity at the given position to the given value.
|
void |
setHeight(int localX,
int localZ,
int height) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisOccludedpublic ClientHeightMap(net.minecraft.world.chunk.Chunk column,
int[] heightmap)
public 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 getLowestTopBlockY()
IHeightMapgetLowestTopBlockY in interface IHeightMappublic 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 void setHeight(int localX,
int localZ,
int height)
public byte[] getData()
public void loadData(net.minecraft.network.PacketBuffer in)