mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
30 lines
No EOL
549 B
PHP
30 lines
No EOL
549 B
PHP
<?php
|
|
|
|
class TileEventPacket extends RakNetDataPacket{
|
|
public $x;
|
|
public $y;
|
|
public $z;
|
|
public $case1;
|
|
public $case2;
|
|
|
|
public function pid(){
|
|
if($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);
|
|
}
|
|
|
|
} |