mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +00:00
Entity: added getEyePos()
This commit is contained in:
@@ -1171,6 +1171,10 @@ abstract class Entity extends Location{
|
||||
return $this->eyeHeight;
|
||||
}
|
||||
|
||||
public function getEyePos() : Vector3{
|
||||
return new Vector3($this->x, $this->y + $this->getEyeHeight(), $this->z);
|
||||
}
|
||||
|
||||
public function onCollideWithPlayer(Player $player) : void{
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user