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); }
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); }
/*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)); }
public int GetBlock(int bx, int by, int bz) { SubChunk chunk = this.SubChunks[by >> 4]; return(chunk.GetBlock(bx, by - 16 * (by >> 4), bz)); }