Package worldmap

Examples of worldmap.MapColumn


   * @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();
View Full Code Here

TOP

Related Classes of worldmap.MapColumn

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.