mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
2159
This commit is contained in:
parent
0f72601891
commit
2573e4f90d
14 changed files with 65 additions and 57 deletions
|
|
@ -24,6 +24,10 @@ class PathTileXYZ extends PathTile
|
|||
return new Vector3($this->x, $this->y, $this->z);
|
||||
}
|
||||
|
||||
public function asArray(){
|
||||
return ["x" => $this->x, "y" => $this->y, "z" => $this->z];
|
||||
}
|
||||
|
||||
public function addOffset($offset){
|
||||
$this->x += $offset[0];
|
||||
$this->y += $offset[1];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue