class RespawnPacket extends DataPacket{ public static $pool = []; public static $next = 0; public $x; public $y; public $z; public function pid(){ return Info::RESPAWN_PACKET; } public function decode(){ $this->getLong(); //TODO: remove $this->x = $this->getFloat(); $this->y = $this->getFloat(); $this->z = $this->getFloat(); } public function encode(){ $this->reset(); $this->putLong(0); //TODO: remove $this->putFloat($this->x); $this->putFloat($this->y); $this->putFloat($this->z); } }