Added CraftBlock.getVector().

This commit is contained in:
sk89q 2011-02-05 23:19:26 -08:00
parent 4ede622195
commit 4026cd656f

View File

@ -12,6 +12,7 @@ import org.bukkit.block.BlockState;
import org.bukkit.craftbukkit.CraftChunk; import org.bukkit.craftbukkit.CraftChunk;
import org.bukkit.craftbukkit.block.CraftBlockState; import org.bukkit.craftbukkit.block.CraftBlockState;
import org.bukkit.craftbukkit.block.CraftSign; import org.bukkit.craftbukkit.block.CraftSign;
import org.bukkit.util.BlockVector;
public class CraftBlock implements Block { public class CraftBlock implements Block {
private final CraftChunk chunk; private final CraftChunk chunk;
@ -44,6 +45,10 @@ public class CraftBlock implements Block {
return new Location(getWorld(), x, y, z); return new Location(getWorld(), x, y, z);
} }
public BlockVector getVector() {
return new BlockVector(x, y, z);
}
/** /**
* Gets the x-coordinate of this block * Gets the x-coordinate of this block
* *