Class RandomTypePositionIterator
java.lang.Object
me.hsgamer.hscore.minecraft.block.iterator.AbstractPositionIterator
me.hsgamer.hscore.minecraft.block.impl.iterator.RandomTypePositionIterator
- All Implemented Interfaces:
Iterator<Position>,PositionIterator
The
PositionIterator that combines multiple PositionIterator and randomly choose one-
Field Summary
Fields inherited from class me.hsgamer.hscore.minecraft.block.iterator.AbstractPositionIterator
box -
Constructor Summary
ConstructorsConstructorDescriptionRandomTypePositionIterator(BlockBox box, Collection<Function<BlockBox, PositionIterator>> functions) Create a newRandomTypePositionIterator -
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, remove
-
Constructor Details
-
RandomTypePositionIterator
public RandomTypePositionIterator(BlockBox box, Collection<Function<BlockBox, PositionIterator>> functions) Create a newRandomTypePositionIterator- Parameters:
box- theBlockBoxfunctions- the functions to createPositionIterator
-
-
Method Details
-
reset
public void reset() -
hasNext
public boolean hasNext() -
next
-