mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
27 lines
No EOL
661 B
PHP
27 lines
No EOL
661 B
PHP
<?php
|
|
|
|
class SetEntityDataPacket extends RakNetDataPacket{
|
|
public $eid;
|
|
public $metadata;
|
|
|
|
public function pid(){
|
|
if($this->PROTOCOL < ProtocolInfo9::CURRENT_PROTOCOL_9){
|
|
return ProtocolInfo7::SET_ENTITY_DATA_PACKET;
|
|
}elseif($this->PROTOCOL < ProtocolInfo::CURRENT_PROTOCOL){
|
|
return ProtocolInfo12::SET_ENTITY_DATA_PACKET;
|
|
}
|
|
return ProtocolInfo::SET_ENTITY_DATA_PACKET;
|
|
}
|
|
|
|
public function decode(){
|
|
|
|
}
|
|
|
|
public function encode(){
|
|
$this->reset();
|
|
if($this->PROTOCOL >= ProtocolInfo7::CURRENT_PROTOCOL_7)
|
|
$this->putInt($this->eid);
|
|
$this->put(Utils::writeMetadata($this->metadata));
|
|
}
|
|
|
|
} |