mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
small changes to entity ai(again =/)
This commit is contained in:
parent
c29d8dab9d
commit
978447cdbb
9 changed files with 44 additions and 41 deletions
|
|
@ -16,6 +16,10 @@ class Vector3{
|
|||
$this->z = $z;
|
||||
}
|
||||
|
||||
public function copy(){
|
||||
return new Vector3($this->x, $this->y, $this->z);
|
||||
}
|
||||
|
||||
public function toArray(){
|
||||
return ["x" => $this->x, "y" => $this->y, "z" => $this->z];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue