Beispiel #1
0
        public AnvilBlockManager(IChunkManager cm)
            : base(cm)
        {
            IChunk c = AnvilChunk.Create(0, 0);

            chunkXDim  = c.Blocks.XDim;
            chunkYDim  = c.Blocks.YDim;
            chunkZDim  = c.Blocks.ZDim;
            chunkXMask = chunkXDim - 1;
            chunkYMask = chunkYDim - 1;
            chunkZMask = chunkZDim - 1;
            chunkXLog  = Log2(chunkXDim);
            chunkYLog  = Log2(chunkYDim);
            chunkZLog  = Log2(chunkZDim);
        }
Beispiel #2
0
 protected override IChunk CreateChunkVerifiedCore(NbtTree tree)
 {
     return(AnvilChunk.CreateVerified(tree));
 }
Beispiel #3
0
 protected override IChunk CreateChunkCore(int cx, int cz)
 {
     return(AnvilChunk.Create(cx, cz));
 }