7UKECREAT0R_MCCompiledSource/mc-compiled/NBT/NBTCompound.cs
using System;
using System.IO;

namespace mc_compiled.NBT
{
    public class NBTCompound : NBTNode
    {
        public NBTNode[] values;

        public NBTCompound() => this.tagType = TAG.Compound;

        public override void Write(BinaryWriter writer)
        {
            if (this.values == null || this.values.Length < 1)
                throw new ArgumentException("No contents in NBTCompound.");

            FileWriterNBT.WriteToExisting(this.values, writer);
        }
    }
}
