mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Added Tile->getBlock() method
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user