summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAdam Tanner <adam@adamtanner.org>2011-01-21 19:40:31 +0800
committerVictor Danell <victor.danell@gmail.com>2011-01-22 00:05:09 +0800
commit2106eeef5017fd23e81b062f51b986dd759b2556 (patch)
treeec7446d79926466ab8e93c0fb4d5e8388118cab6 /src/main/java/org
parent1cbde901bacb7620e555d1725c95619641caba8e (diff)
downloadcraftbukkit-2106eeef5017fd23e81b062f51b986dd759b2556.tar
craftbukkit-2106eeef5017fd23e81b062f51b986dd759b2556.tar.gz
craftbukkit-2106eeef5017fd23e81b062f51b986dd759b2556.tar.lz
craftbukkit-2106eeef5017fd23e81b062f51b986dd759b2556.tar.xz
craftbukkit-2106eeef5017fd23e81b062f51b986dd759b2556.zip
CraftBlock instance getLocation() method.
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java10
1 files changed, 10 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 867a8812..1ee32257 100644
--- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
+++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
@@ -4,6 +4,7 @@ package org.bukkit.craftbukkit.block;
import org.bukkit.block.BlockFace;
import org.bukkit.block.Biome;
import org.bukkit.block.Block;
+import org.bukkit.Location;
import net.minecraft.server.MobSpawnerBase;
import org.bukkit.*;
import org.bukkit.block.BlockState;
@@ -55,6 +56,15 @@ public class CraftBlock implements Block {
}
/**
+ * Gets the Location of the block
+ *
+ * @return Location of the block
+ */
+ public Location getLocation() {
+ return new Location(world, x, y, z);
+ }
+
+ /**
* Gets the x-coordinate of this block
*
* @return x-coordinate