pocketmine\entity\Human::addAttributes PHP Method

addAttributes() protected method

protected addAttributes ( )
    protected function addAttributes()
    {
        parent::addAttributes();
        $this->attributeMap->addAttribute(Attribute::getAttribute(Attribute::SATURATION));
        $this->attributeMap->addAttribute(Attribute::getAttribute(Attribute::EXHAUSTION));
        $this->attributeMap->addAttribute(Attribute::getAttribute(Attribute::HUNGER));
        $this->attributeMap->addAttribute(Attribute::getAttribute(Attribute::EXPERIENCE_LEVEL));
        $this->attributeMap->addAttribute(Attribute::getAttribute(Attribute::EXPERIENCE));
        $this->attributeMap->addAttribute(Attribute::getAttribute(Attribute::HEALTH));
        $this->attributeMap->addAttribute(Attribute::getAttribute(Attribute::MOVEMENT_SPEED));
        $this->attributeMap->addAttribute(Attribute::getAttribute(Attribute::ABSORPTION));
    }