public abstract class AbstractMapIterator extends java.lang.Object implements java.util.Iterator<CoreData>
Modifier and Type | Field and Description |
---|---|
protected DataIterator |
blockIterator
Always points to a block.
|
protected AbstractMap |
map |
protected boolean |
useChunks |
Constructor and Description |
---|
AbstractMapIterator(AbstractMap map) |
Modifier and Type | Method and Description |
---|---|
int |
getStartingZ()
the z level where the iteration starts
|
int |
getTopLimitZ() |
abstract boolean |
hasNext() |
abstract boolean |
hasNextChunk()
Check if the iterator has a next chunk
|
void |
remove()
Should not be used because there should be no cases where you remove elements from the map.
|
protected void |
setStartingZ(int startingZ)
the z level where the iteration starts
|
void |
setTopLimitZ(int zLimit)
set the top/last limit of the iteration (including).
|
protected final AbstractMap map
protected DataIterator blockIterator
protected final boolean useChunks
public AbstractMapIterator(AbstractMap map)
public abstract boolean hasNextChunk()
public void setTopLimitZ(int zLimit)
zLimit
- public int getTopLimitZ()
public int getStartingZ()
protected void setStartingZ(int startingZ)
startingZ
- public abstract boolean hasNext()
hasNext
in interface java.util.Iterator<CoreData>
public void remove()
remove
in interface java.util.Iterator<CoreData>