Package zombie.network
Class ClientChunkRequest
java.lang.Object
zombie.network.ClientChunkRequest
public class ClientChunkRequest
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClientChunkRequest.Chunk
-
Field Summary
Fields Modifier and Type Field Description java.util.ArrayList
chunks
static java.util.concurrent.ConcurrentLinkedQueue
freeBuffers
boolean
largeArea
-
Constructor Summary
Constructors Constructor Description ClientChunkRequest()
-
Method Summary
Modifier and Type Method Description void
getByteBuffer(ClientChunkRequest.Chunk chunk)
ClientChunkRequest.Chunk
getChunk()
void
releaseBuffer(ClientChunkRequest.Chunk chunk)
void
releaseBuffers()
void
releaseChunk(ClientChunkRequest.Chunk chunk)
void
unpack(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
void
unpackLargeArea(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
chunks
public java.util.ArrayList chunks -
freeBuffers
public static final java.util.concurrent.ConcurrentLinkedQueue freeBuffers -
largeArea
public boolean largeArea
-
-
Constructor Details
-
ClientChunkRequest
public ClientChunkRequest()
-
-
Method Details
-
getChunk
-
releaseChunk
-
getByteBuffer
-
releaseBuffer
-
releaseBuffers
public void releaseBuffers() -
unpack
-
unpackLargeArea
-