pocketmine\level\Level::getBlockXYZ PHP Метод

getBlockXYZ() публичный статический Метод

public static getBlockXYZ ( $hash, &$x, &$y, &$z )
    public static function getBlockXYZ($hash, &$x, &$y, &$z)
    {
        if (PHP_INT_SIZE === 8) {
            $x = $hash >> 35 << 36 >> 36;
            $y = $hash >> 28 & 0x7f;
            // << 57 >> 57; //it's always positive
            $z = ($hash & 0xfffffff) << 36 >> 36;
        } else {
            $hash = explode(":", $hash);
            $x = (int) $hash[0];
            $y = (int) $hash[1];
            $z = (int) $hash[2];
        }
    }
Level