Package net.lightstone.msg

Examples of net.lightstone.msg.CompressedChunkMessage


      throw new IOException("Bad compressed data.", e);
    } finally {
      inflater.end();
    }

    return new CompressedChunkMessage(x, z, y, width, height, depth, data);
  }
View Full Code Here


   * Creates a new {@link Message} which can be sent to a client to stream
   * this chunk to them.
   * @return The {@link CompressedChunkMessage}.
   */
  public Message toMessage() {
    return new CompressedChunkMessage(x * Chunk.WIDTH, z * Chunk.HEIGHT, 0, WIDTH, HEIGHT, DEPTH, serializeTileData());
  }
View Full Code Here

TOP

Related Classes of net.lightstone.msg.CompressedChunkMessage

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.