mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
22 lines
No EOL
372 B
PHP
22 lines
No EOL
372 B
PHP
<?php
|
|
|
|
class EntityEventPacket extends RakNetDataPacket{
|
|
public $eid;
|
|
public $event;
|
|
|
|
public function pid(){
|
|
return ProtocolInfo::ENTITY_EVENT_PACKET;
|
|
}
|
|
|
|
public function decode(){
|
|
$this->eid = $this->getInt();
|
|
$this->event = $this->getByte();
|
|
}
|
|
|
|
public function encode(){
|
|
$this->reset();
|
|
$this->putInt($this->eid);
|
|
$this->putByte($this->event);
|
|
}
|
|
|
|
} |