mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
32 lines
No EOL
609 B
PHP
32 lines
No EOL
609 B
PHP
<?php
|
|
|
|
class AddPaintingPacket extends RakNetDataPacket{
|
|
public $eid;
|
|
public $x;
|
|
public $y;
|
|
public $z;
|
|
public $direction;
|
|
public $title;
|
|
|
|
public function pid(){
|
|
if($this->PROTOCOL < ProtocolInfo::CURRENT_PROTOCOL){
|
|
return ProtocolInfo12::ADD_PAINTING_PACKET;
|
|
}
|
|
return ProtocolInfo::ADD_PAINTING_PACKET;
|
|
}
|
|
|
|
public function decode(){
|
|
|
|
}
|
|
|
|
public function encode(){
|
|
$this->reset();
|
|
$this->putInt($this->eid);
|
|
$this->putInt($this->x);
|
|
$this->putInt($this->y);
|
|
$this->putInt($this->z);
|
|
$this->putInt($this->direction);
|
|
$this->putString($this->title);
|
|
}
|
|
|
|
} |