LibMinecraft.Level.McLevelEnvironment.SaveSection C# (CSharp) Method

SaveSection() private method

private SaveSection ( ) : NbtTag
return NbtTag
        internal NbtTag SaveSection()
        {
            // Create the tags to save this section
            NbtCompound section = new NbtCompound("Environment");
            section.Tags.Add(new NbtShort("SurroundingGroundHeight", SurroundingGroundHeight));
            section.Tags.Add(new NbtByte("SurroundingGroundType", (byte) SurroundingGroundType));
            section.Tags.Add(new NbtShort("SurroundingWaterHeight", SurroundingWaterHeight));
            section.Tags.Add(new NbtByte("SurroundingWaterType", (byte) SurroundingWaterType));
            section.Tags.Add(new NbtShort("CloudHeight", CloudHeight));
            section.Tags.Add(new NbtInt("CloudColor", CloudColor.ToArgb()));
            section.Tags.Add(new NbtInt("SkyColor", SkyColor.ToArgb()));
            section.Tags.Add(new NbtInt("FogColor", FogColor.ToArgb()));
            section.Tags.Add(new NbtByte("SkyBrightness", SkyBrightness));
            return section;
        }