Added Tile->getBlock() method

This commit is contained in:
Shoghi Cervantes 2014-10-09 12:14:39 +02:00
parent eccf7b08d2
commit b45ef8928c

View File

@ -94,6 +94,13 @@ abstract class Tile extends Position{
$this->namedtag->z = new Int("z", $this->z);
}
/**
* @return \pocketmine\block\Block
*/
public function getBlock(){
return $this->level->getBlock($this);
}
public function onUpdate(){
return false;
}