pocketmine\Player::sendAttributes PHP Method

sendAttributes() public method

public sendAttributes ( )
    public function sendAttributes()
    {
        $entries = $this->attributeMap->needSend();
        if (count($entries) > 0) {
            $pk = new UpdateAttributesPacket();
            $pk->entityId = 0;
            $pk->entries = $entries;
            $this->dataPacket($pk);
            foreach ($entries as $entry) {
                $entry->markSynchronized();
            }
        }
    }
Player