diff options
author | Adam Tanner <adam@adamtanner.org> | 2011-01-21 19:39:31 +0800 |
---|---|---|
committer | Victor Danell <victor.danell@gmail.com> | 2011-01-21 23:59:34 +0800 |
commit | 3306b07b8d350b9249a058b5c97519695171705e (patch) | |
tree | 975577f43056632ec29f16325424b5e8efd6dcd1 /src | |
parent | 228e150cfa314ec5b284410630f55c5aec943f6c (diff) | |
download | bukkit-3306b07b8d350b9249a058b5c97519695171705e.tar bukkit-3306b07b8d350b9249a058b5c97519695171705e.tar.gz bukkit-3306b07b8d350b9249a058b5c97519695171705e.tar.lz bukkit-3306b07b8d350b9249a058b5c97519695171705e.tar.xz bukkit-3306b07b8d350b9249a058b5c97519695171705e.zip |
Block instance getLocation() method.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/block/Block.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/block/Block.java b/src/main/java/org/bukkit/block/Block.java index 3eba796c..cb4ba7dc 100644 --- a/src/main/java/org/bukkit/block/Block.java +++ b/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; /** @@ -115,6 +116,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 * * @return Containing Chunk |