public class GridChunkProducer extends java.lang.Object implements ChunkProducer
GridChunkProducer
class provides data chunks from
a Grid
object. The chunks produced will
be of an appropriate type for the grid primitive data, created using a
DataChunkFactory
instance.Constructor and Description |
---|
GridChunkProducer(Grid grid)
Creates a new producer.
|
Modifier and Type | Method and Description |
---|---|
DataChunk |
getChunk(ChunkPosition pos)
Produces a data chunk.
|
DataChunk.DataType |
getExternalType()
Gets the external type of chunks produced by this producer.
|
Grid |
getGrid()
Gets the grid used to produce data chunks for this producer.
|
public GridChunkProducer(Grid grid)
grid
- the grid to use for chunk data.public Grid getGrid()
public DataChunk.DataType getExternalType()
ChunkProducer
getExternalType
in interface ChunkProducer
DataChunk.getExternalType()
public DataChunk getChunk(ChunkPosition pos)
ChunkProducer
getChunk
in interface ChunkProducer
pos
- the position of the data chunk to produce.