mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
a slightly better pathnavigator
This commit is contained in:
parent
6ee84717f8
commit
916a06c161
3 changed files with 60 additions and 27 deletions
|
|
@ -12,6 +12,10 @@ class MinecraftNode extends Node
|
|||
parent::__construct($x, $y, $z);
|
||||
}
|
||||
|
||||
public static function fromArray($arr){
|
||||
return new MinecraftNode($arr[0], $arr[1], $arr[2]);
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
return "MinecraftNode({$this->x}, {$this->y}, {$this->z})";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue