13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
21 public const NETWORK_ID = ProtocolInfo::MOB_ARMOR_EQUIPMENT_PACKET;
23 public int $actorRuntimeId;
37 $result->actorRuntimeId = $actorRuntimeId;
38 $result->head = $head;
39 $result->chest = $chest;
40 $result->legs = $legs;
41 $result->feet = $feet;
42 $result->body = $body;
47 $this->actorRuntimeId = $in->getActorRuntimeId();
48 $this->head = $in->getItemStackWrapper();
49 $this->chest = $in->getItemStackWrapper();
50 $this->legs = $in->getItemStackWrapper();
51 $this->feet = $in->getItemStackWrapper();
52 $this->body = $in->getItemStackWrapper();
56 $out->putActorRuntimeId($this->actorRuntimeId);
57 $out->putItemStackWrapper($this->head);
58 $out->putItemStackWrapper($this->chest);
59 $out->putItemStackWrapper($this->legs);
60 $out->putItemStackWrapper($this->feet);
61 $out->putItemStackWrapper($this->body);
65 return $handler->handleMobArmorEquipment($this);
encodePayload(PacketSerializer $out)
handle(PacketHandlerInterface $handler)
decodePayload(PacketSerializer $in)
static create(int $actorRuntimeId, ItemStackWrapper $head, ItemStackWrapper $chest, ItemStackWrapper $legs, ItemStackWrapper $feet, ItemStackWrapper $body)