public class RegionIterator
extends java.lang.Object
implements java.util.Iterator<net.minecraft.util.math.BlockPos>
| Constructor and Description |
|---|
RegionIterator(net.minecraft.util.math.BlockPos center,
int offset)
Make a new instance without shuffling the locations.
|
RegionIterator(net.minecraft.util.math.BlockPos center,
int offset,
boolean shuffle)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
net.minecraft.util.math.BlockPos |
next() |
void |
remove() |
public RegionIterator(net.minecraft.util.math.BlockPos center,
int offset,
boolean shuffle)
center - The center.offset - The offset.shuffle - If the resulting locations from the iterator should deterministicly be shuffled.public RegionIterator(net.minecraft.util.math.BlockPos center,
int offset)
center - The center.offset - The offset.public boolean hasNext()
hasNext in interface java.util.Iterator<net.minecraft.util.math.BlockPos>public net.minecraft.util.math.BlockPos next()
next in interface java.util.Iterator<net.minecraft.util.math.BlockPos>public void remove()
remove in interface java.util.Iterator<net.minecraft.util.math.BlockPos>