@@ -0,0 +1,1408 @@
+package com.thebuerkle.mcboom.packet;%0A%0Aimport com.google.common.base.Objects;%0Aimport com.thebuerkle.mcboom.Buffers;%0Aimport com.thebuerkle.mcboom.DataType;%0A%0Aimport org.jboss.netty.buffer.ChannelBuffer;%0A%0Apublic class ChunkDataPacket extends Packet %7B%0A%0A    public static final int ID = CHUNK_DATA;%0A%0A    public static final DataType%5B%5D ENCODING = new DataType%5B%5D %7B%0A        DataType.mc_int,%0A        DataType.mc_int,%0A        DataType.mc_bool,%0A        DataType.mc_short,%0A        DataType.mc_short,%0A        DataType.mc_bytearray_4%0A    %7D;%0A%0A    public final int x;%0A    public final int z;%0A    public final boolean continuous;%0A    public final short primaryBitmap;%0A    public final short addBitmap;%0A    public final byte%5B%5D chunk;%0A%0A    public ChunkDataPacket(ChannelBuffer in) %7B%0A        super(ID);%0A        this.x = Buffers.mc_int(in);%0A        this.z = Buffers.mc_int(in);%0A        this.continuous = Buffers.mc_bool(in);%0A        this.primaryBitmap = Buffers.mc_short(in);%0A        this.addBitmap = Buffers.mc_short(in);%0A        this.chunk = Buffers.mc_bytearray_4(in);%0A    %7D%0A%0A    @Override()%0A    public String toString() %7B%0A        return Objects.toStringHelper(this).%0A            add(%22X%22, x).%0A            add(%22Z%22, z).%0A            add(%22Continuous%22, continuous).%0A            add(%22Primary bitmap%22, primaryBitmap).%0A            add(%22Add bitmap%22, addBitmap).%0A            add(%22Length%22, chunk.length).%0A            toString();%0A    %7D%0A%7D%0A

Add Chunk Data Packet