From 9c3badbaafa8ba9b875092f94cd32b78f9240744 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sat, 5 Feb 2011 23:19:26 -0800 Subject: [PATCH] Added CraftBlock.getVector(). By: sk89q --- .../main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java index 4417788ece..55f8422fa2 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java +++ b/paper-server/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 *