Update EntityAPI.php

This commit is contained in:
ArkQuark 2022-10-20 23:35:02 +03:00
parent 7ea63bdceb
commit 83b7bc4b39
11 changed files with 380 additions and 57 deletions

View file

@ -16,6 +16,10 @@ class Vector3{
$this->z = $z;
}
public function toArray(){
return ["x" => $this->x, "y" => $this->y, "z" => $this->z];
}
public function getFloorX(){
return (int) $this->x;
}