mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-10 21:45:35 +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);
|
$this->namedtag->z = new Int("z", $this->z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return \pocketmine\block\Block
|
||||||
|
*/
|
||||||
|
public function getBlock(){
|
||||||
|
return $this->level->getBlock($this);
|
||||||
|
}
|
||||||
|
|
||||||
public function onUpdate(){
|
public function onUpdate(){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user