Package org.spout.vanilla.protocol.msg.world.chunk

Examples of org.spout.vanilla.protocol.msg.world.chunk.ChunkDataMessage


            biomeData[(dz & Chunk.BLOCKS.MASK) << 4 | (dx & Chunk.BLOCKS.MASK)] = (byte) ((VanillaBiome) biome).getBiomeId();
          }
        }
      }

      ChunkDataMessage CCMsg = new ChunkDataMessage(x, z, true, new boolean[16], packetChunkData, biomeData, getSession(), getRepositionManager());
      getSession().send(CCMsg);

      chunks = chunkInit.getChunks(c, vrm);
    }

    if (chunks == null || !chunks.contains(c)) {

      byte[] fullChunkData = ChunkInit.getChunkFullData(c, events);

      byte[][] packetChunkData = new byte[16][];
      packetChunkData[cY] = fullChunkData;
      ChunkDataMessage CCMsg = new ChunkDataMessage(x, z, false, new boolean[16], packetChunkData, null, getSession(), getRepositionManager());
      getSession().send(CCMsg);

      if (chunks == null) {
        chunks = new ArrayList<Chunk>(1);
      }
View Full Code Here


      int z = IntPairHashed.key2(key);
      TIntSet column = initChunks.get(x, z);
      if (column != null && column.isEmpty()) {
        column = initChunks.remove(x, z);
        activeColumns.remove(x, z);
        getSession().send(new ChunkDataMessage(x, z, true, null, null, null, true, getSession(), getRepositionManager()));
      }
    }
  }
View Full Code Here

    if (contiguous) {
      System.arraycopy(uncompressedData, size, biomeData, 0, biomeData.length);
      size += biomeData.length;
    }

    return new ChunkDataMessage(x, z, contiguous, hasAdditionalData, data, biomeData, null, NullRepositionManager.getInstance());
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.protocol.msg.world.chunk.ChunkDataMessage

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.