public static ClassicChunk CreateEmpty() { var chunk = new ClassicChunk(); chunk.CreateAnew(DataVersion.v1_12_2); return(chunk); }
/// <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; }