mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-19 22:33:48 -07:00
SPIGOT-3664: Add Material getter to ChunkSnapshot
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -31,6 +31,16 @@ public interface ChunkSnapshot {
|
|||||||
*/
|
*/
|
||||||
String getWorldName();
|
String getWorldName();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get block type for block at corresponding coordinate in the chunk
|
||||||
|
*
|
||||||
|
* @param x 0-15
|
||||||
|
* @param y 0-127
|
||||||
|
* @param z 0-15
|
||||||
|
* @return block material type
|
||||||
|
*/
|
||||||
|
Material getBlockType(int x, int y, int z);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get block type for block at corresponding coordinate in the chunk
|
* Get block type for block at corresponding coordinate in the chunk
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user