mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Added getHighestBlockYAt
By: FrozenCow <frozencow@gmail.com>
This commit is contained in:
parent
b706c19913
commit
c16bd08b18
1 changed files with 8 additions and 0 deletions
|
@ -20,6 +20,14 @@ public interface World {
|
||||||
*/
|
*/
|
||||||
public Block getBlockAt(int x, int y, int z);
|
public Block getBlockAt(int x, int y, int z);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the highest non-air coordinate at the given (x,z) location
|
||||||
|
* @param x X-coordinate of the blocks
|
||||||
|
* @param z Z-coordinate of the blocks
|
||||||
|
* @return Y-coordinate of the highest non-air block
|
||||||
|
*/
|
||||||
|
public int getHighestBlockYAt(int x, int z);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the chunk at the given location
|
* Gets the chunk at the given location
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue