public class ChunkCollector
extends java.lang.Object
ChunkCollector
class assembles chunks from a list of
producers and allows them to be accessed in one operation.Constructor and Description |
---|
ChunkCollector() |
Modifier and Type | Method and Description |
---|---|
void |
addProducer(ChunkProducer producer)
Adds a producer to the list of chunks to assemble.
|
java.util.List<DataChunk> |
getChunks(ChunkPosition pos)
Assembles a set of chunks from the producers.
|
public void addProducer(ChunkProducer producer)
producer
- the producer to add to the list.public java.util.List<DataChunk> getChunks(ChunkPosition pos)
pos
- the chunk position to get.