mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 11:18:52 +00:00
Entity $chunkIndex
This commit is contained in:
parent
b36d754e5b
commit
7a44e8041f
@ -28,6 +28,7 @@ abstract class Entity extends Position{
|
|||||||
//public $passenger = null;
|
//public $passenger = null;
|
||||||
//public $vehicle = null;
|
//public $vehicle = null;
|
||||||
|
|
||||||
|
public $chunkIndex;
|
||||||
public $lastX;
|
public $lastX;
|
||||||
public $lastY;
|
public $lastY;
|
||||||
public $lastZ;
|
public $lastZ;
|
||||||
@ -70,7 +71,7 @@ abstract class Entity extends Position{
|
|||||||
$this->lastUpdate = microtime(true);
|
$this->lastUpdate = microtime(true);
|
||||||
$this->initEntity();
|
$this->initEntity();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract function initEntity();
|
protected abstract function initEntity();
|
||||||
|
|
||||||
public abstract function spawnTo(Player $player);
|
public abstract function spawnTo(Player $player);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user