Class RegionIterator
java.lang.Object
org.cyclops.evilcraft.core.algorithm.RegionIterator
- All Implemented Interfaces:
Iterator<net.minecraft.core.BlockPos>
An iterator for an N-dimensional region defined by a location in that space with an offset in each direction.
-
Constructor Summary
ConstructorsConstructorDescriptionRegionIterator(net.minecraft.core.BlockPos center, int offset) Make a new instance without shuffling the locations.RegionIterator(net.minecraft.core.BlockPos center, int offset, boolean shuffle) Make a new instance. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
RegionIterator
public RegionIterator(net.minecraft.core.BlockPos center, int offset, boolean shuffle) Make a new instance.- Parameters:
center- The center.offset- The offset.shuffle- If the resulting locations from the iterator should deterministicly be shuffled.
-
RegionIterator
public RegionIterator(net.minecraft.core.BlockPos center, int offset) Make a new instance without shuffling the locations.- Parameters:
center- The center.offset- The offset.
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
public net.minecraft.core.BlockPos next() -
remove
public void remove()
-