summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-12-07 10:25:07 +1100
committermd_5 <git@md-5.net>2017-12-07 10:25:07 +1100
commit1b5583319cc4a9d2e9e1a966be980b95480c3587 (patch)
tree444321d7365a1cf873548f1d42fa3eef0fe3b03c
parentd41ccca23deb0a9d2ae4f151ab4f8be87b17797c (diff)
downloadbukkit-1b5583319cc4a9d2e9e1a966be980b95480c3587.tar
bukkit-1b5583319cc4a9d2e9e1a966be980b95480c3587.tar.gz
bukkit-1b5583319cc4a9d2e9e1a966be980b95480c3587.tar.lz
bukkit-1b5583319cc4a9d2e9e1a966be980b95480c3587.tar.xz
bukkit-1b5583319cc4a9d2e9e1a966be980b95480c3587.zip
SPIGOT-3664: Add Material getter to ChunkSnapshot
-rw-r--r--src/main/java/org/bukkit/ChunkSnapshot.java10
1 files changed, 10 insertions, 0 deletions
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
@@ -37,6 +37,16 @@ public interface ChunkSnapshot {
* @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
+ *
+ * @param x 0-15
+ * @param y 0-127
+ * @param z 0-15
* @return 0-255
* @deprecated Magic value
*/