pocketmine\block\Vine::recalculateBoundingBox PHP Метод

recalculateBoundingBox() защищенный Метод

protected recalculateBoundingBox ( )
    protected function recalculateBoundingBox()
    {
        $f1 = 1;
        $f2 = 1;
        $f3 = 1;
        $f4 = 0;
        $f5 = 0;
        $f6 = 0;
        $flag = $this->meta > 0;
        if (($this->meta & 0x2) > 0) {
            $f4 = max($f4, 0.0625);
            $f1 = 0;
            $f2 = 0;
            $f5 = 1;
            $f3 = 0;
            $f6 = 1;
            $flag = true;
        }
        if (($this->meta & 0x8) > 0) {
            $f1 = min($f1, 0.9375);
            $f4 = 1;
            $f2 = 0;
            $f5 = 1;
            $f3 = 0;
            $f6 = 1;
            $flag = true;
        }
        if (($this->meta & 0x1) > 0) {
            $f3 = min($f3, 0.9375);
            $f6 = 1;
            $f1 = 0;
            $f4 = 1;
            $f2 = 0;
            $f5 = 1;
            $flag = true;
        }
        if (!$flag and $this->getSide(1)->isSolid()) {
            $f2 = min($f2, 0.9375);
            $f5 = 1;
            $f1 = 0;
            $f4 = 1;
            $f3 = 0;
            $f6 = 1;
        }
        return new AxisAlignedBB($this->x + $f1, $this->y + $f2, $this->z + $f3, $this->x + $f4, $this->y + $f5, $this->z + $f6);
    }