src/AnvilPacker/Level/RegionBuffer.cs
/// <summary> Calculates the min and max section Y coord in this region. </summary>
Calculates the min and max section Y coord in this region.
Calculates the min and max section Y coord in this region .
public (int Min, int Max) GetChunkYExtents()
        {
            int min = int.MaxValue, max = int.MinValue;
            foreach (var chunk in Chunks) {
                if (chunk != null) {
                    var bounds = chunk.GetActualYExtents();
                    min = Math.Min(min, bounds.Min);
                    max = Math.Max(max, bounds.Max);
                }
            }
            return (min, max);
        }
public ( int Min , int Max ) GetChunkYExtents ( ) { int min = int . MaxValue , max = int . MinValue ; foreach ( var chunk in Chunks ) { if ( chunk != null ) { var bounds = chunk . GetActualYExtents ( ) ; min = Math . Min ( min , bounds . Min ) ; max = Math . Max ( max , bounds . Max ) ; } } return ( min , max ) ; }
Calculates the min and max section Y coord in this region.
Calculates the min and max section Y coord in this region .