diff options
author | sk89q <the.sk89q@gmail.com> | 2011-02-05 23:19:26 -0800 |
---|---|---|
committer | sk89q <the.sk89q@gmail.com> | 2011-02-05 23:19:36 -0800 |
commit | 4026cd656fe3ab64ca31a24aca64b4d54d528cb7 (patch) | |
tree | d11eeb8a6e1af20aedda689a69c5f34ece029769 | |
parent | 4ede622195af2ce2821b70e827699698175cd6e6 (diff) | |
download | craftbukkit-4026cd656fe3ab64ca31a24aca64b4d54d528cb7.tar craftbukkit-4026cd656fe3ab64ca31a24aca64b4d54d528cb7.tar.gz craftbukkit-4026cd656fe3ab64ca31a24aca64b4d54d528cb7.tar.lz craftbukkit-4026cd656fe3ab64ca31a24aca64b4d54d528cb7.tar.xz craftbukkit-4026cd656fe3ab64ca31a24aca64b4d54d528cb7.zip |
Added CraftBlock.getVector().
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java index 4417788e..55f8422f 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java +++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java @@ -12,6 +12,7 @@ import org.bukkit.block.BlockState; import org.bukkit.craftbukkit.CraftChunk; import org.bukkit.craftbukkit.block.CraftBlockState; import org.bukkit.craftbukkit.block.CraftSign; +import org.bukkit.util.BlockVector; public class CraftBlock implements Block { private final CraftChunk chunk; @@ -44,6 +45,10 @@ public class CraftBlock implements Block { return new Location(getWorld(), x, y, z); } + public BlockVector getVector() { + return new BlockVector(x, y, z); + } + /** * Gets the x-coordinate of this block * |