mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-31 03:50:36 +01:00
Added int getBlockTypeIdAt(int x, int y, int z) to World
By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
parent
550e518848
commit
7669ccd206
1 changed files with 10 additions and 0 deletions
10
paper-api/src/main/java/org/bukkit/World.java
Normal file → Executable file
10
paper-api/src/main/java/org/bukkit/World.java
Normal file → Executable file
|
@ -20,6 +20,16 @@ public interface World {
|
|||
*/
|
||||
public Block getBlockAt(int x, int y, int z);
|
||||
|
||||
/**
|
||||
* Gets the block type-id at the given location
|
||||
*
|
||||
* @param x X-coordinate of the block
|
||||
* @param y Y-coordinate of the block
|
||||
* @param z Z-coordinate of the block
|
||||
* @return TypeId of the block at the given location
|
||||
*/
|
||||
public int getBlockTypeIdAt(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
|
||||
|
|
Loading…
Add table
Reference in a new issue