pocketmine\entity\Attribute::__construct PHP Method

__construct() private method

private __construct ( $id, $name, $minValue, $maxValue, $defaultValue, $shouldSend = true )
    private function __construct($id, $name, $minValue, $maxValue, $defaultValue, $shouldSend = true)
    {
        $this->id = (int) $id;
        $this->name = (string) $name;
        $this->minValue = (double) $minValue;
        $this->maxValue = (double) $maxValue;
        $this->defaultValue = (double) $defaultValue;
        $this->shouldSend = (bool) $shouldSend;
        $this->currentValue = $this->defaultValue;
    }