From 5fcc3b626cc9b6378efecfa840acd8d067b77d36 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 21 Jan 2011 19:39:31 +0800 Subject: [PATCH] Block instance getLocation() method. By: Adam Tanner --- paper-api/src/main/java/org/bukkit/block/Block.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/block/Block.java b/paper-api/src/main/java/org/bukkit/block/Block.java index 3eba796ce7..cb4ba7dce9 100644 --- a/paper-api/src/main/java/org/bukkit/block/Block.java +++ b/paper-api/src/main/java/org/bukkit/block/Block.java @@ -3,6 +3,7 @@ package org.bukkit.block; import org.bukkit.Chunk; import org.bukkit.Material; import org.bukkit.World; +import org.bukkit.Location; import org.bukkit.block.BlockState; /** @@ -114,6 +115,14 @@ public interface Block { */ int getZ(); + /** + * Gets the Location of the block + * + * @return Location of block + */ + + Location getLocation(); + /** * Gets the chunk which contains this block *