Пример #1
0
        public void SetMetadata(int bx, int by, int bz, byte data)
        {
            SubChunk chunk = this.SubChunks[by >> 4];

            chunk.SetMetaData(bx, by - 16 * (by >> 4), bz, data);
        }
Пример #2
0
        public void SetBlock(int bx, int by, int bz, int bid)
        {
            SubChunk chunk = this.SubChunks[by >> 4];

            chunk.SetBlock(bx, by - 16 * (by >> 4), bz, bid);
        }
Пример #3
0
        /*public byte GetBlocklight(int bx, int by, int bz)
         * {
         *   SubChunk chunk = this.subChunks[by >> 4];
         *   return chunk.GetBlocklight(bx, by - 16 * (by >> 4), bz);
         * }
         *
         * public void SetBlocklight(int bx, int by, int bz, byte data)
         * {
         *   SubChunk chunk = subChunks[by >> 4];
         *   chunk.SetBlocklight(bx, by - 16 * (by >> 4), bz, data);
         * }*/

        public byte GetMetadata(int bx, int by, int bz)
        {
            SubChunk chunk = this.SubChunks[by >> 4];

            return(chunk.GetMetaData(bx, by - 16 * (by >> 4), bz));
        }
Пример #4
0
        public int GetBlock(int bx, int by, int bz)
        {
            SubChunk chunk = this.SubChunks[by >> 4];

            return(chunk.GetBlock(bx, by - 16 * (by >> 4), bz));
        }