BiomePainter.RegionUtil.GetHeight C# (CSharp) Метод

GetHeight() приватный статический Метод

private static GetHeight ( TAG_Compound sections, int x, int z, int yStart = 255 ) : int
sections Minecraft.TAG_Compound
x int
z int
yStart int
Результат int
        private static int GetHeight(TAG_Compound[] sections, int x, int z, int yStart = 255)
        {
            int h = yStart;
            for (; h >= 0; h--)
            {
                byte b = GetBlock(sections, x, h, z);
                if (b != 0)
                    return h;
            }
            return -1;
        }