pocketmine\entity\Attribute::setDefaultValue PHP Метод

setDefaultValue() публичный Метод

public setDefaultValue ( $defaultValue )
    public function setDefaultValue($defaultValue)
    {
        if ($defaultValue > $this->getMaxValue() or $defaultValue < $this->getMinValue()) {
            throw new \InvalidArgumentException("Value {$defaultValue} exceeds the range!");
        }
        if ($this->defaultValue !== $defaultValue) {
            $this->desynchronized = true;
            $this->defaultValue = $defaultValue;
        }
        return $this;
    }