mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
19 lines
No EOL
293 B
PHP
19 lines
No EOL
293 B
PHP
<?php
|
|
|
|
class SetHealthPacket extends RakNetDataPacket{
|
|
public $health;
|
|
|
|
public function pid(){
|
|
return ProtocolInfo::SET_HEALTH_PACKET;
|
|
}
|
|
|
|
public function decode(){
|
|
$this->health = $this->getByte();
|
|
}
|
|
|
|
public function encode(){
|
|
$this->reset();
|
|
$this->putByte($this->health);
|
|
}
|
|
|
|
} |