mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
34 lines
No EOL
743 B
PHP
34 lines
No EOL
743 B
PHP
<?php
|
|
|
|
class TileEventPacket extends RakNetDataPacket{
|
|
public $x;
|
|
public $y;
|
|
public $z;
|
|
public $case1;
|
|
public $case2;
|
|
|
|
public function pid(){
|
|
if($this->PROTOCOL < ProtocolInfo5::CURRENT_PROTOCOL_5){
|
|
return ProtocolInfo4::TILE_EVENT_PACKET;
|
|
}elseif($this->PROTOCOL < ProtocolInfo7::CURRENT_PROTOCOL_7){
|
|
return ProtocolInfo5::TILE_EVENT_PACKET;
|
|
}elseif($this->PROTOCOL < ProtocolInfo::CURRENT_PROTOCOL){
|
|
return ProtocolInfo12::TILE_EVENT_PACKET;
|
|
}
|
|
return ProtocolInfo::TILE_EVENT_PACKET;
|
|
}
|
|
|
|
public function decode(){
|
|
|
|
}
|
|
|
|
public function encode(){
|
|
$this->reset();
|
|
$this->putInt($this->x);
|
|
$this->putInt($this->y);
|
|
$this->putInt($this->z);
|
|
$this->putInt($this->case1);
|
|
$this->putInt($this->case2);
|
|
}
|
|
|
|
} |