Examples of LightingData


Examples of org.spoutcraft.client.packet.LightingThread.LightingData

        customIds[i] = buffer.getShort(i * 3);
        customData[i] = buffer.get((i * 3) + 2);
      }
      Spoutcraft.getChunk(SpoutClient.getInstance().getRawWorld(), chunkX, chunkZ).setCustomBlockIds(customIds);
      Spoutcraft.getChunk(SpoutClient.getInstance().getRawWorld(), chunkX, chunkZ).setCustomBlockData(customData);
      thread.queue.add(new LightingData(chunkX, chunkZ, customIds));
    }
  }
View Full Code Here

Examples of org.spoutcraft.client.packet.LightingThread.LightingData

  @Override
  public void run() {
    while (!this.isInterrupted()) {
      try {
        LightingData data = queue.take();
        World world = SpoutClient.getHandle().theWorld;
        if (world != null && world.chunkProvider.chunkExists(data.cx, data.cz)) {
          for (int i = 0; i < data.ids.length; i++) {
            CustomBlock cb = MaterialData.getCustomBlock(data.ids[i]);
            if (cb != null && cb.getLightLevel() != 0) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.