Living entities have a getArmorInventory() method. For the held item, you might need to fake it using MobEquipmentPacket.
PHP: public function spawnTo(Player $player): void { parent::spawnTo($player); $pk = new MobEquipmentPacket(); $pk->entityRuntimeId = $this->getId(); $pk->item = new Item(Item::BOW); $pk->slot = 0; $pk->selectedSlot = 0; $player->dataPacket($pk); } ok work ty