13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
20 public const NETWORK_ID = ProtocolInfo::SET_HEALTH_PACKET;
27 public static function create(
int $health) : self{
29 $result->health = $health;
34 $this->health = $in->getVarInt();
38 $out->putVarInt($this->health);
42 return $handler->handleSetHealth($this);
decodePayload(PacketSerializer $in)
handle(PacketHandlerInterface $handler)
encodePayload(PacketSerializer $out)
static create(int $health)