* @param z
* @param player
* @throws MCConnectionException
*/
private void sendColumn(int x, int z, Player player) throws MCConnectionException {
MapColumn column = worldmap.getColumn(x, z);
short maskerbit = 1;
//sending 16 chunks from bottom up to top
short bitmask = 0;
short bitmaskaddarray = 0;
byte[] block_ids= null;
byte[] block_metadata = null;
byte[] block_light = null;
byte[] block_skylight= null;
//TODO
byte[] biome_addarray = new byte[16*16];
for(int i = 0; i<biome_addarray.length; i++) {
biome_addarray[i] = 0x09;
}
//TODO?
byte[] block_addarray = new byte[0];
for(byte y = 0; y < 16; y++) {
if(!column.isAir(y)) {
bitmask |= maskerbit;
MapColumnChunk chunk = column.getChunk(y);
if(block_ids == null) {
block_ids = chunk.getBlocksIds();
block_metadata = chunk.getBlocksMetadata();
block_light = chunk.getBlocksLight();
block_skylight = chunk.getBlocksSkylight();