mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Added Tile->getBlock() method
This commit is contained in:
parent
eccf7b08d2
commit
b45ef8928c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user