Block instance getLocation() method.

This commit is contained in:
Adam Tanner 2011-01-21 19:39:31 +08:00 committed by Victor Danell
parent 228e150cfa
commit 3306b07b8d

View File

@ -3,6 +3,7 @@ package org.bukkit.block;
import org.bukkit.Chunk; import org.bukkit.Chunk;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.World; import org.bukkit.World;
import org.bukkit.Location;
import org.bukkit.block.BlockState; import org.bukkit.block.BlockState;
/** /**
@ -114,6 +115,14 @@ public interface Block {
*/ */
int getZ(); int getZ();
/**
* Gets the Location of the block
*
* @return Location of block
*/
Location getLocation();
/** /**
* Gets the chunk which contains this block * Gets the chunk which contains this block
* *