From 1b5583319cc4a9d2e9e1a966be980b95480c3587 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 7 Dec 2017 10:25:07 +1100 Subject: SPIGOT-3664: Add Material getter to ChunkSnapshot --- src/main/java/org/bukkit/ChunkSnapshot.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main') diff --git a/src/main/java/org/bukkit/ChunkSnapshot.java b/src/main/java/org/bukkit/ChunkSnapshot.java index 6b0f14bf..08e0bcdd 100644 --- a/src/main/java/org/bukkit/ChunkSnapshot.java +++ b/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 * -- cgit v1.2.3