From 285c10e313a5b85ee86738811c8ec5178f37027e Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Thu, 7 Dec 2017 10:25:07 +1100 Subject: [PATCH] SPIGOT-3664: Add Material getter to ChunkSnapshot By: md_5 --- paper-api/src/main/java/org/bukkit/ChunkSnapshot.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/ChunkSnapshot.java b/paper-api/src/main/java/org/bukkit/ChunkSnapshot.java index 6b0f14bf2a..08e0bcdd5b 100644 --- a/paper-api/src/main/java/org/bukkit/ChunkSnapshot.java +++ b/paper-api/src/main/java/org/bukkit/ChunkSnapshot.java @@ -31,6 +31,16 @@ public interface ChunkSnapshot { */ 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 *