7UKECREAT0R_MCCompiledSource/mc-compiled/NBT/EntityListNBT.cs
using System.Linq;

namespace mc_compiled.NBT
{
    public struct EntityListNBT
    {
        EntityNBT[] entities;

        public EntityListNBT(params EntityNBT[] entities)
        {
            this.entities = entities;
        }

        public NBTList ToNBT()
        {
            return new NBTList()
            {
                name = "entities",
                listType = TAG.Compound,
                values = (from entity in this.entities select entity.ToNBT("")).ToArray()
            };
        }
    }
}
