pocketmine\block\Door::getFullDamage PHP Méthode

getFullDamage() private méthode

private getFullDamage ( )
    private function getFullDamage()
    {
        $damage = $this->getDamage();
        $isUp = ($damage & 0x8) > 0;
        if ($isUp) {
            $down = $this->getSide(Vector3::SIDE_DOWN)->getDamage();
            $up = $damage;
        } else {
            $down = $damage;
            $up = $this->getSide(Vector3::SIDE_UP)->getDamage();
        }
        $isRight = ($up & 0x1) > 0;
        return $down & 0x7 | ($isUp ? 8 : 0) | ($isRight ? 0x10 : 0);
    }