示例#1
0
        public static ClassicChunk CreateEmpty()
        {
            var chunk = new ClassicChunk();

            chunk.CreateAnew(DataVersion.v1_12_2);
            return(chunk);
        }
示例#2
0
        /// <summary>
        /// Create from a low-level ClassicChunk.
        /// Do not use this unless you're sure of what you're doing.
        /// </summary>
        /// <param name="chunk"></param>
        /// <param name="access"></param>
        /// <param name="dispatcher"></param>
        public Chunk(ClassicChunk chunk, AccessMode access = AccessMode.Write, BlockFactoryDispatcher dispatcher = null)
        {
            _namespaced   = false;
            _classicChunk = chunk;
            _access       = access;
            ReadOnly      = access == AccessMode.ReadOnly;

            Factory = dispatcher;
        }